cz.cuni.amis.pogamut.sposh.executor
Class Succeed

Package class diagram package Succeed
java.lang.Object
  extended by cz.cuni.amis.pogamut.sposh.executor.StateSense<Context,Boolean>
      extended by cz.cuni.amis.pogamut.sposh.executor.Succeed
All Implemented Interfaces:
ISense<Boolean>

public class Succeed
extends StateSense<Context,Boolean>

Primitive sense, always succeed (return true) and do nothing else.

Author:
Honza

Field Summary
 
Fields inherited from class cz.cuni.amis.pogamut.sposh.executor.StateSense
ctx
 
Constructor Summary
Succeed(Context ctx)
           
 
Method Summary
 Boolean query(VariableContext ctx)
          Query current value of sense.
 
Methods inherited from class cz.cuni.amis.pogamut.sposh.executor.StateSense
getCtx, getName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Succeed

public Succeed(Context ctx)
Method Detail

query

public Boolean query(VariableContext ctx)
Description copied from interface: ISense
Query current value of sense.

Parameters:
ctx - Variable context passed from posh plan to sense. Could be used for things like threshold and so on.
Returns:
what is sense currently sensing, e.g. number of friends in FOV


Copyright © 2014 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.