|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectclarion.system.Task
Field Summary | |
protected TaskAgent[] |
agents
the agents running simultineously. |
protected Global[] |
globals
the global settings of agents. |
protected WriteFile |
modelDataFile
the file used to store the simulation data. |
protected int |
runningAgentNum
the # of agents running simultineously. |
protected java.lang.String[] |
settingNames
the setting names of agents. |
Constructor Summary | |
Task()
|
Method Summary | |
TaskAgent |
getAgent(int agentIdx)
Returns a specific agent. |
int |
getRunningAgentNum()
Returns the number of agent running simultaneously. |
java.lang.String |
getSettingName(int agentIdx)
Returns the setting name for this agent. |
void |
init()
initialize the Global object associated with each agent without using GUI. |
void |
setAgent(int agentIdx,
TaskAgent agent)
Sets a specific agent. |
void |
setDataFile(WriteFile file)
Sets the model dats file to store the simulation data. |
void |
setGlobals(Global[] globals)
Sets the global settings each agent is associated with. |
void |
setRunningAgentNum(int num)
Sets the number of agent running simultaneously. |
void |
setSettingNames(java.lang.String[] settingNames)
Sets setting names for running agents. |
abstract void |
start()
the start point of simulation of a task. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected int runningAgentNum
protected TaskAgent[] agents
protected Global[] globals
protected java.lang.String[] settingNames
protected WriteFile modelDataFile
Constructor Detail |
public Task()
Method Detail |
public int getRunningAgentNum()
public void setRunningAgentNum(int num)
public TaskAgent getAgent(int agentIdx)
public void setAgent(int agentIdx, TaskAgent agent)
agentIdx
- the agent index on the agent group.public java.lang.String getSettingName(int agentIdx)
public void setSettingNames(java.lang.String[] settingNames)
public void setGlobals(Global[] globals)
public void setDataFile(WriteFile file)
public void init()
public abstract void start()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |