|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectEntityType
TMST.representation.Task
Class describing tasks. Task describes what to do. Parameters a task may hold:
Constructor Summary | |
Task(Entity ent)
Cosntructor for encpsulating an entity as a psm (to be allowed to use psm methods on it) |
|
Task(TMST tmst,
java.lang.String name,
java.lang.String description)
Constructor, calls the super class constructor only with knowledge model and name as parameters Parameters a task may takes: |
Method Summary | |
Action[] |
getActions()
Method for getting all actions part the task |
Cost |
getCost()
Method returning the cost entity of this task. |
float |
getCostValue()
Method returning the cost entity of this task. |
Goal[] |
getGoals()
Method returning all goals of the Task. |
Input[] |
getInputs()
Method for getting all input part the task |
java.util.ArrayList |
getInputsString()
Method for getting all input-entities as strings |
Output[] |
getOutputs()
Method for getting all output entities part the task |
java.lang.String |
getOutputString()
Method for getting the output entity as a string - this method assume that there is only one output. |
ProblemSolvingMethod[] |
getProblemSolvingMethods()
Method which returns all of the problem solving methods related to this particular task |
boolean |
isActivated()
Method for checking whether a task is activated or not. |
boolean |
isInitialProblem()
Method returning true if the this task is the initial problem and thus the root node in the task structure tree, and false if otherwise. |
boolean |
isSolutionPart()
Method for checking whether a task is part of the solution or not. |
boolean |
isSpacePart()
Method for checking whether a task is part of the solution space or not. |
static boolean |
matches(Entity value)
Method which has to be overriden (from the class EntityType) |
void |
setAction(Action action)
Method for adding an action to the task |
void |
setActions(Action[] actions)
Method for adding a set of actions to the task |
void |
setAsActivated()
Method for setting a task as activated. |
void |
setAsSolutionPart()
Method for setting a task as activated. |
void |
setAssumption(Assumption ass)
Method for setting the assumptions related to the task. |
void |
setAssumptions(Assumption[] ass)
Method for setting the assumptions related to the task. |
protected void |
setCost(float costValue)
Method for setting the cost of a task. |
void |
setGoal(Goal goal)
Method for adding a goal to the Task. |
void |
setGoals(Goal[] goals)
Method for adding a set of goals to the Task. |
void |
setInput(Input in)
Method for adding Input to the task |
void |
setInputs(Input[] ins)
Method for adding a set of inputs to the task |
void |
setOutput(Output out)
Method for adding output to the task |
void |
setOutputs(Output[] outs)
Method for adding a set of outputs to the task |
void |
setProblemSolvingMethod(ProblemSolvingMethod psm)
Method for adding one problem solving method to the Task. |
void |
setProblemSolvingMethods(ProblemSolvingMethod[] psms)
Method for adding a set of problem solving methods to the task. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Task(TMST tmst, java.lang.String name, java.lang.String description) throws NameAlreadyExistException
tmst
- The TMST this Task is a part of.name
- The name of the task.description
- The description of the task.public Task(Entity ent) throws EntityTypeNotMatchedException
ent
- The entity to encapsulate.Method Detail |
public void setGoal(Goal goal)
goal
- The goal which is being addded to the task.public void setGoals(Goal[] goals)
goals
- The set of goals which is to be added to the task.public Goal[] getGoals() throws java.lang.Exception
java.lang.Exception
public void setAssumption(Assumption ass)
ass
- The assumptions which apply for the task.public void setAssumptions(Assumption[] ass)
ass
- The assumptions which apply for the task.public void setProblemSolvingMethod(ProblemSolvingMethod psm)
psm
- The problem solving method to add to the task.public void setProblemSolvingMethods(ProblemSolvingMethod[] psms)
psms
- The set of problem solving methods to add to the task.public ProblemSolvingMethod[] getProblemSolvingMethods()
public void setInput(Input in)
in
- The input to add to the taskpublic void setInputs(Input[] ins)
ins
- The set of inputs to add to the taskpublic Input[] getInputs()
public java.util.ArrayList getInputsString()
public void setOutput(Output out)
out
- The output to add to the taskpublic void setOutputs(Output[] outs)
outs
- The set of outputs to add to the taskpublic Output[] getOutputs()
public java.lang.String getOutputString()
public void setAction(Action action)
action
- The action to add to the taskpublic void setActions(Action[] actions)
actions
- The set of actions to add to the taskpublic Action[] getActions()
protected void setCost(float costValue) throws AlreadyHasValueException
AlreadyHasValueException
public Cost getCost() throws AlreadyHasValueException
AlreadyHasValueException
public float getCostValue() throws AlreadyHasValueException
AlreadyHasValueException
public void setAsActivated()
public void setAsSolutionPart()
public boolean isSpacePart()
public boolean isSolutionPart()
public boolean isActivated()
public boolean isInitialProblem()
public static boolean matches(Entity value)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |