cz.cuni.amis.pogamut.multi.communication.messages
Class SharedBatchBeginEvent

Package class diagram package SharedBatchBeginEvent
java.lang.Object
  extended by 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

Constructor Summary
SharedBatchBeginEvent(long time, IAgentId agentId)
           
 
Method Summary
 IAgentId getAgentId()
          Returns ID of the agent from which comes the batch.
 long getSimTime()
          Time when the change has happened inside the environment.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SharedBatchBeginEvent

public SharedBatchBeginEvent(long time,
                             IAgentId agentId)
Method Detail

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 © 2013 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.