public class SimpleDirectionalRate extends SimOperation
SimOperation for applying the scenario's ratings
according to a selected ReputationModel implementation| Modifier 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, setOpCodepublic 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 SimUserexecuteOperation in class SimOperationprotagonist - 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 moduleprivate SimUser getTargetByID(SimulatorModel simulatorModel, int id)