cz.cuni.amis.pogamut.sposh.executor
Class StateSense<CONTEXT extends Context,RETURN>

Package class diagram package StateSense
java.lang.Object
  extended by cz.cuni.amis.pogamut.sposh.executor.StateSense<CONTEXT,RETURN>
Type Parameters:
CONTEXT - Context of this sense, used to manipulate the environment.
RETURN - Class of object this action returns every time it is queried.
All Implemented Interfaces:
ISense<RETURN>
Direct Known Subclasses:
Fail, ParamsSense, Succeed

public abstract class StateSense<CONTEXT extends Context,RETURN>
extends Object
implements ISense<RETURN>

Basic state sense primitive. It contains context and name. Wizzard for new state sense generates class that is extension of this class.

Author:
Honza

Field Summary
protected  CONTEXT ctx
          Context for the action
 
Constructor Summary
protected StateSense(CONTEXT ctx)
          Create new sense with context.
protected StateSense(String name, CONTEXT ctx)
          Create new sense with context.
 
Method Summary
 CONTEXT getCtx()
          The state sense context.
 String getName()
          Get name of the sense.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface cz.cuni.amis.pogamut.sposh.executor.ISense
query
 

Field Detail

ctx

protected final CONTEXT extends Context ctx
Context for the action

Constructor Detail

StateSense

protected StateSense(String name,
                     CONTEXT ctx)
Create new sense with context.

Parameters:
name - name of the sense.
ctx - action context, used as shared memory or environment interactor.

StateSense

protected StateSense(CONTEXT ctx)
Create new sense with context. Name of the sense will be simple name of the class.

Parameters:
ctx - action context, used as shared memory or environment interactor.
Method Detail

getCtx

public CONTEXT getCtx()
The state sense context.

Returns:
the ctx

getName

public final String getName()
Get name of the sense.

Returns:
Name of the sense.


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