public class SimpleDirectionalRate extends SimOperation
SimOperation
for applying the scenario's ratings
according to a selected ReputationModel
implementationModifier and Type | Field and Description |
---|---|
private SimUser |
source |
private SimUser |
target |
Constructor and Description |
---|
SimpleDirectionalRate(int OpCode) |
Modifier and Type | Method and Description |
---|---|
void |
executeOperation(SimUser protagonist,
SimUser[] cast,
float[] act,
SimulatorPanel simulatorPanel,
SimulatorModel simulatorModel,
ReputationModel reputationModel,
Evaluator evaluator)
Implementation of the
SimOperation.executeOperation(SimUser, SimUser[], float[], SimulatorPanel, SimulatorModel, ReputationModel, Evaluator)
for applying a rating submitted from a source to a target SimUser |
private SimUser |
getTargetByID(SimulatorModel simulatorModel,
int id) |
getOpCode, setOpCode
public void executeOperation(SimUser protagonist, SimUser[] cast, float[] act, SimulatorPanel simulatorPanel, SimulatorModel simulatorModel, ReputationModel reputationModel, Evaluator evaluator)
SimOperation.executeOperation(SimUser, SimUser[], float[], SimulatorPanel, SimulatorModel, ReputationModel, Evaluator)
for applying a rating submitted from a source to a target SimUser
executeOperation
in class SimOperation
protagonist
- the main SimUser
cast
- the rest of the SimUser
s involved in the scenarioact
- row from the scenario's ActionSequence
simulatorPanel
- 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 ReputationModel
evaluator
- the evaluation moduleprivate SimUser getTargetByID(SimulatorModel simulatorModel, int id)