rails.game.specific._18Kaas
Class RuhrRevenueModifier

java.lang.Object
  extended by rails.game.specific._18Kaas.RuhrRevenueModifier
All Implemented Interfaces:
RevenueStaticModifier, ConfigurableComponentI

public class RuhrRevenueModifier
extends java.lang.Object
implements RevenueStaticModifier, ConfigurableComponentI


Field Summary
protected static org.apache.log4j.Logger log
           
 
Constructor Summary
RuhrRevenueModifier()
           
 
Method Summary
 void configureFromXML(Tag tag)
          Instructs the component to configure itself from the provided XML element.
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static org.apache.log4j.Logger log
Constructor Detail

RuhrRevenueModifier

public RuhrRevenueModifier()
Method Detail

configureFromXML

public void configureFromXML(Tag tag)
                      throws ConfigurationException
Description copied from interface: ConfigurableComponentI
Instructs the component to configure itself from the provided XML element.

Specified by:
configureFromXML in interface ConfigurableComponentI
Throws:
ConfigurationException

finishConfiguration

public void finishConfiguration(GameManagerI parent)
                         throws ConfigurationException
Description copied from interface: ConfigurableComponentI
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. This includes creating any required relationships to other configured components and objects.

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.

Specified by:
finishConfiguration in interface ConfigurableComponentI
Parameters:
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.
Throws:
ConfigurationException

modifyCalculator

public void modifyCalculator(RevenueAdapter revenueAdapter)
Specified by:
modifyCalculator in interface RevenueStaticModifier