|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectSwarmImpl
ModelSwarm
The Model of JavaSum. The Model contains the Units and all the related tools.
Field Summary | |
ListImpl |
agentList
The list of all the agents. |
int |
agentNumber
The total number of agents. |
double |
agentProbToActBelowFloorP
The probability to act below floor price. |
double |
agentProbToActInOpeningOrClosingAuctions
The probability of placing an order in the opening or closing phase. |
double |
agentProbToActWithMarketPrice
The probability of placing an order with market price. |
RandomAgent |
anAgent1
The agents of the simulation. |
MarketImitatingAgent |
anAgent2
|
LocallyImitatingAgent |
anAgent3
|
StopLossAgent |
anAgent4
|
double |
asymmetricBuySellProb
The asimmetry of buy and sell probability. |
double |
asymmetricRange
The asimmetry of max/minCorrectingCoeff. |
int |
checkingIfShortOrLong
To check the position(sharequantity) of the agent. |
int |
dayNumber
The number of current day. |
double |
floorP
The minimum price at which the agents acts. |
ListImpl |
indexAgentList
The list of the agents in create order. |
ListIndex |
indexAgentListIndex
Its iterator. |
int |
instantNumber
The total number of instants per day. |
ListImpl |
locallyImitatingAgentList
The list of the LocallyImitatingAgents. |
int |
locallyImitatingAgentNumber
|
ListImpl |
marketImitatingAgentList
The list of the MarketImitatingAgents. |
int |
marketImitatingAgentNumber
|
double |
maxCorrectingCoeff
The coefficient that RandomAgents multiplays by the last price for the order. |
double |
maxLossRate
The max rate of loss that stop loss agents effort. |
int |
maxNumberOfOperatingAgents
The maximum number of operating agents. |
int |
maxOrderQuantity
The maximum number of order per agent. |
double |
minCorrectingCoeff
The coefficient that RandomAgents multiplays by the last price for the order. |
ActionGroupImpl |
modelActions1
ActionGroup for holding an ordered sequence of action. |
ActionGroupImpl |
modelActions2
ActionGroup for holding an ordered sequence of action. |
ActionGroupImpl |
modelActions3
ActionGroup for holding an ordered sequence of action. |
ActionGroupImpl |
modelActions4
ActionGroup for holding an ordered sequence of action. |
ActionGroupImpl |
modelActionsLS
ActionGroup for holding an ordered sequence of action. |
ScheduleImpl |
modelSchedule
The Schedule operating in the Model. |
int |
percentageOfOperatingAgents
The percentage quota of agents which act in the market. |
int |
printing
If 1 book prints data on the terminal window, 2 for Agent. |
ListImpl |
randomAgentList
The list of the RandomAgents. |
int |
randomAgentNumber
|
RandomRuleMaster |
randomRuleMaster
The randomRuleMaster manages RandomAgents. |
ListImpl |
stopLossAgentList
The list of the StopLossAgents. |
int |
stopLossAgentNumber
|
int |
stopLossInterval
The interval that stop loss agents consider for their strategy. |
StopLossRuleMaster |
stopLossRuleMaster
The stopLossRuleMaster manages StopLossAgents. |
Book |
theBook
The book of the simulation. |
CurrentAgent |
theCurrentAgent
This is a "ghost agent". |
CurrentInstant |
theCurrentInstant
The object for the calls of the agents. |
boolean |
typeOfPercentage
The type of percetage of agents. |
Constructor Summary | |
ModelSwarm(Zone aZone)
Constructor for a new ModelSwarm. |
Method Summary | |
Activity |
activateIn(Swarm swarmContext)
Now set up the model's activation. swarmContext indicates where we're being started in - typically, this model is run as a subswarm of an observer swarm. |
java.lang.Object |
buildActions()
Here is where the model schedule is built, the data structures that define the simulation of time in the model. |
java.lang.Object |
buildObjects()
Build the model objects. |
ListImpl |
getAgentList()
The method returns the list of the agents. |
ListIndex |
getAgentListIndex()
The method returns the index of indexAgentList. |
Book |
getBook()
The method returns the book. |
int |
getCurrentDay()
The method returns the number of the day. |
ListImpl |
getLocallyImitatingAgentList()
The method returns the list of the LocallyImitatingAgents. |
ListImpl |
getMarketImitatingAgentList()
The method returns the list of the MarketImitatingAgents. |
ListImpl |
getRandomAgentList()
The method returns the list of the RandomAgents. |
ListImpl |
getStopLossAgentList()
The method returns the list of the StopLossAgents. |
void |
increaseCurrentDayNumber()
The method increases the number of the day. |
void |
openProbeTo(int n)
The method opens the probe on an agent. |
void |
setAgentNumber()
The method set the number of the agents. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public int randomAgentNumber
public int marketImitatingAgentNumber
public int locallyImitatingAgentNumber
public int stopLossAgentNumber
public int agentNumber
public int instantNumber
public int dayNumber
public double asymmetricBuySellProb
public double minCorrectingCoeff
public double maxCorrectingCoeff
public double asymmetricRange
public double agentProbToActWithMarketPrice
public double agentProbToActInOpeningOrClosingAuctions
public double floorP
public double agentProbToActBelowFloorP
public int maxOrderQuantity
public double maxLossRate
public int stopLossInterval
public int checkingIfShortOrLong
public int percentageOfOperatingAgents
public int maxNumberOfOperatingAgents
public boolean typeOfPercentage
public int printing
public ListImpl agentList
public ListImpl randomAgentList
public ListImpl marketImitatingAgentList
public ListImpl locallyImitatingAgentList
public ListImpl stopLossAgentList
public ListImpl indexAgentList
public ListIndex indexAgentListIndex
public ActionGroupImpl modelActions1
public ActionGroupImpl modelActionsLS
public ActionGroupImpl modelActions2
public ActionGroupImpl modelActions3
public ActionGroupImpl modelActions4
public ScheduleImpl modelSchedule
public Book theBook
public RandomAgent anAgent1
public MarketImitatingAgent anAgent2
public LocallyImitatingAgent anAgent3
public StopLossAgent anAgent4
public RandomRuleMaster randomRuleMaster
public StopLossRuleMaster stopLossRuleMaster
public CurrentAgent theCurrentAgent
public CurrentInstant theCurrentInstant
Constructor Detail |
public ModelSwarm(Zone aZone)
Method Detail |
public java.lang.Object buildObjects()
public java.lang.Object buildActions()
public Activity activateIn(Swarm swarmContext)
public void increaseCurrentDayNumber()
public void setAgentNumber()
public int getCurrentDay()
public ListImpl getAgentList()
public ListImpl getRandomAgentList()
public ListImpl getMarketImitatingAgentList()
public ListImpl getLocallyImitatingAgentList()
public ListImpl getStopLossAgentList()
public ListIndex getAgentListIndex()
public Book getBook()
public void openProbeTo(int n)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |