|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RevenueDynamicModifier
Classes that change properties of the revenue calculation after the actual calculation started implement the dynamic modifier. They have to register themselves to the RevenueManager via the GameManager instance.
Method Summary | |
---|---|
void |
adjustOptimalRun(java.util.List<RevenueTrainRun> optimalRuns)
allows to adjust the run list of the optimal train run output |
int |
evaluationValue(java.util.List<RevenueTrainRun> runs,
boolean optimalRuns)
returns the value used for evaluation (at the runs supplied) |
int |
predictionValue()
returns the value used for prediction |
boolean |
prepareModifier(RevenueAdapter revenueAdapter)
after the setup of the revenueAdapter, but before the actual calculation if return is false => deactivate |
java.lang.String |
prettyPrint(RevenueAdapter adapter)
returns the results as pretty prints |
Method Detail |
---|
boolean prepareModifier(RevenueAdapter revenueAdapter)
int predictionValue()
int evaluationValue(java.util.List<RevenueTrainRun> runs, boolean optimalRuns)
void adjustOptimalRun(java.util.List<RevenueTrainRun> optimalRuns)
java.lang.String prettyPrint(RevenueAdapter adapter)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |