|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrails.game.specific._18AL.NamedTrainRevenueModifier
public class NamedTrainRevenueModifier
Constructor Summary | |
---|---|
NamedTrainRevenueModifier()
|
Method Summary | |
---|---|
void |
adjustOptimalRun(java.util.List<RevenueTrainRun> optimalRuns)
allows to adjust the run list of the optimal train run output |
void |
configureFromXML(Tag tag)
Instructs the component to configure itself from the provided XML element. |
int |
evaluationValue(java.util.List<RevenueTrainRun> runs,
boolean optimalRuns)
returns the value used for evaluation (at the runs supplied) |
void |
finishConfiguration(GameManagerI parent)
This method is intended to be called for each configurable component, to perforn any initialisation activities that require any other components to be initialised first. |
void |
modifyCalculator(RevenueAdapter revenueAdapter)
|
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 revenueAdapter)
returns the results as pretty prints |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NamedTrainRevenueModifier()
Method Detail |
---|
public void configureFromXML(Tag tag) throws ConfigurationException
ConfigurableComponentI
configureFromXML
in interface ConfigurableComponentI
ConfigurationException
public void finishConfiguration(GameManagerI parent) throws ConfigurationException
ConfigurableComponentI
This method should be called where necessary after all XML file parsing has completed, so that all objects that need to be related to do exist.
finishConfiguration
in interface ConfigurableComponentI
parent
- The 'parent' configurable component is passed to allow
the 'child' to access any other object without the need to resort to
static calls where possible.
ConfigurationException
public void modifyCalculator(RevenueAdapter revenueAdapter)
modifyCalculator
in interface RevenueStaticModifier
public boolean prepareModifier(RevenueAdapter revenueAdapter)
RevenueDynamicModifier
prepareModifier
in interface RevenueDynamicModifier
public int predictionValue()
RevenueDynamicModifier
predictionValue
in interface RevenueDynamicModifier
public int evaluationValue(java.util.List<RevenueTrainRun> runs, boolean optimalRuns)
RevenueDynamicModifier
evaluationValue
in interface RevenueDynamicModifier
public void adjustOptimalRun(java.util.List<RevenueTrainRun> optimalRuns)
RevenueDynamicModifier
adjustOptimalRun
in interface RevenueDynamicModifier
public java.lang.String prettyPrint(RevenueAdapter revenueAdapter)
RevenueDynamicModifier
prettyPrint
in interface RevenueDynamicModifier
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |