clarion.acs.net
Class AcsNet

java.lang.Object
  extended byclarion.common.GeneralNet
      extended byclarion.acs.net.AcsNet
Direct Known Subclasses:
EXNet, GSNet, WMNet

public class AcsNet
extends GeneralNet


Field Summary
protected  int controlOutputDimNum
          the # of NACS-control output dims.
protected  short[] fullControlOutputDVs
          the dim-val info of NACS-control outputs.
protected  int fullControlOutputNum
          the # of NACS-control output.
protected  short[] fullOutputDVs
          D-V info of bottom (IDN) outputs.
protected  int netType
          network type : EX, GS or WM.
 
Fields inherited from class clarion.common.GeneralNet
c3s, c4s, chosenComp, chosenFullAction, combMode1, combMode2, COMP_NUM, compVcgSets, controlVcgSets, ctComb, exInputNum, exState, fullOutputDimNum, fullOutputNum, global, gsInputNum, gsState, inputNum, netCompFlags, netComps, netIdx, normalVcgSets, outputActivations, reinforcement, sensoryInput, state, stochComb, subsysType, succRates, taskClarion, wmInputNum, wmState, wsComb
 
Constructor Summary
AcsNet(int netIdx, Global global)
          constructor.
 
Method Summary
 void formState()
          Forms current state including EX, GS, WM if exists.
 Chunk[][] getAllConclusions()
          Returns all conclusions by each knowledge type in terms of chunks.
 boolean isChosenActionEmpty()
           
 void offlineTrainByAem()
          offline train this network by AEM.
 void offlineTrainByEm()
          offline train this network by EM.
 void perform()
          Perform action.
 void update(double reward)
          Updates each component with the reinforcement at this step.
protected  void weightSumCombine()
          weight sum combination method override the super method.
 
Methods inherited from class clarion.common.GeneralNet
correctionCombine, decideAction, deliverAction, fillInVcgSets, getChosenFullAction, getExState, getFixRules, getGsState, getIrlRules, getNM, getPM, getRerRules, getRT, getRT, getWmState, reasoning, setCurDesiredOutput, setCurrentTime, setGsState, setReinforcement, setSensoryInput, setStates, setWmState, stochCombine
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

netType

protected int netType
network type : EX, GS or WM.


fullControlOutputNum

protected int fullControlOutputNum
the # of NACS-control output.


controlOutputDimNum

protected int controlOutputDimNum
the # of NACS-control output dims.


fullControlOutputDVs

protected short[] fullControlOutputDVs
the dim-val info of NACS-control outputs.


fullOutputDVs

protected short[] fullOutputDVs
D-V info of bottom (IDN) outputs.

Constructor Detail

AcsNet

public AcsNet(int netIdx,
              Global global)
constructor.

Parameters:
netIdx - the network index.
Method Detail

isChosenActionEmpty

public boolean isChosenActionEmpty()

getAllConclusions

public Chunk[][] getAllConclusions()
Returns all conclusions by each knowledge type in terms of chunks.

Returns:
all conclusions by each knowledge type.

perform

public void perform()
Perform action. need be overrided by GS, WM net.


update

public void update(double reward)
Updates each component with the reinforcement at this step.

Overrides:
update in class GeneralNet
Parameters:
reward - the reinforcement received at this step.

weightSumCombine

protected void weightSumCombine()
weight sum combination method override the super method.

Overrides:
weightSumCombine in class GeneralNet

formState

public void formState()
Forms current state including EX, GS, WM if exists.

Overrides:
formState in class GeneralNet

offlineTrainByEm

public void offlineTrainByEm()
offline train this network by EM.


offlineTrainByAem

public void offlineTrainByAem()
offline train this network by AEM.