View Javadoc

1   package cz.cuni.amis.pogamut.ut2004.communication.translator.shared.events;
2   
3   import java.util.List;
4   
5   import cz.cuni.amis.pogamut.base.communication.translator.event.WorldEventIdentityWrapper;
6   
7   /**
8    * Event notifying that list of some objects/events was received.
9    * @author ik
10   */
11  public class ListObtained<T> extends TranslatorEvent {
12  
13  	private List<T> list;
14  
15  	public ListObtained(List<T> list, long simTime) {
16  		super(simTime);
17  		this.list = list;
18  	}
19  
20      /**
21       * Returns list of received objects.
22       * @return
23       */
24  	public List<T> getList() {
25  		return list;
26  	}
27  
28  	@Override
29  	public String toString() {
30  		return "ListObtained[list.size() = " + list.size() + "]";
31  	}
32  
33  }