|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object aa4mm.basic.agent.GenericAgent
public abstract class GenericAgent
Generic Agent, this is an abstract class to represent the model agent.
Field Summary | |
---|---|
protected java.util.ArrayList<InputPort<? extends SimulData>> |
couplingArtefactInputPortList
Represents the list of coupling artifacts ports that allow the agent to post data. |
protected java.util.ArrayList<OutputPort<? extends SimulData>> |
couplingArtefactOutputPortList
Represents the list of coupling artifacts ports that allow the agent to read data. |
protected GenericModelArtefact |
modelArtefact
The model artifact the agent is in charge. |
Constructor Summary | |
---|---|
GenericAgent()
Constructor |
Method Summary | |
---|---|
void |
addInputCouplingArtefactPort(InputPort<? extends SimulData> in)
Link this agent with an coupling artifact input port |
void |
addOutputCouplingArtefactPort(OutputPort<? extends SimulData> out)
Link this agent with an coupling artifact output port |
abstract void |
executeModel()
Run the simulation. |
SimulTime |
getCurrentTime()
|
SimulTime |
getNextTime()
|
void |
initModel()
Initiate the model |
protected void |
post(SimulData data)
Post a given simulation data to the right coupling artifact input port. |
abstract void |
postOutputData()
Read model output data from the model artifact and post it to the coupling artifact input port. |
abstract void |
readInputData()
Read model input data from the coupling artifact output port and sent it to the model artifact. |
abstract void |
setInitialParameters()
A method to get the initial and external parameters from the external simulators and set them to the model. |
void |
setModelArtefact(GenericModelArtefact modelArtefact)
Link this agent with the modelArtefact. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.util.ArrayList<InputPort<? extends SimulData>> couplingArtefactInputPortList
protected java.util.ArrayList<OutputPort<? extends SimulData>> couplingArtefactOutputPortList
protected GenericModelArtefact modelArtefact
Constructor Detail |
---|
public GenericAgent()
Method Detail |
---|
public abstract void executeModel()
public void initModel()
public SimulTime getNextTime()
public SimulTime getCurrentTime()
public abstract void readInputData()
public abstract void postOutputData()
protected void post(SimulData data)
data
- public void setModelArtefact(GenericModelArtefact modelArtefact)
modelArtefact
- public void addInputCouplingArtefactPort(InputPort<? extends SimulData> in)
public void addOutputCouplingArtefactPort(OutputPort<? extends SimulData> out)
public abstract void setInitialParameters()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |