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

java.lang.ObjectdecisionMakingSystem.Action
public class Action
Action is one of the core classes of this decision making modul. It represents the "AND" node of the AND-OR tree it contains a list of affordances which has to be satisfied before executing the action. Action is satisfied in the following fashion. First it needs to satisfy its intentions (all of them in the defined order), then it finds the affordances and in the end it performs consecutively atomic actions.
| Field Summary | |
|---|---|
int |
activity
value of the total activity in the perception field |
ArrayList<AtomicAction> |
atomicActions
atomic actions to do in sequence when in the list - moreover I can define the atomic actions to do after fulfilling intentions |
int |
atomicActionsIndex
index of atomic actions -> set on the actual to perform, increased when action is successfully performed |
int |
attention
attention give to the action, no clue what does it do so far |
int |
attractivity
specified in XML file - used to determine when to delete node from episodic memory |
int |
duration
how long does the activity takes to execute - for the activities which are not actively represented by activity of agent like sleep |
boolean |
enabled
if the action is blocked or not |
int |
fadeout
time after which the process will fade out from the short-term memory |
Intention |
intention
parental intention which invoked the action |
int |
intentionActivity
value of the activity of parental intention |
ArrayList<Intention> |
intentions
intentions necessary to fulfill the action - for hierarchical actions - in certain order |
String |
name
written as a part of the agent's name - to show what he's doing |
double |
realTimeLimit
real time limit - means in the MINUTES, should be given in the action description in the XML on the other hand timeLimit will be overridden by the calculated value from realTimeLimit and the number of iterations for a day |
HashMap<AffordanceType,EItem> |
satisfyingItems
items that satisfy affordances |
int |
start
iteration of the logic when the action begins to execute |
int |
time
how long is agent trying to do the activity |
int |
timeLimit
how long the agent will try to fulfil the action - in number of logic iterations or more precisely in number of executions of its atomic actions |
int |
unfullfiledIntentionsIndex
intentions to do - just increase index after fullfiling the current intention |
| Constructor Summary | |
|---|---|
Action()
|
|
Action(HashSet<AffordanceType> affos)
|
|
| Method Summary | |
|---|---|
Intention |
chooseIntention()
actually just returns the intention which should be performed now as they are performed in sequential manner |
Action |
cloneBySerialize(DecisionModuleImpl dModule)
makes hard copy of a subtree starting at action via Serializable, as decision module and agent are transient it sets those manually after acquiring hard copy |
boolean |
equals(Object aThat)
|
static Action |
exampleAction()
|
AtomicAction |
executeAtomicActions(Logger log)
executes an atomic action if there is not any -> successful execution of the action -> TERMINATED if there is one -> execute it this can be done for a long time (as the atomic actions fails or succeeds depending on the environment) it can fails by timeout as well... |
AtomicAction |
getCurrentAtomicAction()
|
Intention |
getCurrentIntention()
|
int |
hashCode()
|
boolean |
isSpontaneous()
|
void |
moveToNextAtomicAction()
move to next atomic action - just rises index |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public Intention intention
public ArrayList<Intention> intentions
public int unfullfiledIntentionsIndex
public String name
public final HashMap<AffordanceType,EItem> satisfyingItems
public ArrayList<AtomicAction> atomicActions
public int atomicActionsIndex
public int activity
public int intentionActivity
public boolean enabled
public int timeLimit
public double realTimeLimit
public int fadeout
public int start
public int duration
public int time
public int attention
public int attractivity
| Constructor Detail |
|---|
public Action()
public Action(HashSet<AffordanceType> affos)
| Method Detail |
|---|
public String toString()
toString in class Objectpublic Intention chooseIntention()
public Intention getCurrentIntention()
public boolean isSpontaneous()
public AtomicAction getCurrentAtomicAction()
public void moveToNextAtomicAction()
public AtomicAction executeAtomicActions(Logger log)
public Action cloneBySerialize(DecisionModuleImpl dModule)
agent - - link to agentdModule - - link to decision module
public boolean equals(Object aThat)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic static Action exampleAction()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||