public class ServiceSensor
extends java.lang.Object
SimulationAgent. It transfers information about new environment
models, notifications in relation to the environment, the location where an
agent has to migrate and that a agent will be shut down.SimulationAgent| Constructor and Description |
|---|
ServiceSensor(ServiceSensorInterface serviceSensor)
Instantiates a new service sensor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
doDelete()
Does the
doDelete() method of the agent. |
ServiceSensorInterface |
getServiceSensor()
Gets the current service sensor.
|
void |
notifyAgent(EnvironmentNotification notification)
Notifies an agent about things, taht happen in the environment.
|
void |
putEnvironmentModel(EnvironmentModel environmentModel,
boolean aSynchron)
Puts a new environment model to the agent.
|
void |
putMigrationLocation(jade.core.Location newLocation)
Puts the Location to the agent, where the agent has to migrate to.
|
void |
setPauseSimulation(boolean isPauseSimulation)
Sets that the simulation is to be paused or not.
|
public ServiceSensor(ServiceSensorInterface serviceSensor)
serviceSensor - the service sensorpublic ServiceSensorInterface getServiceSensor()
public void putEnvironmentModel(EnvironmentModel environmentModel, boolean aSynchron)
environmentModel - the environment modelaSynchron - true, if synchronouslypublic void notifyAgent(EnvironmentNotification notification)
notification - the EnvironmentNotificationpublic void doDelete()
doDelete() method of the agent.public void setPauseSimulation(boolean isPauseSimulation)
isPauseSimulation - the new pause simulationpublic void putMigrationLocation(jade.core.Location newLocation)
newLocation - the new location