clarion.system
Class Clarion

java.lang.Object
  extended byclarion.system.Clarion

public class Clarion
extends java.lang.Object


Field Summary
protected  ACS acs
          action-centered subsystem.
protected  int actionTypeNum
          action type num including EX, GS and WM.
protected  TaskAgent agent
          The task agent this Clarion Object is associated with.
protected  short[][][][] chosenActions
          the selected actions from ACS.
protected  ExGScoordinator coordinator
          coordinator for coordinating the External action and Goal Structure action.
protected  Feature[][] desiredOutput
          desired output depending specific tasks.
protected  Drives drives
          drives described in CLARION, used in MS/MCS subsystem.
protected  Global global
          The global settings this Clarion Object is associated with.
protected  MCS mcs
          Meta Cognition Subsystem.
protected  MS ms
          Motivational Subsystem.
protected  NACS nacs
          non-action-centered subsystem.
protected  Feature[] nacsInput
          input to NACS.
protected  double[] reinforcements
          reinforcement for each ACS network.
protected  java.lang.Object[] retrievalResults
          retrieval results from GKS.
protected  Feature[] sensoryInput
          sensory input to ACS.
protected  TaskClarion taskClarion
          The task-specific clarion settings the associated task agent has.
 
Constructor Summary
Clarion(Global g, TaskAgent taskAgent)
          Class constructor for specifying the associated global settings and task agent
 
Method Summary
 ACS getACS()
          Returns the ACS part in this Clarion object.
 java.lang.String[] getFixRules(int netIdx)
          Returns the FR Rules generated in the specified network in ACS.
 java.lang.String[] getIrlRules(int netIdx)
          Returns the IRL rules generated in the specified network in ACS.
 NACS getNACS()
          Returns the NACS part in this Clarion object.
 java.lang.String[] getRerRules(int netIdx)
          Returns the RER rules in the foramt of string array generated in the specified network in ACS.
 java.lang.Object[] getRetrievalResults()
          Returns the retrieval results from NACS at current step.
 int getRT()
          Returns the response time at current step.
 Feature[] getSensoryInput()
          Returns current sensory input.
 void performActions()
          Let all of the ACS networks perform their selected actions including the EX,GS,WM networks if exist.
 void setCurrentTime(long curTime)
          Set current time used for calculating the response time
 void setNacsConditionDimInfo(short[][] conditionInfo)
           
 java.lang.String testAem(int acsNetIdx)
           
 void testing()
          Test the learning results of the learning agents after the learning process.
 void training()
          Implement the process of learning described in CLARION.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

agent

protected TaskAgent agent
The task agent this Clarion Object is associated with.


global

protected Global global
The global settings this Clarion Object is associated with.


taskClarion

protected TaskClarion taskClarion
The task-specific clarion settings the associated task agent has.


acs

protected ACS acs
action-centered subsystem.


nacs

protected NACS nacs
non-action-centered subsystem.


mcs

protected MCS mcs
Meta Cognition Subsystem.


ms

protected MS ms
Motivational Subsystem.


drives

protected Drives drives
drives described in CLARION, used in MS/MCS subsystem.


coordinator

protected ExGScoordinator coordinator
coordinator for coordinating the External action and Goal Structure action.


actionTypeNum

protected int actionTypeNum
action type num including EX, GS and WM.


sensoryInput

protected Feature[] sensoryInput
sensory input to ACS.


nacsInput

protected Feature[] nacsInput
input to NACS.


desiredOutput

protected Feature[][] desiredOutput
desired output depending specific tasks.


chosenActions

protected short[][][][] chosenActions
the selected actions from ACS.


reinforcements

protected double[] reinforcements
reinforcement for each ACS network.


retrievalResults

protected java.lang.Object[] retrievalResults
retrieval results from GKS.

Constructor Detail

Clarion

public Clarion(Global g,
               TaskAgent taskAgent)
Class constructor for specifying the associated global settings and task agent

Method Detail

getACS

public ACS getACS()
Returns the ACS part in this Clarion object.


getNACS

public NACS getNACS()
Returns the NACS part in this Clarion object.


getSensoryInput

public Feature[] getSensoryInput()
Returns current sensory input.


getRerRules

public java.lang.String[] getRerRules(int netIdx)
Returns the RER rules in the foramt of string array generated in the specified network in ACS.

Parameters:
netIdx - the specified network in ACS.
Returns:
the RER rules in the foramt of string array generated in the specified network in ACS.

getIrlRules

public java.lang.String[] getIrlRules(int netIdx)
Returns the IRL rules generated in the specified network in ACS.

Parameters:
netIdx - the specified network in ACS.
Returns:
the IRL rules generated in the specified network in ACS in the foramt of string array.

getFixRules

public java.lang.String[] getFixRules(int netIdx)
Returns the FR Rules generated in the specified network in ACS.

Parameters:
netIdx - the specified network in ACS.
Returns:
the FR rules generated in the specified network in ACS in the foramt of string array.

getRT

public int getRT()
Returns the response time at current step.


getRetrievalResults

public java.lang.Object[] getRetrievalResults()
Returns the retrieval results from NACS at current step.


setCurrentTime

public void setCurrentTime(long curTime)
Set current time used for calculating the response time


setNacsConditionDimInfo

public void setNacsConditionDimInfo(short[][] conditionInfo)

training

public void training()
Implement the process of learning described in CLARION.


testing

public void testing()
Test the learning results of the learning agents after the learning process.


testAem

public java.lang.String testAem(int acsNetIdx)

performActions

public void performActions()
Let all of the ACS networks perform their selected actions including the EX,GS,WM networks if exist.