simuLCS
Class TemplateRSP
java.lang.Object
simuLCS.Template
simuLCS.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
| 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 |
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
TemplateRSP
public TemplateRSP()
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 testedotherEntity - 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 interpretedme - the Entity which has this classifierotherEntity - 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 -