cz.cuni.amis.pogamut.multi.communication.messages
Class SharedBatchBeginEvent
java.lang.Object
cz.cuni.amis.pogamut.multi.communication.messages.SharedBatchBeginEvent
- All Implemented Interfaces:
- IWorldChangeEvent, cz.cuni.amis.utils.listener.Event
public class SharedBatchBeginEvent
- extends Object
- implements IWorldChangeEvent
This message is used by a localWorldView to notify sharedWorldView, that a new batch has started and the LocalWorldView is
waiting for the sharedWorldView to process all events from this batch.
Since the batches are agent-dependent, the event contains information about both the time of the batch and the Agent that sent it.
- Author:
- srlok
SharedBatchBeginEvent
public SharedBatchBeginEvent(long time,
IAgentId agentId)
getAgentId
public IAgentId getAgentId()
- Returns ID of the agent from which comes the batch.
- Returns:
getSimTime
public long getSimTime()
- Description copied from interface:
IWorldChangeEvent
- Time when the change has happened inside the environment.
- Specified by:
getSimTime
in interface IWorldChangeEvent
- Returns:
- timestamp
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2015 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.