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
agentProbToActBelowFloorP, agentProbToActInOpeningOrClosingAuctions, 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 getPriceInOpeningOrClosingAuctions(double lp, double p)
          This method is called before the market is open or before closing auction.
 
Methods inherited from class BasicSumRuleMaster
setAgentProbToActInOpeningOrClosingAuctions, 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

getPriceInOpeningOrClosingAuctions

public double getPriceInOpeningOrClosingAuctions(double lp,
                                                 double p)
This method is called before the market is open or before closing auction.


getPrice

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