|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectEntityType
TMST.representation.Action
Class describing the actual, executable bit which may be assigned to an agent. Actions are Problem solving methods which are executable. Actions are described by the type of action it is.Parameters actions may hold:
Constructor Summary | |
Action(Entity ent)
|
|
Action(TMST tmst,
java.lang.String name,
java.lang.String description,
java.lang.String actiontype)
Contains action type as string. |
Method Summary | |
Assumption[] |
getAssumptions()
Method for getting the assumptions for the current action. |
Cost |
getExecutionCost()
Metohod returning the execution cost as cost entity |
float |
getExecutionCostValue()
Metohod returning the execution cost as cost entity |
Executor |
getExecutor()
Method for getting the executor which has been selected to execute the action |
java.lang.String |
getExecutorString()
Method for returning the executor which has been selected to execute the action as a String. |
Input[] |
getInputs()
Method for getting all input part the action |
java.util.ArrayList |
getInputsString()
Method for getting all input-entities as strings |
Output |
getOutput()
|
java.lang.String |
getOutputString()
Method for getting the output entity as a string |
java.lang.String |
getTask()
Method returning the task that is executed by this action |
ActionType |
getType()
Method returning the actiontype of this action |
boolean |
isActivated()
Method for checking whether an action is activated or not. |
boolean |
isSolutionPart()
Method for checking whether a action is part of the solution or not. |
boolean |
isSpacePart()
Method for checking whether a action is part of the solution space or not. |
static boolean |
matches(Entity value)
Method which has to be overriden (from the class EntityType) |
void |
setAsActivated()
Method for setting an action as activated. |
void |
setAssumption(Assumption ass)
Method for setting the assumptions related to the action. |
void |
setAssumptions(Assumption[] ass)
Method for setting the assumptions related to the action. |
protected void |
setExecutionCost(Cost cost)
Private method for setting the execution cost. |
void |
setExecutor(Executor executor)
|
void |
setInput(Input in)
Method for adding Input to the action |
void |
setInputs(Input[] ins)
Method for adding a set of inputs to the action |
void |
setOutput(Output out)
|
void |
setOutputs(Output[] outs)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Action(TMST tmst, java.lang.String name, java.lang.String description, java.lang.String actiontype) throws NameAlreadyExistException
tmst
- The knowledge model that contains the actionname
- The name of the actiondescription
- Description of the action.actiontype
- The type of the action, name as string.bpublic Action(Entity ent) throws EntityTypeNotMatchedException
Method Detail |
public void setExecutor(Executor executor)
public Cost getExecutionCost() throws AlreadyHasValueException
AlreadyHasValueException
public Executor getExecutor() throws AlreadyHasValueException
AlreadyHasValueException
public java.lang.String getExecutorString()
public float getExecutionCostValue() throws AlreadyHasValueException
AlreadyHasValueException
public boolean isSpacePart()
public boolean isSolutionPart()
protected void setExecutionCost(Cost cost) throws AlreadyHasValueException
cost
- The cost entity to relate to
AlreadyHasValueException
public void setAssumption(Assumption ass)
ass
- The assumptions which apply for the action.public void setAssumptions(Assumption[] ass)
ass
- The assumptions which apply for the action.public Assumption[] getAssumptions()
public void setInput(Input in)
in
- The input to add to the actionpublic void setInputs(Input[] ins)
ins
- The set of inputs to add to the actionpublic Input[] getInputs()
public java.util.ArrayList getInputsString()
public void setOutput(Output out)
public void setOutputs(Output[] outs)
public Output getOutput() throws java.lang.Exception
java.lang.Exception
public java.lang.String getOutputString()
public boolean isActivated()
public void setAsActivated()
public ActionType getType() throws java.lang.Exception
java.lang.Exception
public java.lang.String getTask()
public static boolean matches(Entity value)
value
- The entity to match againts the class Action
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |