public class EnvironmentNotification
extends java.lang.Object
implements java.io.Serializable
SimulationService
.Modifier and Type | Class and Description |
---|---|
class |
EnvironmentNotification.ProcessingInstruction
The Class ProcessingInstruction can be used in order to set
the further handling with the
EnvironmentNotification . |
Constructor and Description |
---|
EnvironmentNotification(jade.core.AID senderAID,
boolean comingFromManager,
java.lang.Object notification)
Instantiates a new environment notification.
|
Modifier and Type | Method and Description |
---|---|
void |
block(long period)
Sets the notification to be blocked for a time period in milliseconds.
|
void |
delete()
Sets the notification to be delete after proceeding.
|
java.lang.Object |
getNotification()
Gets the notification.
|
EnvironmentNotification.ProcessingInstruction |
getProcessingInstruction()
Returns the processing instruction for the further handling of the notification.
|
jade.core.AID |
getSender()
Gets the sender.
|
boolean |
isComingFromManager()
Checks if the notification is coming from the manager.
|
void |
moveLastOrBlock(long period)
Sets the notification to be moved to the last position of the notification queue.
|
void |
resetProcessingInstruction()
Resets the processing instruction.
|
void |
setComingFromManager(boolean comingFromManager)
Sets that the notification is the coming from the manager.
|
void |
setNotification(java.lang.Object notification)
Sets the notification.
|
void |
setSender(jade.core.AID sender)
Sets the sender.
|
public EnvironmentNotification(jade.core.AID senderAID, boolean comingFromManager, java.lang.Object notification)
senderAID
- the senders AIDcomingFromManager
- true, if this message comes from the manager of a simulationnotification
- the generalized notificationpublic void setSender(jade.core.AID sender)
sender
- the sender to setpublic jade.core.AID getSender()
public void setComingFromManager(boolean comingFromManager)
comingFromManager
- the commingFromManager to setpublic boolean isComingFromManager()
public void setNotification(java.lang.Object notification)
notification
- the notification to setpublic java.lang.Object getNotification()
public EnvironmentNotification.ProcessingInstruction getProcessingInstruction()
public void resetProcessingInstruction()
public void delete()
public void block(long period)
period
- the periodpublic void moveLastOrBlock(long period)