|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectclarion.acs.gs.GoalList
Field Summary | |
protected int |
curActiveGoalIdx
current active goal index. |
protected long |
currentTime
current time for calculating BLA. |
protected StochasticDecider |
decider
used for selecting active goal. |
protected Global |
global
global settings. |
protected GoalChunk[] |
goalItems
recording current existing goals. |
protected short[][] |
goalReps
all of the possible goals. |
protected int |
gsActionMadeMode
GS action by top level only or by both. |
protected double |
gsBla
BLA of GS. |
protected int |
gsBlaOption
BLA option: constant or recency-based. |
protected double[] |
gsBlaParams
parameters of recency-based BLA. |
protected short[] |
gsParamDVs
each parameter dimension of a goal. |
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. |
protected int |
size_gs
size of goal structure. |
protected TaskClarion |
taskClarion
task-specific clarion settings. |
protected double |
threshold_GS
goal threshold. |
Constructor Summary | |
GoalList(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. |
double |
getThreshlod()
Returns the goal threshold. |
boolean |
goalCompete()
The process of goal competition to be active. |
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 |
setCurrentTime(long time)
Sets current time. |
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 threshold_GS
protected int gsBlaOption
protected double gsBla
protected double[] gsBlaParams
protected long currentTime
protected double P_GS
protected double P_EXT
protected GoalChunk[] goalItems
protected StochasticDecider decider
Constructor Detail |
public GoalList(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 double getThreshlod()
public void setCurrentTime(long time)
time
- the time to set.public boolean actionSet(int idx)
actionSet
in interface GoalStructure
idx
- goal idx.public boolean actionReset(int idx)
actionReset
in interface GoalStructure
idx
- goal idx.public boolean actionNoGoal()
actionNoGoal
in interface GoalStructure
public boolean goalCompete()
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 |