tasksimulators.newsimu.PC
Class AgentPC

java.lang.Object
  extended byclarion.system.TaskAgent
      extended bytasksimulators.newsimu.PC.AgentPC

public class AgentPC
extends TaskAgent


Field Summary
 
Fields inherited from class clarion.system.TaskAgent
activeAmnIdx, clarion, curNacsInput, curSensoryInput, desiredOutput, global, learningTestOn, nacsResults, reinforcements, taskClarion
 
Constructor Summary
AgentPC()
           
AgentPC(Global g)
           
 
Method Summary
 int determineAmnNet(int netIdx, short[][][] action)
          Determines which AMN will be used given current action.
 java.lang.String getAemTestString()
           
 java.lang.String getCurSensoryInputLabel()
           
 int getCurSensoryInputType()
           
 void getLearningTestData(int[][] arr)
           
 void getOutput(java.lang.Object arr)
          Get the output and populate the Object.
 boolean isControlNacsAction(int netIdx, short[] chosenAction)
          return if the specified action is NACS control action.
 void performAction(int netIdx, short[][][] action)
          perform the selected action from a particular ACS network.
 void reinit()
          reinitialize the variables.
 void run()
          Implements the overall process of a subject during the task experiment.
 void setPreTrainFlag(boolean flag)
           
 void setRetrievalResults(int netIdx, GKSChunk[] results)
          send the retrieval results from NACS to ACS components.
 
Methods inherited from class clarion.system.TaskAgent
getActiveAmnIdx, getCurDesiredOutput, getCurNacsInput, getCurSensoryInput, getFixRules, getIrlRules, getRerRules, isInLearningTest, saveOutput, setLearningTest
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AgentPC

public AgentPC()

AgentPC

public AgentPC(Global g)
Method Detail

reinit

public void reinit()
reinitialize the variables.

Overrides:
reinit in class TaskAgent

isControlNacsAction

public boolean isControlNacsAction(int netIdx,
                                   short[] chosenAction)
return if the specified action is NACS control action.


getOutput

public void getOutput(java.lang.Object arr)
Get the output and populate the Object.

Specified by:
getOutput in class TaskAgent
Parameters:
arr - the array to be filled in with current output.

getLearningTestData

public void getLearningTestData(int[][] arr)

getAemTestString

public java.lang.String getAemTestString()

getCurSensoryInputType

public int getCurSensoryInputType()

getCurSensoryInputLabel

public java.lang.String getCurSensoryInputLabel()

setRetrievalResults

public void setRetrievalResults(int netIdx,
                                GKSChunk[] results)
Description copied from class: TaskAgent
send the retrieval results from NACS to ACS components.

Specified by:
setRetrievalResults in class TaskAgent
Parameters:
netIdx - the ACS network index.
results - retrieval results from NACS

setPreTrainFlag

public void setPreTrainFlag(boolean flag)

determineAmnNet

public int determineAmnNet(int netIdx,
                           short[][][] action)
Description copied from class: TaskAgent
Determines which AMN will be used given current action.

Specified by:
determineAmnNet in class TaskAgent
Parameters:
netIdx - the ACS network index.
action - the selected actions by ACS networks.
Returns:
the AMN network index.

run

public void run()
Implements the overall process of a subject during the task experiment. It is assumed to be called by the TaskPC class to implement what a subject have done during the experiment.

Specified by:
run in class TaskAgent

performAction

public void performAction(int netIdx,
                          short[][][] action)
perform the selected action from a particular ACS network.

Overrides:
performAction in class TaskAgent
Parameters:
netIdx - the ACS network index
action - the selected action from the specified ACS network.