public class ServiceActuatorManager
extends java.lang.Object
SimulationService
, which is able to
inform all connected SimulationManagerAgent
with an integrated ServiceSensorManager
about the environment changes caused by SimulationAgent
(sometimes called agentAnswers).SimulationService
,
SimulationManagerAgent
,
ServiceSensorManager
,
EnvironmentNotification
,
Location
Constructor and Description |
---|
ServiceActuatorManager() |
Modifier and Type | Method and Description |
---|---|
ServiceSensorManager |
getSensor(jade.core.AID aid)
This method returns the ServiceSensor-Instance identified by the AID of the agent.
|
boolean |
notifyManager(jade.core.AID managerAID,
EnvironmentNotification notification)
Notify manager.
|
void |
notifyManagerPauseSimulation(boolean isPauseSimulation)
Notify that simulation has to be paused or not.
|
void |
plugIn(ServiceSensorManager currSensor)
Method for agents to plug-in to this actuator.
|
void |
plugOut(ServiceSensorManager currSensor)
Method to plug-out from this actuator
|
void |
putAgentAnswers(jade.core.AID managerAID,
java.util.Hashtable<jade.core.AID,java.lang.Object> agentAnswers,
boolean aSynchron)
This method informs the manager agent about the answers of all involved agents.
|
public void plugIn(ServiceSensorManager currSensor)
currSensor
- the ServiceSensorManager to plug-inpublic void plugOut(ServiceSensorManager currSensor)
currSensor
- the ServiceSensorManager to plug-outpublic ServiceSensorManager getSensor(jade.core.AID aid)
aid
- the AID of the agentpublic void putAgentAnswers(jade.core.AID managerAID, java.util.Hashtable<jade.core.AID,java.lang.Object> agentAnswers, boolean aSynchron)
managerAID
- the AID of the manager agentagentAnswers
- the agent answersaSynchron
- true, if this should be don asynchronouslypublic boolean notifyManager(jade.core.AID managerAID, EnvironmentNotification notification)
managerAID
- the AID of the managernotification
- the EnvironmentNotificationpublic void notifyManagerPauseSimulation(boolean isPauseSimulation)
isPauseSimulation
- the is pause simulation