simuLCS
Class TemplateRSP

java.lang.Object
  extended bysimuLCS.Template
      extended bysimuLCS.TemplateRSP
Direct Known Subclasses:
TemplateRSPSimple, TemplateRSPVerySimple

public class TemplateRSP
extends Template

This Template is used to describe R. Vaughan's model of a duck as a set of rules (Experiment 1).

Author:
Benoit

Field Summary
protected  int MIN_NB_ACTIONS_TO_AVOID_COVERING
           
protected  int MIN_SCALE
           
protected  int STEP_SCALE
           
 
Fields inherited from class simuLCS.Template
actions, conditions, name, NB_BITS_ACTION, NB_BITS_CONDITION, nbPartsAction, nbPartsCondition
 
Constructor Summary
TemplateRSP()
           
 
Method Summary
 int getMIN_NB_ACTIONS_TO_AVOID_COVERING()
           
 int getMIN_SCALE()
           
 int getMinNbActions()
          Specifies the minimal number of actions that must be present in a match set or else covering will occur.
 int getNbPossibleActions()
          Since the Action is given as a string of N bits, there are 2^N possible actions
 G_Panel getPanActions()
           
 G_Panel getPanConditions()
           
 int getSTEP_SCALE()
           
 Vector2D getVectorFromAction(Classifier c, Entity me, Entity otherEntity)
          Calculate the Vector generated by the Action part of the Classifier This function gives the meaning of the Action part.
 void setMIN_NB_ACTIONS_TO_AVOID_COVERING(int i)
           
 void setMIN_SCALE(int i)
           
 void setSTEP_SCALE(int i)
           
 java.lang.String testCondition(int i, Entity otherEntity)
          Gives the definition of an Entity according to the criteria given by this template (is moving ?
 void updateValuesUI()
           
 
Methods inherited from class simuLCS.Template
getAction, getActions, getCondition, getConditions, getName, getNbBitsAction, getNbBitsCondition, getNbPartsCondition, getVectorFromActions, setName, testCondition
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MIN_SCALE

protected int MIN_SCALE

STEP_SCALE

protected int STEP_SCALE

MIN_NB_ACTIONS_TO_AVOID_COVERING

protected int MIN_NB_ACTIONS_TO_AVOID_COVERING
Constructor Detail

TemplateRSP

public TemplateRSP()
Method Detail

testCondition

public java.lang.String testCondition(int i,
                                      Entity otherEntity)
Gives the definition of an Entity according to the criteria given by this template (is moving ? is Dangerous ?) This function gives the meaning of the Conditions bits

Specified by:
testCondition in class Template
Parameters:
i - the number of the condition tested
otherEntity - the agent we want to test the condition on
See Also:
Template#testCondition(int, Agent)

getVectorFromAction

public Vector2D getVectorFromAction(Classifier c,
                                    Entity me,
                                    Entity otherEntity)
Calculate the Vector generated by the Action part of the Classifier This function gives the meaning of the Action part.

Specified by:
getVectorFromAction in class Template
Parameters:
c - the Classifier from which the action part will be interpreted
me - the Entity which has this classifier
otherEntity - the Entity which generates this vector as a response
See Also:
Template#getVectorFromAction(Classifier)

getNbPossibleActions

public int getNbPossibleActions()
Since the Action is given as a string of N bits, there are 2^N possible actions

Specified by:
getNbPossibleActions in class Template
See Also:
Template.getNbPossibleActions()

getPanConditions

public G_Panel getPanConditions()
Specified by:
getPanConditions in class Template
Returns:

getPanActions

public G_Panel getPanActions()
Specified by:
getPanActions in class Template
Returns:

updateValuesUI

public void updateValuesUI()
Specified by:
updateValuesUI in class Template

getMinNbActions

public int getMinNbActions()
Description copied from class: Template
Specifies the minimal number of actions that must be present in a match set or else covering will occur.

Specified by:
getMinNbActions in class Template

getMIN_NB_ACTIONS_TO_AVOID_COVERING

public int getMIN_NB_ACTIONS_TO_AVOID_COVERING()
Returns:

getMIN_SCALE

public int getMIN_SCALE()
Returns:

getSTEP_SCALE

public int getSTEP_SCALE()
Returns:

setMIN_NB_ACTIONS_TO_AVOID_COVERING

public void setMIN_NB_ACTIONS_TO_AVOID_COVERING(int i)
Parameters:
i -

setMIN_SCALE

public void setMIN_SCALE(int i)
Parameters:
i -

setSTEP_SCALE

public void setSTEP_SCALE(int i)
Parameters:
i -