|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectclarion.acs.wm.WM
Field Summary | |
protected int |
blaOption
BLA option: constant or recency-based. |
protected double[] |
blaParams
three parameters for BLA: c, d, iBLA. |
protected long |
currentTime
current time, used for calculating BLA. |
protected boolean[] |
flagItemOns
indicates the flag items is on or not. |
protected Global |
global
global settings. |
protected Chunk[] |
items
working memory items. |
protected int |
netIdx
net index. |
protected int[] |
offsets
start points of each item in overall input in terms of one dimension array. |
protected int |
size_WM
size of WM. |
protected double |
threshold_WM
activation threshold. |
protected short[] |
wmItemLengths
the length of each WM item. |
Constructor Summary | |
WM(Global g)
constructor. |
Method Summary | |
boolean |
actionDoNothing()
The process of 'do-nothing' action. |
boolean |
actionReset(int idx)
The process of 'reset' action. |
boolean |
actionResetAll()
The process of 'reset all' action. |
boolean |
actionSet(int idx,
Chunk chunk)
The process of 'set' action. |
boolean |
getFlagItemOn(int idx)
Returns a specific flag item is on or not. |
Chunk[] |
getItems()
Returns the working memory items. |
int |
getSize()
Returns the number of items in this working memory. |
void |
setCurrentTime(long time)
Sets current time. |
void |
updateState(double[] state)
Updates current WM state as input to WMNet. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected Global global
protected int netIdx
protected int size_WM
protected double threshold_WM
protected int blaOption
protected double[] blaParams
protected long currentTime
protected short[] wmItemLengths
protected int[] offsets
protected boolean[] flagItemOns
protected Chunk[] items
Constructor Detail |
public WM(Global g)
g
- the global setting.Method Detail |
public int getSize()
public boolean getFlagItemOn(int idx)
idx
- the index to the flag item.public Chunk[] getItems()
public void setCurrentTime(long time)
time
- the time to set.public boolean actionSet(int idx, Chunk chunk)
idx
- the index to an item.chunk
- the chunk to set.public boolean actionReset(int idx)
idx
- the index to an item.public boolean actionResetAll()
public boolean actionDoNothing()
public void updateState(double[] state)
state
- current WM state to update.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |