Class RandomRuleMaster

java.lang.Object
  extended bySwarmObjectImpl
      extended byBasicSumRuleMaster
          extended byRandomRuleMaster

public class RandomRuleMaster
extends BasicSumRuleMaster

This is the RandomRuleMaster. A rule master contains the rule for the agent's acts.

Author:
Marco Agagliate
See Also:
Serialized Form

Field Summary
 
Fields inherited from class BasicSumRuleMaster
agentProbToActBeforeOpening, agentProbToActBelowFloorP, asymmetricRange, floorP, maxCorrectingCoeff, minCorrectingCoeff
 
Constructor Summary
RandomRuleMaster(Zone aZone)
          Constructor for a new RandomRuleMaster.
 
Method Summary
 double getPrice(double lp, double p)
          This method is called when the agent acts in the market.
 double getPriceBeforeOpening(double lp, double p)
          This method is called before the market is open.
 
Methods inherited from class BasicSumRuleMaster
setAgentProbToActBeforeOpening, setAsymmetricRange, setFloorP$andAgentProbToActBelowFloorP, setMaxCorrectingCoeff, setMinCorrectingCoeff
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RandomRuleMaster

public RandomRuleMaster(Zone aZone)
Constructor for a new RandomRuleMaster.

Method Detail

getPriceBeforeOpening

public double getPriceBeforeOpening(double lp,
                                    double p)
This method is called before the market is open.


getPrice

public double getPrice(double lp,
                       double p)
This method is called when the agent acts in the market.