public class Evaluator
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected float |
adaptationDelayCost |
protected boolean |
HighThresholdReached |
protected boolean |
LowThresholdReached |
protected float |
no_R |
protected float |
no_Rinit |
protected float |
no_RthrH |
protected float |
no_RthrL |
protected float |
PFsumOf_Rinit |
protected float |
PFsumOf_RthrL |
protected float |
rateOfAscent |
protected float |
rateOfDescent |
protected int |
stepsToHighThreshold |
protected int |
stepsToLowThreshold |
protected float |
sumOfChanges |
protected float |
variability |
Constructor and Description |
---|
Evaluator() |
Modifier and Type | Method and Description |
---|---|
void |
evaluate()
Called at the end of an execution to
|
private boolean |
isHighThresholdReached() |
private boolean |
isLowThresholdReached() |
void |
printResults(ReputationModel model,
SimulatorPanel simulatorPanel)
Used for printing the results as text in the Simulator's message Area and for updating the charts
|
private void |
setHighThresholdReached(boolean highThresholdReached) |
private void |
setLowThresholdReached(boolean lowThresholdReached) |
void |
updateEvaluationStats(ReputationModel model,
float[] act,
SimulatorPanel simulatorPanel)
Updates evaluation statistics to include results from the latest action/rating
|
protected int stepsToHighThreshold
protected int stepsToLowThreshold
protected boolean HighThresholdReached
protected boolean LowThresholdReached
protected float sumOfChanges
protected float no_Rinit
protected float no_RthrL
protected float no_RthrH
protected float no_R
protected float PFsumOf_RthrL
protected float PFsumOf_Rinit
protected float rateOfDescent
protected float rateOfAscent
protected float adaptationDelayCost
protected float variability
public void updateEvaluationStats(ReputationModel model, float[] act, SimulatorPanel simulatorPanel)
model
- the Selected ReputationModel
act
- the row from the ActionSequence
simulatorPanel
- the simulator Panelpublic void printResults(ReputationModel model, SimulatorPanel simulatorPanel)
model
- the Selected ReputationModel
simulatorPanel
- the SimulatorPanel
needed for gaining access to the message Areapublic void evaluate()
model
- the Selected ReputationModel
simulatorPanel
- the SimulatorPanel
needed for gaining access to the message Areaprivate boolean isHighThresholdReached()
private void setHighThresholdReached(boolean highThresholdReached)
private boolean isLowThresholdReached()
private void setLowThresholdReached(boolean lowThresholdReached)