|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectclarion.common.GeneralNet
Field Summary | |
protected double[] |
c3s
used for variable mode. |
protected double[] |
c4s
used for variable mode. |
protected int |
chosenComp
current chosen component. |
protected short[][][] |
chosenFullAction
current chosen action, the first dim: NORMAL or NACS-CONTROL action. |
protected int |
combMode1
the mode of integrating outputs from different componnents: fixed or variable. |
protected int |
combMode2
the mode of integrating outputs from different componnents: stochastic or percentage. |
protected int |
COMP_NUM
number of knowledge types. |
protected VCGSet[][][] |
compVcgSets
arrays of VCGSet to store the active values in each dimension from each net component such as IDN, RER, IRL and FR. |
protected VCGSet[][] |
controlVcgSets
arrays of VCGSet to store the active values in each NACS-CONTROL action dimension from each net component such as IDN, RER, IRL and FR. |
protected CorrectionComb |
ctComb
correction Combination. |
protected int |
exInputNum
the unit numbers of total input, external input, goal structure input and working memory input. |
protected double[] |
exState
current states. |
protected int |
fullOutputDimNum
the numbers of dimensions of input and output. |
protected int |
fullOutputNum
the numbers of dimensions of input and output. |
protected Global |
global
gloabl settings. |
protected int |
gsInputNum
the unit numbers of total input, external input, goal structure input and working memory input. |
protected double[] |
gsState
current states. |
protected int |
inputNum
the unit numbers of total input, external input, goal structure input and working memory input. |
protected boolean[] |
netCompFlags
flags to indicate knowledge type is used or not. |
protected GeneralNetComp[] |
netComps
the knowledge components composing this network. |
protected int |
netIdx
the network indice in ACS or MCS. |
protected VCGSet[][] |
normalVcgSets
arrays of VCGSet to store the active values in each NORMAL action dimension from each net component such as IDN, RER, IRL and FR. |
protected double[][][] |
outputActivations
the action strengths supported from all of the components. |
protected double |
reinforcement
current reinforcement. |
protected Feature[] |
sensoryInput
current sensory input. |
protected double[] |
state
current states. |
protected StochasticComb |
stochComb
Stochastic Combination. |
protected int |
subsysType
subsystem: ACS or MCS. |
protected double[] |
succRates
success rate of each component, for variable mode. |
protected TaskClarion |
taskClarion
the user-defined CLARION settings. |
protected int |
wmInputNum
the unit numbers of total input, external input, goal structure input and working memory input. |
protected double[] |
wmState
current states. |
protected WeightSumComb |
wsComb
Weight Sum Combination. |
Constructor Summary | |
GeneralNet(int subsysType)
|
Method Summary | |
protected void |
correctionCombine()
the correction combination method should be overrided by user's code. |
void |
decideAction(int compIdx)
Decides action by specific knowledge type. |
protected void |
deliverAction()
deliver currently chosen action to each component. |
void |
fillInVcgSets(int fillType)
fill in the VCGSets for action decision making. |
void |
formState()
compose current state given external, GS and WM states. |
short[][][] |
getChosenFullAction()
returns the chosen action. |
void |
getExState(double[] arr)
returns the external state. |
java.lang.String[] |
getFixRules()
returns the Fixed rule set in this network in terms of its representation. |
void |
getGsState(double[] arr)
returns the goal structure state. |
java.lang.String[] |
getIrlRules()
returns the IRL rule set in this network in terms of its representation. |
double |
getNM(int idx)
returns the number of negative match. |
double |
getPM(int idx)
returns the number of positive match. |
java.lang.String[] |
getRerRules()
returns the RER rule set in this network in terms of its representation. |
int |
getRT()
returns the response time in case of no NACS RT involved. |
int |
getRT(int nacsRT)
returns the response time in case of NACS RT involved. |
void |
getWmState(double[] arr)
returns the working memory state. |
void |
reasoning()
reasoning for determining an action to perform given current input. |
void |
setCurDesiredOutput(Feature[] desiredOutput)
set current desired output. |
void |
setCurrentTime(long curTime)
set current time. |
void |
setGsState(double[] arr)
set current goal structure state. |
void |
setReinforcement(double reward)
set reinforcement. |
void |
setSensoryInput(Feature[] sensoryInput)
set current sensory input. |
void |
setStates(Chunk chunk)
divide the chunk into EX, GS and WM states if exists. |
void |
setWmState(double[] arr)
set current working memory state. |
protected void |
stochCombine()
stochastic combination method. |
void |
update(double reward)
update the network, needs overriding. |
protected void |
weightSumCombine()
weight sum combination method. |
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 subsysType
protected int netIdx
protected int COMP_NUM
protected int chosenComp
protected short[][][] chosenFullAction
protected int fullOutputDimNum
protected int fullOutputNum
protected int inputNum
protected int exInputNum
protected int gsInputNum
protected int wmInputNum
protected double[] state
protected double[] exState
protected double[] gsState
protected double[] wmState
protected Feature[] sensoryInput
protected boolean[] netCompFlags
protected GeneralNetComp[] netComps
protected double[][][] outputActivations
protected VCGSet[][][] compVcgSets
protected VCGSet[][] normalVcgSets
protected VCGSet[][] controlVcgSets
protected double reinforcement
protected int combMode1
protected int combMode2
protected double[] succRates
protected double[] c3s
protected double[] c4s
protected StochasticComb stochComb
protected WeightSumComb wsComb
protected CorrectionComb ctComb
Constructor Detail |
public GeneralNet(int subsysType)
Method Detail |
public void getExState(double[] arr)
arr
- the array to store the external state.public void getGsState(double[] arr)
arr
- the array to store the goal structure state.public void getWmState(double[] arr)
arr
- the array to store the working memory state.public java.lang.String[] getRerRules()
public java.lang.String[] getIrlRules()
public java.lang.String[] getFixRules()
public short[][][] getChosenFullAction()
public double getPM(int idx)
public double getNM(int idx)
public int getRT()
public int getRT(int nacsRT)
public void setStates(Chunk chunk)
chunk
- the chunk to decompose.public void setSensoryInput(Feature[] sensoryInput)
sensoryInput
- the senory input to set.public void setGsState(double[] arr)
arr
- the goal structure state to set.public void setWmState(double[] arr)
arr
- the working memory state to set.public void setCurDesiredOutput(Feature[] desiredOutput)
desiredOutput
- the desired output to set.public void setCurrentTime(long curTime)
curTime
- the time to set.public void setReinforcement(double reward)
public void formState()
public void decideAction(int compIdx)
compIdx
- the specific knowledge type.public void reasoning()
public void update(double reward)
public void fillInVcgSets(int fillType)
protected void deliverAction()
protected void stochCombine()
protected void weightSumCombine()
protected void correctionCombine()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |