public interface ServiceSensorInterface
ServiceSensor
.
It is used in the SimulationAgent
or in the SimulationServiceBehaviour
in order to connect to the SimulationService
and its sensor system.Modifier and Type | Method and Description |
---|---|
void |
doDelete()
Will delete/kill the current agent.
|
jade.core.AID |
getAID()
Returns the AID of the current Agent.
|
void |
setEnvironmentModel(EnvironmentModel envModel,
boolean aSynchron)
This method will be used by the
ServiceActuator to inform
this agent about changes in the environment. |
void |
setMigration(jade.core.Location newLocation)
This method will be used by the ServiceActuator (class) to inform
this agent about its new migration location.
|
void |
setNotification(EnvironmentNotification notification)
This method can be invoked from the simulation service, if
a notification for the manager has to be delivered.
|
void |
setPauseSimulation(boolean isPauseSimulation)
This method will be used by the ServiceActuator (class) to inform
that the simulation is paused or not.
|
void setMigration(jade.core.Location newLocation)
newLocation
- the new Location for the migrationvoid setPauseSimulation(boolean isPauseSimulation)
isPauseSimulation
- the new pause simulationvoid setEnvironmentModel(EnvironmentModel envModel, boolean aSynchron)
ServiceActuator
to inform
this agent about changes in the environment. It can be either used
to do this asynchronously or synchronously. It is highly recommended
to do this asynchronously, so that the agency can act parallel and not
sequentially.envModel
- the current or new EnvironmentModelaSynchron
- true, if this should be done asynchronouslyvoid setNotification(EnvironmentNotification notification)
notification
- the new notificationvoid doDelete()
jade.core.AID getAID()