|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.iastate.jrelm.core.SimpleAction<O>
O
- - the type of object being use to represent a course of action.
Note, this is different from the Action interface where the
type parameter specificies the type of identifier being used.
SimpleAction implements Action, specifying the identifier type
as Integer.public class SimpleAction<O>
Simple class that implements the Action interface. It acts as a wrapper around a given object specifying or containing information required for an operation the agent may peform in the simulation environment. In other words, the object represents a course of action in the world and SimpleAction acts as a wrapper to make it compatible with other JReLM components.
Constructor Summary | |
---|---|
SimpleAction(java.lang.Integer id,
O activity)
Make a SimpleAction, given the action representation Object and an ID. |
Method Summary | |
---|---|
O |
getAct()
Retrieve the object this is an Action wrapper for. |
java.lang.Integer |
getID()
Retrieve the ID for this action |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SimpleAction(java.lang.Integer id, O activity)
id
- - identifier for this actionactivity
- - object representing an action or operation an agent
can perform in the simulation model.Method Detail |
---|
public O getAct()
public java.lang.Integer getID()
getID
in interface Action<java.lang.Integer>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |