|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.ObjectsimuLCS.Template
Subclass of all the Templatee: a Template defines the meaning of the bits of a classifier.
| Field Summary | |
protected ClassifierComponent[] |
actions
|
protected ClassifierComponent[] |
conditions
|
protected java.lang.String |
name
|
protected int |
NB_BITS_ACTION
|
protected int |
NB_BITS_CONDITION
|
protected int |
nbPartsAction
|
protected int |
nbPartsCondition
|
| Constructor Summary | |
Template()
|
|
| Method Summary | |
ClassifierComponent |
getAction(int i)
|
ClassifierComponent[] |
getActions()
|
ClassifierComponent |
getCondition(int i)
|
ClassifierComponent[] |
getConditions()
|
abstract int |
getMinNbActions()
Specifies the minimal number of actions that must be present in a match set or else covering will occur. |
java.lang.String |
getName()
|
int |
getNbBitsAction()
|
int |
getNbBitsCondition()
|
int |
getNbPartsCondition()
|
abstract int |
getNbPossibleActions()
|
abstract G_Panel |
getPanActions()
|
abstract G_Panel |
getPanConditions()
|
abstract Vector2D |
getVectorFromAction(Classifier c,
Entity me,
Entity otherEntity)
Return the Vector created by the Action part of the classifier |
Vector2D |
getVectorFromActions(Classifier[] cs,
Entity me,
Entity otherEntity)
Return the Vector created by the actions partS of several classifiers |
void |
setName(java.lang.String n)
|
java.lang.String |
testCondition(Entity otherEntity)
Return a string of "0","1", or "#" containing the result of all the conditions tested on the entity otherEntity |
abstract java.lang.String |
testCondition(int i,
Entity otherEntity)
Return a string of "0","1", or "#" containing the result of the condition i tested on the entity otherEntity |
abstract void |
updateValuesUI()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected int NB_BITS_CONDITION
protected int NB_BITS_ACTION
protected java.lang.String name
protected int nbPartsCondition
protected int nbPartsAction
protected ClassifierComponent[] conditions
protected ClassifierComponent[] actions
| Constructor Detail |
public Template()
| Method Detail |
public java.lang.String getName()
public void setName(java.lang.String n)
public int getNbPartsCondition()
public abstract int getNbPossibleActions()
public abstract int getMinNbActions()
public abstract java.lang.String testCondition(int i,
Entity otherEntity)
i - the number of the condition testedotherEntity - the agent we want to test the condition onpublic java.lang.String testCondition(Entity otherEntity)
otherEntity - the agent we want to test the condition on
public abstract Vector2D getVectorFromAction(Classifier c,
Entity me,
Entity otherEntity)
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
public Vector2D getVectorFromActions(Classifier[] cs,
Entity me,
Entity otherEntity)
public abstract G_Panel getPanConditions()
public abstract G_Panel getPanActions()
public abstract void updateValuesUI()
public ClassifierComponent getAction(int i)
public ClassifierComponent[] getConditions()
public ClassifierComponent[] getActions()
public int getNbBitsCondition()
public int getNbBitsAction()
public ClassifierComponent getCondition(int i)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||