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 agentProbToActBelowFloorP
          The probability that an agent would buy if the price is below floorP.
 double agentProbToActInOpeningOrClosingAuctions
          The probability of placing an order in the opening or closing phase.
 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 setAgentProbToActInOpeningOrClosingAuctions(double p)
          This method sets the agentProbToActInOpeningOrClosingAuctions.
 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

agentProbToActInOpeningOrClosingAuctions

public double agentProbToActInOpeningOrClosingAuctions
The probability of placing an order in the opening or closing phase. So a day starts and finish with an auction, 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

setAgentProbToActInOpeningOrClosingAuctions

public void setAgentProbToActInOpeningOrClosingAuctions(double p)
This method sets the agentProbToActInOpeningOrClosingAuctions.


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.