|
|||||||||
| Home >> All >> org >> metacosm >> framework >> [ interact overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.metacosm.framework.interact
Interface DecisionTreeFA

- All Superinterfaces:
- DecisionTree
- All Known Implementing Classes:
- DecisionTreeImpl
- public interface DecisionTreeFA
- extends DecisionTree
Tree like data structure modeling the intentions of an entity for the short term future. Full Access interface.
| Field Summary |
| Fields inherited from interface org.metacosm.framework.interact.DecisionTree |
TREE_ROOT |
| Method Summary | |
void |
advanceTime(int delay)
end of actions simulation: some time has ellapsed. |
void |
cleanup()
End of turn: move all completed, failed, canceled actions out of the tree. |
Intention |
getCompletedActionsHead()
get Access to list of failed Intentions |
Intention |
getFailedActionsHead()
get Access to list of completed Intentions |
int |
getTimeLeft()
getter of time left until end of quantum |
void |
programActionFA(Intention parent,
Intention i1)
Add a two leaf node from the Root of the tree Full Access interface |
void |
programActionFA(Intention parent,
Intention i1,
Intention i2)
Add a one leaf node to an existing node Full Access interface |
void |
resetTimeLeft()
start of new turn: update timeLeft |
void |
setCompleted(Intention i)
mark the current intention as completed |
void |
setFailed(Intention ref)
mark the specified intention as failed |
void |
setInterrupted(Intention ref)
mark the current intention as interrupted |
void |
setProgress(Intention i,
int value)
Modify the progress indicator of the specified intention |
void |
setStarted(Intention i)
mark the current intention as started |
| Methods inherited from interface org.metacosm.framework.interact.DecisionTree |
cancel, cancelCurrentIntention, deprogramAction, getCurrentIntention, getProgress, getRoot, programAction, programAction |
| Method Detail |
programActionFA
public void programActionFA(Intention parent, Intention i1)
- Add a two leaf node from the Root of the tree
Full Access interface
programActionFA
public void programActionFA(Intention parent, Intention i1, Intention i2)
- Add a one leaf node to an existing node
Full Access interface
setStarted
public void setStarted(Intention i)
- mark the current intention as started
setCompleted
public void setCompleted(Intention i)
- mark the current intention as completed
setProgress
public void setProgress(Intention i, int value)
- Modify the progress indicator of the specified intention
setFailed
public void setFailed(Intention ref)
- mark the specified intention as failed
setInterrupted
public void setInterrupted(Intention ref)
- mark the current intention as interrupted
resetTimeLeft
public void resetTimeLeft()
- start of new turn: update timeLeft
advanceTime
public void advanceTime(int delay)
- end of actions simulation: some time has ellapsed.
getTimeLeft
public int getTimeLeft()
- getter of time left until end of quantum
getCompletedActionsHead
public Intention getCompletedActionsHead()
- get Access to list of failed Intentions
- Specified by:
getCompletedActionsHeadin interfaceDecisionTree
getFailedActionsHead
public Intention getFailedActionsHead()
- get Access to list of completed Intentions
- Specified by:
getFailedActionsHeadin interfaceDecisionTree
cleanup
public void cleanup()
- End of turn: move all completed, failed, canceled actions out of the tree.
|
|||||||||
| Home >> All >> org >> metacosm >> framework >> [ interact overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC