clarion.system
Class TaskAgent

java.lang.Object
  extended byclarion.system.TaskAgent
Direct Known Subclasses:
AgentAGL, AgentPC, AgentXOR

public abstract class TaskAgent
extends java.lang.Object


Field Summary
protected  int activeAmnIdx
          the active AMN network.
protected  Clarion clarion
          the embedded clarion model.
protected  Feature[] curNacsInput
           
protected  Feature[] curSensoryInput
           
protected  Feature[][] desiredOutput
          the desired output.
protected  Global global
          the global settings associated with this running agent.
protected  boolean learningTestOn
           
protected  Feature[] nacsResults
          the retrieval results from NACS.
protected  double[] reinforcements
          the reinforcements.
protected  TaskClarion taskClarion
          the task-specfic option settings in CLARION model
 
Constructor Summary
TaskAgent()
           
TaskAgent(Global g)
          class constructor with associated Global object.
 
Method Summary
abstract  int determineAmnNet(int netIdx, short[][][] action)
          Determines which AMN will be used given current action.
 int getActiveAmnIdx()
          Returns the index on the active AMN network.
 Feature[][] getCurDesiredOutput()
          Returns current desired output.
 Feature[] getCurNacsInput()
          Returns current input to NACS.
 Feature[] getCurSensoryInput()
          Returns current sensory input.
 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.
abstract  void getOutput(java.lang.Object arr)
          Returns the output of current step.
 java.lang.String[] getRerRules(int netIdx)
          Returns the RER rules in the foramt of string array generated in the specified network in ACS.
 boolean isInLearningTest()
           
 void performAction(int netIdx, short[][][] action)
          perform the chosen action.
 void reinit()
          reinitialization routine.
abstract  void run()
          simulate a subject performance by step.
 void saveOutput(java.lang.String results)
          save the current into the specified data file.
 void setLearningTest(boolean flag)
           
abstract  void setRetrievalResults(int netIdx, GKSChunk[] results)
          send the retrieval results from NACS to ACS components.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

global

protected Global global
the global settings associated with this running agent.


clarion

protected Clarion clarion
the embedded clarion model.


taskClarion

protected TaskClarion taskClarion
the task-specfic option settings in CLARION model


curSensoryInput

protected Feature[] curSensoryInput

curNacsInput

protected Feature[] curNacsInput

nacsResults

protected Feature[] nacsResults
the retrieval results from NACS.


desiredOutput

protected Feature[][] desiredOutput
the desired output.


reinforcements

protected double[] reinforcements
the reinforcements.


activeAmnIdx

protected int activeAmnIdx
the active AMN network.


learningTestOn

protected boolean learningTestOn
Constructor Detail

TaskAgent

public TaskAgent()

TaskAgent

public TaskAgent(Global g)
class constructor with associated Global object.

Method Detail

reinit

public void reinit()
reinitialization routine.


isInLearningTest

public boolean isInLearningTest()

getActiveAmnIdx

public int getActiveAmnIdx()
Returns the index on the active AMN network.

Returns:
the index on the active AMN network.

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.

getCurSensoryInput

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


getCurNacsInput

public Feature[] getCurNacsInput()
Returns current input to NACS.


getCurDesiredOutput

public Feature[][] getCurDesiredOutput()
Returns current desired output.


setLearningTest

public void setLearningTest(boolean flag)

saveOutput

public void saveOutput(java.lang.String results)
save the current into the specified data file.


performAction

public void performAction(int netIdx,
                          short[][][] action)
perform the chosen action.

Parameters:
netIdx - the ACS network index.
action - the selected actions by ACS networks.

getOutput

public abstract void getOutput(java.lang.Object arr)
Returns the output of current step.

Parameters:
arr - the array to be filled in with current output.

determineAmnNet

public abstract int determineAmnNet(int netIdx,
                                    short[][][] action)
Determines which AMN will be used given current action.

Parameters:
netIdx - the ACS network index.
action - the selected actions by ACS networks.
Returns:
the AMN network index.

setRetrievalResults

public abstract void setRetrievalResults(int netIdx,
                                         GKSChunk[] results)
send the retrieval results from NACS to ACS components.

Parameters:
netIdx - the ACS network index.
results - retrieval results from NACS

run

public abstract void run()
simulate a subject performance by step.