|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.ObjectsimuLCS.ClassifierSet
Set of classifiers (might be ordered) used to describe a behaviour or the population inside the LCS.
Classifier| Field Summary | |
protected java.util.Set |
classifiers
The classifiers are in a Java Set. |
protected boolean |
isSorted
|
protected Template |
template
|
| Constructor Summary | |
ClassifierSet(Template t)
Constructs a non sorted Set of Classifiers. |
|
ClassifierSet(Template t,
boolean isSort)
Constructs a Set of Classifiers, sorted if isSort = true, non sorted otherwise. |
|
ClassifierSet(Template template,
java.util.Comparator order)
|
|
| Method Summary | |
void |
addClassifier(Classifier c)
|
void |
addClassifierSet(ClassifierSet cs)
|
boolean |
contains(Classifier c)
Returns true if this Set contains the classifier c |
ClassifierSet |
getActionSet()
Operate a selection among those Classifiers (the satisfied) By default, no selection, all the classifiers are kept Should be overriden by subclasses |
Classifier[] |
getClassifiers()
Get an array with all the classifiers in this set |
java.util.Iterator |
getIterator()
|
ClassifierSet |
getMatchSet(java.lang.String condToSatisfy)
Extract the classifiers of the set which have a Condition part that satisfies the condToSatisfy i.e. each bit of the condition part of classifier is either '#' or the same symbol (0 or 1) as the condToSatisfy one. |
int |
getSize()
|
Template |
getTemplate()
|
void |
removeClassifier(Classifier c)
|
void |
setTemplate(Template template)
|
java.lang.String |
toString()
Returns the list of the Classifiers to print them |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected Template template
protected boolean isSorted
protected java.util.Set classifiers
| Constructor Detail |
public ClassifierSet(Template t)
t - the template of the classifiers
public ClassifierSet(Template t,
boolean isSort)
t - the template of the classifiersisSort - determines if the Set has to be sorted.
public ClassifierSet(Template template,
java.util.Comparator order)
template - order - | Method Detail |
public void addClassifier(Classifier c)
public void addClassifierSet(ClassifierSet cs)
public void removeClassifier(Classifier c)
public boolean contains(Classifier c)
c
c -
public java.util.Iterator getIterator()
public int getSize()
public Classifier[] getClassifiers()
public ClassifierSet getMatchSet(java.lang.String condToSatisfy)
condToSatisfy -
public ClassifierSet getActionSet()
public Template getTemplate()
public void setTemplate(Template template)
public java.lang.String toString()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||