tasksimulators.newsimu.XOR
Class TaskClarionXOR

java.lang.Object
  extended byclarion.system.TaskClarion
      extended bytasksimulators.newsimu.XOR.TaskClarionXOR

public class TaskClarionXOR
extends TaskClarion


Field Summary
 
Fields inherited from class clarion.system.TaskClarion
ACS, ACS_CL, ACS_GAUGE, ACS_IN_DIM, ACS_IN_VAL, ACS_LEARN, ACS_OUT_DIM, ACS_OUT_VAL, ACS_PARAM, ACS_PERFORM, ACS_REASON, ACS_SAMPLE_NUM, AMN_PASS, ASSOC_APP, ASSOC_WGT_C, ASSOC_WGT_R, AT_TL, BL_RT, BUR, CHUNK_RETR, DATA_TYPE, DRIVE, DRV_REP, DT_TL, ELIG, EX_CHUNK, EX_RULE, FR_ACT, FR_CON, FR_UTL, FR_WGT_C, FR_WGT_R, global, GOAL, GOAL_DIM, GOAL_SETTING, IRL_IG, IRL_PARAM, IRL_POS, IRL_UTL, IRL_WGT_C, IRL_WGT_R, MCS, MCS_SAMPLE_NUM, NACS, NACS_GAUGE, NACS_IN_DIM, NACS_IN_VAL, NACS_LEARN, NACS_OUT_DIM, NACS_OUT_VAL, NACS_PARAM, NACS_PERFORM, NACS_REASON, NACS_SAMPLE_NUM, OVER_RT, PT_TL, REIN, REIN_FUNC, RER_IG, RER_POS, RER_UTL, RER_WGT_C, RER_WGT_R, RT, RT_SAMPLE_NUM, SIM, SUB_SYS_NUM, TDG, TL_RT
 
Constructor Summary
TaskClarionXOR()
           
 
Method Summary
 short[][][] getEligibility(int netIdx)
          Returns the eligible conditions of the specified network.
 double getReinforcement(int netIdx, Feature[] input, Chunk[] wmChunks, GoalChunk goal, short[][][] action, Feature[] newInput, Chunk[] newWMChunks, GoalChunk newGoal)
          Returns the reinforcement awarded the agent, based on the previous inputs to the agent, and on the agent's subsequent decision.
 
Methods inherited from class clarion.system.TaskClarion
combineByBottomUpRectification, combineByTopDownGuidance, decideFrAction, getAamDataPattern, getAmnPassTime, getAssocAppTime, getAssocDimWeights, getAssocWeights, getAT_TL, getBLOverallRT, getChunkRetrTime, getDT_TL, getExplanation, getExternalNacsChunks, getExternalNacsRules, getFrAction, getFrCondition, getFrPositivity, getFrUtility, getFrWeights, getGoalDimDVs, getGoals, getIrlIG, getIrlPositivity, getIrlRule, getIrlUtility, getIrlWeights, getNacsResults, getOverallRT, getPT_TL, getRerIG, getRerPositivity, getRerUtility, getRerWeights, getSample, getSimilarity, getTLOverallRT, performEncodeExternalKnowledge, performNacsAssimilation, setGlobal
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TaskClarionXOR

public TaskClarionXOR()
Method Detail

getEligibility

public short[][][] getEligibility(int netIdx)
Description copied from class: TaskClarion
Returns the eligible conditions of the specified network. The return value is in the format of 3-dimensional array. The first dimension indexes an eligible condition, the second dimension indexes an involved input dimension and the third dimnesion indexes a value in the involved dimension. Note: the first element of the second dimension stores all of the involved input dimensions.

Overrides:
getEligibility in class TaskClarion
Parameters:
netIdx - the ACS network NO.
Returns:
the eligible condition of the specified network.

getReinforcement

public double getReinforcement(int netIdx,
                               Feature[] input,
                               Chunk[] wmChunks,
                               GoalChunk goal,
                               short[][][] action,
                               Feature[] newInput,
                               Chunk[] newWMChunks,
                               GoalChunk newGoal)
Returns the reinforcement awarded the agent, based on the previous inputs to the agent, and on the agent's subsequent decision.

Overrides:
getReinforcement in class TaskClarion
Parameters:
netIdx - the network NO.
input - current input,
action - current action.
newInput - new input resulting from firing the action.
Returns:
the reinforcement of the specified ACS network.