|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectEntityType
TMST.representation.Executor
Class representing an agent which has volunteered to perform (or execute) an action.
Constructor Summary | |
Executor(Entity ent)
|
|
Executor(TMST tmst,
java.lang.String name,
java.lang.String description,
Action action,
java.lang.String costValue,
java.lang.String reference)
|
Method Summary | |
void |
addAction(java.lang.String actionName,
java.lang.String costValue,
java.lang.String reference)
Method for adding an action to the executor |
Action[] |
getActions()
Method returning all actions this executor may perform. |
Cost |
getCost(java.lang.String actionName)
Method returning the specified cost. |
float |
getCostValue(java.lang.String actionName)
Method returning the specified cost. |
static boolean |
matches(Entity value)
Overriding EntityType's method |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Executor(TMST tmst, java.lang.String name, java.lang.String description, Action action, java.lang.String costValue, java.lang.String reference) throws NameAlreadyExistException
public Executor(Entity ent) throws EntityTypeNotMatchedException
Method Detail |
public Action[] getActions()
public void addAction(java.lang.String actionName, java.lang.String costValue, java.lang.String reference) throws java.lang.Exception
java.lang.Exception
public Cost getCost(java.lang.String actionName)
actionName
- The name of the action which cost information is requested
public float getCostValue(java.lang.String actionName) throws AlreadyHasValueException
actionName
- The name of the action which cost information is requested
AlreadyHasValueException
public static boolean matches(Entity value)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |