|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectSwarmObjectImpl
BasicSumAgent
This is the basic class of agents, that is inherited from all the others. It contains the common caracteristics of the agents.
Field Summary | |
double |
agentWealthAtMeanDailyPrice
The agent's wealth at mean daily price. |
double |
asymmetricBuySellProb
The asimmetry of buy and sell probability. |
double |
buySellSwitch
The distribution of buy and sell order (fixed to 0.5). |
java.util.ArrayList |
executedPrices
The matrix of orders' prices. |
int |
iMax
The quantity of orders sending out by the agent. |
double |
liquidityQuantity
The liquidity of the agent. |
int |
maxOrderQuantity
The maximum number of order per agent. |
double |
meanOperatingPrice
The average price of the satified order. |
int |
number
This is the number of the agent. |
double |
price
The price of the order. |
int |
printing
If printing=1 many objects print data on the terminal window; If printing=4 BasicSumAgents print data on the terminal window. |
double |
shareQuantity
The total agent's quantity of shares |
double |
shareValueAtMeanDailyPrice
The value of the shares at mean daily price. |
Book |
theBook
The book of the model. |
Constructor Summary | |
BasicSumAgent(Zone aZone,
int maxOrderQuantity)
Constructor for a new BasicSumAgent. |
Method Summary | |
void |
act0()
This method exists only for the CurrentAgent. |
void |
act1()
This method exists only for the CurrentAgent. |
void |
act2()
This is the method that the agent calls at the end of the day. |
double |
extract(java.util.ArrayList nameList,
int indexOrder,
int positionDatum)
To extract data from the orders received from agents. |
double |
getWealthAtMeanDailyPrice()
Return agent's wealth at mean daily price. |
void |
setAsymmetricBuySellProb(double p)
This method sets the asymmetricBuySellProb. |
void |
setBook(Book b)
This method sets the book. |
void |
setConfirmationOfExecutedPrice(double[] p)
The number of executed prices is increased |
void |
setMaxOrderQuantity(int m)
This method sets the maximum number of order per agent. |
void |
setNumber(int n)
This method sets the number of the agent. |
void |
setPrinting(int p)
Option about the agent print capability. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public int number
public int iMax
public int printing
public double price
public double asymmetricBuySellProb
public double buySellSwitch
public double shareQuantity
public int maxOrderQuantity
public double shareValueAtMeanDailyPrice
public double liquidityQuantity
public double agentWealthAtMeanDailyPrice
public double meanOperatingPrice
public java.util.ArrayList executedPrices
public Book theBook
Constructor Detail |
public BasicSumAgent(Zone aZone, int maxOrderQuantity)
Method Detail |
public double extract(java.util.ArrayList nameList, int indexOrder, int positionDatum)
public void setNumber(int n)
public void setAsymmetricBuySellProb(double p)
public void setBook(Book b)
public void setMaxOrderQuantity(int m)
public void setPrinting(int p)
public void setConfirmationOfExecutedPrice(double[] p)
public void act0()
public void act1()
public void act2()
public double getWealthAtMeanDailyPrice()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |