|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectclarion.system.TaskAgent
tasksimulators.newsimu.XOR.AgentXOR
Field Summary |
Fields inherited from class clarion.system.TaskAgent |
activeAmnIdx, clarion, curNacsInput, curSensoryInput, desiredOutput, global, learningTestOn, nacsResults, reinforcements, taskClarion |
Constructor Summary | |
AgentXOR()
|
|
AgentXOR(Global g)
|
Method Summary | |
int |
determineAmnNet(int netIdx,
short[][][] action)
Determines which AMN will be used given current action. |
void |
getOutput(java.lang.Object arr)
Returns the output of current step. |
boolean |
isControlNacsAction(int netIdx,
short[] chosenAction)
|
void |
performAction(int netIdx,
short[][][] action)
This determines the action to be performed at each step. |
void |
run()
simulates one step in the agent's behavior for this experiment. |
void |
setRetrievalResults(int netIdx,
GKSChunk[] results)
send the retrieval results from NACS to ACS components. |
void |
setSensoryInput(short[] inputs)
|
Methods inherited from class clarion.system.TaskAgent |
getActiveAmnIdx, getCurDesiredOutput, getCurNacsInput, getCurSensoryInput, getFixRules, getIrlRules, getRerRules, isInLearningTest, reinit, saveOutput, setLearningTest |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public AgentXOR()
public AgentXOR(Global g)
Method Detail |
public void setSensoryInput(short[] inputs)
public boolean isControlNacsAction(int netIdx, short[] chosenAction)
public void getOutput(java.lang.Object arr)
TaskAgent
getOutput
in class TaskAgent
arr
- the array to be filled in with current output.public int determineAmnNet(int netIdx, short[][][] action)
TaskAgent
determineAmnNet
in class TaskAgent
netIdx
- the ACS network index.action
- the selected actions by ACS networks.
public void setRetrievalResults(int netIdx, GKSChunk[] results)
TaskAgent
setRetrievalResults
in class TaskAgent
netIdx
- the ACS network index.results
- retrieval results from NACSpublic void performAction(int netIdx, short[][][] action)
performAction
in class TaskAgent
netIdx
- the ACS network indexaction
- the selected action from the specified ACS network.public void run()
run
in class TaskAgent
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |