View Javadoc

1   package nl.tudelft.goal.ut3.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.ut3.bot.impl.UT3BotModuleController;
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 UT3BotModuleController modules;
20  
21  	@SuppressWarnings("rawtypes")
22  	public ContextSelector setContext(UT3BotModuleController modules) {
23  		NullCheck.check(modules, "modules");
24  		this.modules = modules;
25  		return this;
26  	}
27  }