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

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

public class Fail
extends StateSense<Context,Boolean>

Primitive sense that always fails (returns false) and does nothing else.

Author:
Honza

Field Summary
 
Fields inherited from class cz.cuni.amis.pogamut.sposh.executor.StateSense
ctx
 
Constructor Summary
Fail(Context ctx)
           
 
Method Summary
 Boolean query(VariableContext params)
          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

Fail

public Fail(Context ctx)
Method Detail

query

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

Parameters:
params - 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.