public class InformationEvent extends Event
associatedSimulationContainer
Constructor and Description |
---|
InformationEvent(SimulationContainer simulationContainer,
double scheduledForTime,
Information respectiveInformation,
ConsumerAgent processingAgent)
An InformationEvent links a given information and the ConsumerAgent being informed to the
temporal frame.
|
Modifier and Type | Method and Description |
---|---|
void |
processEvent(double systemTime)
Processing an InformationEvent depends on how the ConsumerAgent responds to information.
|
compareTo, getScheduledForTime
getAssociatedSimulationContainer
public InformationEvent(SimulationContainer simulationContainer, double scheduledForTime, Information respectiveInformation, ConsumerAgent processingAgent) throws java.lang.IllegalArgumentException
simulationContainer
- The container the simulation runs inscheduledForTime
- The time the event is scheduled forrespectiveInformation
- The information that is to be received by the processingAgentprocessingAgent
- The ConsumerAgent processing the informationjava.lang.IllegalArgumentException
- Will be thrown when the processingAgent does not belong to the simulation (is not in the simulationContainer)public void processEvent(double systemTime)
processEvent
in class Event
systemTime
- The current time of the system for execution