|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectclarion.acs.gs.GoalStack
Field Summary | |
protected int |
curActiveGoalIdx
current active goal index. |
protected StochasticDecider |
decider
used for selecting active goal. |
protected Global |
global
global settings. |
protected GoalChunk[] |
goalItems
the goal items. |
protected short[][] |
goalReps
representations of all of the possible goals. |
protected int |
gsActionMadeMode
GS action by top level only or by both. |
protected short[] |
gsParamDVs
d-v info of parameter dimensions. |
protected int |
netIdx
net index. |
protected double |
P_EXT
coordination of external vs goal actions. |
protected double |
P_GS
coordination of external vs goal actions. |
protected int |
size_gc
size of goal chunk, actually the # of parameter dims. |
protected int |
size_gs
size of goal structure. |
protected java.util.Stack |
stack
stack for goals. |
protected TaskClarion |
taskClarion
task-specific clarion settings. |
Constructor Summary | |
GoalStack(Global g)
constructor. |
Method Summary | |
boolean |
actionNoGoal()
routine of no-goal-action. |
boolean |
actionReset(int idx)
'reset' action. |
boolean |
actionSet(int idx)
'set' action. |
int |
getActiveGoal()
Returns the currently active goal in terms of goal index. |
GoalChunk |
getActiveItem()
Returns the currently active goal item in terms of a chunk. |
int |
getSize()
Returns the number of goals in this goal stack. |
void |
goalFinished(boolean popFlag)
routine when a goal is completed, no automatic goal pop. |
boolean |
isEmpty()
Returns if this goal stack is empty or not. |
void |
updateState(double[] state)
Updates current goal state as input to GSNet. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected Global global
protected TaskClarion taskClarion
protected int netIdx
protected int curActiveGoalIdx
protected short[][] goalReps
protected short[] gsParamDVs
protected int size_gc
protected int size_gs
protected int gsActionMadeMode
protected double P_GS
protected double P_EXT
protected GoalChunk[] goalItems
protected java.util.Stack stack
protected StochasticDecider decider
Constructor Detail |
public GoalStack(Global g)
g
- the global settings.Method Detail |
public boolean isEmpty()
isEmpty
in interface GoalStructure
public int getSize()
getSize
in interface GoalStructure
public int getActiveGoal()
getActiveGoal
in interface GoalStructure
public GoalChunk getActiveItem()
getActiveItem
in interface GoalStructure
public boolean actionSet(int idx)
actionSet
in interface GoalStructure
idx
- the index of a goal.public boolean actionReset(int idx)
actionReset
in interface GoalStructure
idx
- the index of a goal.public boolean actionNoGoal()
actionNoGoal
in interface GoalStructure
public void goalFinished(boolean popFlag)
goalFinished
in interface GoalStructure
popFlag
- indicate a pop action is done or not.public void updateState(double[] state)
updateState
in interface GoalStructure
state
- current state to update.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |