|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectSwarmObjectImpl
BasicSumAgent
LocallyImitatingAgent
LocallyImitatingAgent inherits from BasicSumAgent and operates in an imitative way, following other agents actions(last operating agents or "local" imitation).
Field Summary | |
double[] |
order
This is the vector containing the basic input of an order: the price of the offer, the quantity of shares and the identification number of the agent. |
(package private) RandomRuleMaster |
ruleMaster
This is the RuleMaster of the locally imitating agent. |
Fields inherited from class BasicSumAgent |
agentWealthAtMeanDailyPrice, asymmetricBuySellProb, buySellSwitch, executedPrices, iMax, liquidityQuantity, maxOrderQuantity, meanOperatingPrice, number, price, printing, shareQuantity, shareValueAtMeanDailyPrice, theBook |
Constructor Summary | |
LocallyImitatingAgent(Zone aZone,
int maxOrderQuantity)
Constructor for a new locally imitating agent. |
Method Summary | |
void |
act0()
This method is called in the first phase of the day. |
void |
act1()
This method is called during the simulated day. |
double |
chooseBuySellSwitch(Book theBook,
double asymmetricBuySellProb)
This method allows the agent to operate following the other agents' actions. |
void |
setRuleMaster(RandomRuleMaster r)
This method sets the Rule Master. |
Methods inherited from class BasicSumAgent |
act2, extract, getWealthAtMeanDailyPrice, setAsymmetricBuySellProb, setBook, setConfirmationOfExecutedPrice, setMaxOrderQuantity, setNumber, setPrinting |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public double[] order
RandomRuleMaster ruleMaster
Constructor Detail |
public LocallyImitatingAgent(Zone aZone, int maxOrderQuantity)
Method Detail |
public double chooseBuySellSwitch(Book theBook, double asymmetricBuySellProb)
public void setRuleMaster(RandomRuleMaster r)
public void act0()
act0
in class BasicSumAgent
public void act1()
act1
in class BasicSumAgent
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |