cz.cuni.amis.pogamut.sposh.executor
Class StateAction<CONTEXT extends Context>

Package class diagram package StateAction
java.lang.Object
  extended by cz.cuni.amis.pogamut.sposh.executor.StateAction<CONTEXT>
Type Parameters:
CONTEXT - Context of this action, used to manipulate the environment.
All Implemented Interfaces:
IAction
Direct Known Subclasses:
DoNothing, ParamsAction

public abstract class StateAction<CONTEXT extends Context>
extends Object
implements IAction

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

Author:
Honza

Field Summary
protected  CONTEXT ctx
          Context for the action
 
Constructor Summary
protected StateAction(CONTEXT ctx)
          Create new state action.
protected StateAction(String name, CONTEXT ctx)
          Create new state action.
 
Method Summary
 CONTEXT getCtx()
          Get shared context of all primitives.
 String getName()
          Get name of the action.
 
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.IAction
done, init, run
 

Field Detail

ctx

protected final CONTEXT extends Context ctx
Context for the action

Constructor Detail

StateAction

protected StateAction(String name,
                      CONTEXT ctx)
Create new state action.

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

StateAction

protected StateAction(CONTEXT ctx)
Create new state action. Name of the action will be name of the class.

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

getName

public String getName()
Get name of the action.

Returns:
the name

getCtx

public CONTEXT getCtx()
Get shared context of all primitives.

Returns:
the ctx


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