|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectEntityType
TMST.representation.ProblemSolvingMethod
Class describing Problem Solving Methods. PSMs describe what to do by pointing to tasks which solve a certain task which refers to the PSM. Parameters the PSM may hold:
Constructor Summary | |
ProblemSolvingMethod(Entity ent)
Cosntructor for encpsulating an entity as a psm (to be allowed to use psm methods on it) |
|
ProblemSolvingMethod(TMST tmst,
java.lang.String name,
java.lang.String description)
Constructor for Problem Solving Methods |
Method Summary | |
Assumption[] |
getAssumptions()
Method for getting the assumptions for the current problem solving method. |
java.util.ArrayList |
getControlInformation()
A method that returns all Constraints that apply for this psm |
Cost |
getCost()
Method returning the cost entity of this psm. |
float |
getCostValue()
Method returning the cost entity of this psm. |
Input[] |
getInput()
Method which returns the input this method requires |
java.util.ArrayList |
getInputsString()
Method for getting all input-entities as strings |
Output[] |
getOutput()
Method which returns any output related to this psm |
java.lang.String |
getOutputString()
Method for getting the output entity as a string - this method assume that there is only one output. |
Task[] |
getSubtasks()
A method that returns all subtasks that this problem solving method points to |
boolean |
isActivated()
Method for checking whether an action is activated or not. |
protected boolean |
isFulFilled()
Method which checks whether all subtasks of this problem solving method are activated. |
boolean |
isSolutionPart()
Method for checking whether a psm is part of the solution or not. |
boolean |
isSpacePart()
Method for checking whether a PSM 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 psm. |
void |
setAssumptions(Assumption[] ass)
Method for setting the assumptions related to the psm. |
void |
setControlInformation(java.lang.String value)
Method for adding a value to the control information of this PSM |
void |
setControlInformation(Value value)
Method for adding a value to the control information of this PSM |
protected void |
setCost(float costValue)
Method for setting the cost of a PSM. |
void |
setInput(Input input)
Method for setting input of the PSM |
void |
setInputs(Input[] ins)
Method which sets the input needed for to solve the psm >> Assumptions? |
void |
setOutput(Output output)
Method for setting an output for the psm. |
void |
setOutputs(Output[] outs)
Method for setting a set of outputs for the psm. |
void |
setSubtask(Task subtask)
Method for setting one subtask for this PSM to point to |
void |
setSubtasks(Task[] subtasks)
Method for setting a set of subtasks as the tasks this PSM points to. |
void |
updateControlInformation(ControlInformation ci)
Method for updating the control information of this PSM |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ProblemSolvingMethod(TMST tmst, java.lang.String name, java.lang.String description) throws NameAlreadyExistException
tmst
- The TMST this problem solving method belongs toname
- The name of the problem solving methoddescription
- Description of the PSMpublic ProblemSolvingMethod(Entity ent) throws EntityTypeNotMatchedException
ent
- The entity to encapsulate.Method Detail |
public boolean isSpacePart()
public boolean isSolutionPart()
protected boolean isFulFilled()
protected void setCost(float costValue) throws AlreadyHasValueException
AlreadyHasValueException
public Cost getCost() throws AlreadyHasValueException
AlreadyHasValueException
public float getCostValue() throws AlreadyHasValueException
AlreadyHasValueException
public void setSubtask(Task subtask)
subtask
- The task to point to.public void setSubtasks(Task[] subtasks)
subtasks
- The set of subtasks which is to be associated with this psm.public Task[] getSubtasks()
public void setControlInformation(java.lang.String value)
value
- Value to add to the control information, as a String.public void setControlInformation(Value value)
value
- Value to add to the control information, as a Value class instance.public void updateControlInformation(ControlInformation ci) throws java.lang.Exception
ci
- The control information which is to be associated with the psm.
java.lang.Exception
public java.util.ArrayList getControlInformation()
public void setOutput(Output output)
output
- The outputpublic void setOutputs(Output[] outs)
outs
- The set of outputpublic Output[] getOutput()
public java.lang.String getOutputString()
public void setInput(Input input)
input
- The input.public void setInputs(Input[] ins)
ins
- The set of inputs assigned to the PSMspublic Input[] getInput()
public java.util.ArrayList getInputsString()
public void setAssumption(Assumption ass)
ass
- The assumptions which apply for the psmpublic void setAssumptions(Assumption[] ass)
ass
- The assumptions which apply for the psmpublic Assumption[] getAssumptions() throws java.lang.Exception
java.lang.Exception
public boolean isActivated()
public void setAsActivated()
public static boolean matches(Entity value)
value
- The entity to match against.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |