|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.ObjectdecisionMakingSystem.Intention
public class Intention
Intention is one of the crucial classes of this decision making model
it represents an "OR" node of the tree, so it contains a set of actions
by which it can be satisfied (it suffices to succeed with one of them)
| Field Summary | |
|---|---|
int |
attractivity
specified in XML file - used to determine when to delete node from episodic memory |
boolean |
extend
specified in XML file - enables definition of common subtrees |
boolean |
extension
|
| Constructor Summary | |
|---|---|
Intention()
|
|
| Method Summary | |
|---|---|
Action |
chooseAction()
picks up an action to do next to try to satisfy the intention. |
Intention |
cloneBySerialize(Bot agent,
DecisionModuleImpl dModule)
makes hard copy of whole AND-OR tree via Serializable, as decision module and agent are transient it sets those manually after acquiring hard copy |
int |
compareTo(Object o)
|
void |
decreaseFadeout()
|
void |
dropOut(int time)
drop out happens when an intention finishes successfuly => so it will not be active in its activation interval -> drops out |
boolean |
equals(Object aThat)
|
static Intention |
exampleOfIntention()
|
ArrayList<Action> |
getActions()
|
ArrayList<Interval> |
getActivationIntervals()
|
int |
getActivity()
|
Action |
getAncestorAction()
|
Action |
getChosenAction()
|
int |
getDuration()
|
int |
getFadeout()
|
int |
getMemoryDuration()
|
String |
getName()
|
ArrayList<Action> |
getNotTriedActions()
|
IntentionStates |
getRealized()
|
int |
getTimeLimit()
|
int |
hashCode()
|
void |
increaseActivityToAllSources(ArrayList<EItem> things)
sets attractivity of all provided items which can satisfy any affordance of actions in the intention |
boolean |
increased(int time)
if it should be increased in the provided time |
void |
increaseDuration()
|
boolean |
isEnabled()
|
boolean |
isRoot()
|
void |
restrictTimeLimits(int intervalSize)
this procedure tries to restrict the time limits, so the subactions of the intention would fail/end earlier then normaly so far it restrains the interval to 2/3 of the given restrain for each subaction -> though with a bit more effort it can do it exactly like count the time before, make it proportional and set it according to it, but as it is not crucial, I made it this way |
Intention |
rootIntention()
|
void |
setActions(ArrayList<Action> actions)
|
void |
setActivationIntervals(ArrayList<Interval> activationIntervals)
|
void |
setActivity(int activity)
|
void |
setAncestorAction(Action ancestorAction)
|
void |
setChosenAction(Action chosenAction)
|
void |
setDuration(int duration)
|
void |
setEnabled(boolean enabled)
|
void |
setFadeout(int fadeout)
|
void |
setMemoryDuration(int memoryDuration)
|
void |
setName(String name)
|
void |
setNotTriedActions(ArrayList<Action> oldProcesses)
|
void |
setRealized(IntentionStates realized)
|
String |
toString()
|
void |
updateActivity(int time)
updates activity of the intention according to the habituation/activation function counts with dropout first - no need to restart it - it will be overriden later anyway |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public int attractivity
public boolean extend
public boolean extension
| Constructor Detail |
|---|
public Intention()
| Method Detail |
|---|
public Intention cloneBySerialize(Bot agent,
DecisionModuleImpl dModule)
agent - - link to agentdModule - - link to decision module
public String toString()
toString in class Objectpublic boolean increased(int time)
time -
public void updateActivity(int time)
public void increaseActivityToAllSources(ArrayList<EItem> things)
things - public Intention rootIntention()
public boolean isRoot()
public Action chooseAction()
public int compareTo(Object o)
compareTo in interface Comparablepublic boolean equals(Object aThat)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic int getActivity()
public void setActivity(int activity)
public boolean isEnabled()
public void setEnabled(boolean enabled)
public IntentionStates getRealized()
public void setRealized(IntentionStates realized)
public Action getChosenAction()
public void setChosenAction(Action chosenAction)
public ArrayList<Action> getActions()
public void setActions(ArrayList<Action> actions)
public ArrayList<Action> getNotTriedActions()
public void setNotTriedActions(ArrayList<Action> oldProcesses)
public ArrayList<Interval> getActivationIntervals()
public void setActivationIntervals(ArrayList<Interval> activationIntervals)
public Action getAncestorAction()
public void setAncestorAction(Action ancestorAction)
public String getName()
public void setName(String name)
public int getDuration()
public void setDuration(int duration)
public void increaseDuration()
public int getMemoryDuration()
public void setMemoryDuration(int memoryDuration)
public void setFadeout(int fadeout)
public int getFadeout()
public void decreaseFadeout()
public int getTimeLimit()
public void dropOut(int time)
time - public static Intention exampleOfIntention()
public void restrictTimeLimits(int intervalSize)
intervalSize - - the maximum timeLimit possible -> already in the steps of the logic
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||