View Javadoc

1   package nl.tudelft.goal.ut2004.selector;
2   
3   import nl.tudelft.goal.unreal.util.Selector;
4   import cz.cuni.amis.pogamut.base3d.worldview.object.ILocated;
5   import cz.cuni.amis.pogamut.ut2004.bot.impl.UT2004BotModuleController;
6   import cz.cuni.amis.utils.NullCheck;
7   
8   /**
9    * Because the context of the bot that will used the selector is not availalble
10   * during translation. This allows that context to be provided after
11   * translation.
12   * 
13   * @author mpkorstanje
14   * 
15   */
16  public abstract class ContextSelector implements Selector<ILocated> {
17  
18  	@SuppressWarnings("rawtypes")
19  	protected UT2004BotModuleController modules;
20  
21  	@SuppressWarnings("rawtypes")
22  	public ContextSelector setContext(UT2004BotModuleController modules) {
23  		NullCheck.check(modules, "modules");
24  		this.modules = modules;
25  		return this;
26  	}
27  }