- java.lang.Object
-
- cz.cuni.amis.pogamut.sposh.executor.StateAction<CONTEXT,RETURN>
-
- Type Parameters:
CONTEXT
- Context of this action, used to manipulate the environment.RETURN
- Class of object this action returns every time it is evaluated.
- All Implemented Interfaces:
- IAction<RETURN>
public abstract class StateAction<CONTEXT extends Context,RETURN>
extends Object
implements IAction<RETURN>
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
Fields
Modifier and Type |
Field and Description |
protected CONTEXT |
ctx
Context for the action
|
-
Constructor Summary
Constructors
Modifier |
Constructor and Description |
protected |
StateAction(String name,
CONTEXT ctx)
Create new state action.
|
-
Method Summary
Methods
Modifier and Type |
Method and Description |
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
-
-
Method Detail
-
getName
public String getName()
Get name of the action.
- Returns:
- the name
Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.