|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use SimulationAgent | |
---|---|
se.sics.tasim.sim |
Uses of SimulationAgent in se.sics.tasim.sim |
---|
Methods in se.sics.tasim.sim that return SimulationAgent | |
---|---|
protected SimulationAgent |
Simulation.getAgent(int participantID)
|
protected SimulationAgent |
Simulation.getAgent(java.lang.String name)
|
protected SimulationAgent[] |
Simulation.getAgents()
|
protected SimulationAgent[] |
Simulation.getAgents(int role)
|
protected SimulationAgent |
Simulation.registerAgent(Agent agent,
java.lang.String name,
int role,
int participantID)
Registers the specified agent in this simulation and initializes it. |
Methods in se.sics.tasim.sim with parameters of type SimulationAgent | |
---|---|
protected abstract int |
Simulation.getAgentRecoverMode(SimulationAgent agent)
Called whenever an external agent has logged in and needs to recover its state. |
void |
MessageListener.messageReceived(SimulationAgent receivingAgent,
java.lang.String sender,
Transportable content)
|
void |
MessageListener.messageSent(SimulationAgent sendingAgent,
int role,
Transportable content)
|
void |
MessageListener.messageSent(SimulationAgent sendingAgent,
java.lang.String receiver,
Transportable content)
|
protected abstract void |
Simulation.recoverAgent(SimulationAgent agent)
Called whenever an external agent has logged in and needs to recover its state. |
protected abstract boolean |
Simulation.validateMessage(SimulationAgent receiver,
Message message)
Validates this message to ensure that it may be delivered to the agent. |
protected abstract boolean |
Simulation.validateMessageToRole(SimulationAgent sender,
int role,
Transportable content)
Validates this message to ensure that it may be broadcasted to all agents with the specified role. |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |