View Javadoc

1   package cz.cuni.amis.pogamut.sposh.ut2004.lib;
2   
3   import cz.cuni.amis.pogamut.sposh.engine.VariableContext;
4   import cz.cuni.amis.pogamut.sposh.executor.ISense;
5   import cz.cuni.amis.pogamut.ut2004.agent.module.sensor.AgentInfo;
6   
7   /**
8    * Get current health of the bot.
9    * @author Honza H.
10   */
11  public class SenseHealth implements ISense {
12  
13      private final AgentInfo info;
14  
15      public SenseHealth(AgentInfo info) {
16          this.info = info;
17      }
18  
19      @Override
20      public Object query(VariableContext ctx) {
21          return info;
22      }
23  }