|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectclarion.acs.ACS
Field Summary | |
protected int |
actionTypeNum
# of different acitons: GS, WM, orvaried EX. |
protected int |
activeNetNum
the number of active networks. |
protected short[][] |
activeNetworks
the active networks. |
protected boolean |
aemOn
AEM is on or not. |
protected double |
aemTrainAcsProb
the probability of using AEM to train the ACS. |
protected short[][][][] |
chosenActions
current chosen actions from each active network. |
protected int |
chosenType
knowledge types: BL, RER, IRL, FR. |
protected int |
corExtMode
coordinating multiple external action net. |
protected Feature[][] |
desiredOutput
desired outputs. |
protected EligibilityCheck |
eligCheck
eligibility check of the external networks. |
protected short[][][][] |
eligCondions
eligible conditions of the external networks. |
protected boolean |
emOn
EM is on or not. |
protected double |
emTrainAcsProb
the probability of using EM to train the ACS. |
protected int |
exNetIdx
index to external network, WM network or goal structure network. |
protected int |
exNetNum
the number of external networks. |
protected Global |
global
global settings. |
protected int |
gsNetIdx
index to external network, WM network or goal structure network. |
protected int |
gsOption
goal structure option. |
protected int |
netNum
the number of networks. |
protected AcsNet[] |
nets
the ACS networks. |
protected double[][] |
netStates
current states of each network. |
protected GKSChunk[] |
retrievalResults
retrieval results from NACS. |
protected Feature[] |
sensoryInput
current sensory input. |
protected TaskClarion |
taskClarion
task-specific clarion settings. |
protected int |
wmNetIdx
index to external network, WM network or goal structure network. |
protected boolean |
wmOnFlag
WM is on or not. |
Constructor Summary | |
ACS(Global g)
construcutor. |
Method Summary | |
Chunk[][][] |
getAllConclusions()
Returns the conclusions from all of the active networks in terms of chunks. |
short[][][][] |
getChosenActions()
Returns the chosen actions by all networks. |
java.lang.String[] |
getFixRules(int netIdx)
Returns the FR rules of the specific network in terms of strings. |
int |
getGsLength()
Returns the length of goal input. |
java.lang.String[] |
getIrlRules(int netIdx)
Returns the IRL rules of the specific network in terms of strings. |
java.lang.String[] |
getRerRules(int netIdx)
Returns the RER rules of the specific network in terms of strings. |
int |
getRT()
Returns the response time without NACS involved. |
int |
getRT(int nacsRT)
Returns the response time with NACS involved. |
int |
getSensoryLength()
Returns the length of sensory input. |
int |
getWmLength()
Returns the length of WM input. |
boolean |
isEligibleExNet(int netIdx)
|
void |
observeState(Feature[] sInput)
observe new sensory input, new GS and WM states if exists and deliver them to each active network and form new state including the three types of inputs if exists. |
void |
performGsAction()
Performs GS action. |
void |
performWmAction()
Performs WM action. |
void |
reasoning()
Reasoning process in ACS. |
void |
setCurDesiredOutput(Feature[][] output)
Sets the desired output. |
void |
setCurrentTime(long curTime)
Sets the current time. |
void |
setRetrievalResult(GKSChunk[] result)
Sets the retrieval results. |
void |
setSensoryInput(Feature[] input)
Sets the sensory input. |
void |
update(Feature[] sInput,
double[] reinforcements)
Updates each active network. |
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 short[][][][] eligCondions
protected EligibilityCheck eligCheck
protected boolean emOn
protected double emTrainAcsProb
protected boolean aemOn
protected double aemTrainAcsProb
protected Feature[] sensoryInput
protected Feature[][] desiredOutput
protected int netNum
protected int exNetNum
protected int activeNetNum
protected int exNetIdx
protected int wmNetIdx
protected int gsNetIdx
protected int gsOption
protected boolean wmOnFlag
protected short[][] activeNetworks
protected AcsNet[] nets
protected double[][] netStates
protected int corExtMode
protected int actionTypeNum
protected int chosenType
protected short[][][][] chosenActions
protected GKSChunk[] retrievalResults
Constructor Detail |
public ACS(Global g)
g
- the global setting.Method Detail |
public boolean isEligibleExNet(int netIdx)
public int getSensoryLength()
public int getGsLength()
public int getWmLength()
public java.lang.String[] getRerRules(int netIdx)
netIdx
- the index to the specific network.
public java.lang.String[] getIrlRules(int netIdx)
netIdx
- the index to the specific network.
public java.lang.String[] getFixRules(int netIdx)
netIdx
- the index to the specific network.
public short[][][][] getChosenActions()
public Chunk[][][] getAllConclusions()
public int getRT()
public int getRT(int nacsRT)
nacsRT
- the response time from NACS.
public void setSensoryInput(Feature[] input)
input
- the sensory input to set.public void setCurDesiredOutput(Feature[][] output)
output
- the desired output to set.public void setRetrievalResult(GKSChunk[] result)
result
- the result to set.public void setCurrentTime(long curTime)
curTime
- current time.public void observeState(Feature[] sInput)
sInput
- the sensory input.public void reasoning()
public void performWmAction()
public void performGsAction()
public void update(Feature[] sInput, double[] reinforcements)
sInput
- new sensory input by performing the chosen external action.reinforcements
- the reinforcements received at this step.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |