public abstract class SimOperation
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private int |
OpCode |
| Constructor and Description |
|---|
SimOperation(int OpCode) |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
executeOperation(SimUser protagonist,
SimUser[] cast,
float[] act,
SimulatorPanel simulatorPanel,
SimulatorModel simulatorModel,
ReputationModel reputationModel,
Evaluator evaluator)
A generic method, provided with all possibly needed data,
in which any kind of operation towards one or more users,
can be carried out.
|
int |
getOpCode() |
void |
setOpCode(int opCode) |
public abstract void executeOperation(SimUser protagonist, SimUser[] cast, float[] act, SimulatorPanel simulatorPanel, SimulatorModel simulatorModel, ReputationModel reputationModel, Evaluator evaluator)
protagonist - the main SimUsercast - the rest of the SimUsers involved in the scenarioact - row from the scenario's ActionSequencesimulatorPanel - the simulator's UI, passed in order to gain access to the chartssimulatorModel - the simulator's memory, passed in order to gain access to the series collection itemsreputationModel - instance of the selected ReputationModelevaluator - the evaluation modulepublic int getOpCode()
public void setOpCode(int opCode)