Class BasicSumRuleMaster

java.lang.Object
  extended bySwarmObjectImpl
      extended byBasicSumRuleMaster
Direct Known Subclasses:
RandomRuleMaster, StopLossRuleMaster

public class BasicSumRuleMaster
extends SwarmObjectImpl

This is the basic class of rule master, which is inherited from others. A rule master contains the rule for the agent's acts.

Author:
Marco Agagliate
See Also:
Serialized Form

Field Summary
 double agentProbToActBeforeOpening
          The probability of placing an order in the opening phase.
 double agentProbToActBelowFloorP
          The probability that an agent would buy if the price is below floorP.
 double asymmetricRange
          The asimmetry of max/minCorrectingCoeff.
 double floorP
          This is the floor price.
 double maxCorrectingCoeff
          The coefficient that RandomAgents multiplays by the last price for the order.
 double minCorrectingCoeff
          The coefficient that RandomAgents multiplays by the last price for the order.
 
Constructor Summary
BasicSumRuleMaster(Zone aZone)
          Constructor for a new BasicSumRuleMaster.
 
Method Summary
 void setAgentProbToActBeforeOpening(double p)
          This method sets the agentProbToActBeforeOpening.
 void setAsymmetricRange(double a)
          This method sets the asymmetricRange.
 void setFloorP$andAgentProbToActBelowFloorP(double f, double p)
          This method sets the floorP and AgentProbToActBelowFloorP.
 void setMaxCorrectingCoeff(double max)
          This method sets the setMaxCorrectingCoeff.
 void setMinCorrectingCoeff(double min)
          This method sets the minCorrectingCoeff.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

agentProbToActBeforeOpening

public double agentProbToActBeforeOpening
The probability of placing an order in the opening phase. So a day starts without an empty book, with a realistic effect.


minCorrectingCoeff

public double minCorrectingCoeff
The coefficient that RandomAgents multiplays by the last price for the order.


maxCorrectingCoeff

public double maxCorrectingCoeff
The coefficient that RandomAgents multiplays by the last price for the order.


asymmetricRange

public double asymmetricRange
The asimmetry of max/minCorrectingCoeff.


floorP

public double floorP
This is the floor price.


agentProbToActBelowFloorP

public double agentProbToActBelowFloorP
The probability that an agent would buy if the price is below floorP.

Constructor Detail

BasicSumRuleMaster

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

Method Detail

setAgentProbToActBeforeOpening

public void setAgentProbToActBeforeOpening(double p)
This method sets the agentProbToActBeforeOpening.


setMinCorrectingCoeff

public void setMinCorrectingCoeff(double min)
This method sets the minCorrectingCoeff.


setMaxCorrectingCoeff

public void setMaxCorrectingCoeff(double max)
This method sets the setMaxCorrectingCoeff.


setAsymmetricRange

public void setAsymmetricRange(double a)
This method sets the asymmetricRange.


setFloorP$andAgentProbToActBelowFloorP

public void setFloorP$andAgentProbToActBelowFloorP(double f,
                                                   double p)
This method sets the floorP and AgentProbToActBelowFloorP.