View Javadoc

1   package cz.cuni.amis.pogamut.multi.communication.messages;
2   
3   import cz.cuni.amis.pogamut.base.communication.translator.event.IWorldChangeEvent;
4   
5   /**
6    * This event is sent by SharedWorldView to waiting LocalWorldViews after a batch has been fully
7    * processed by the shared WV. After this event is recieved, the shared and static data can be considered consistent for the
8    * time carried by the event.
9    * @author srlok
10   *
11   */
12  public class SharedBatchFinishedEvent implements IWorldChangeEvent {
13  	
14  	private long time;
15  	
16  	public SharedBatchFinishedEvent( long time )
17  	{
18  		this.time = time;
19  	}
20  
21  	@Override
22  	public long getSimTime() {
23  		return time;
24  	}
25  	
26  	@Override
27  	public String toString() {
28  		return "SharedBatchFinishedEvent[time=" + getSimTime() + "]";
29  	}
30  	
31  }