|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcrowdmodel.utils.Bcomparator
public class Bcomparator
Describes how to compare two self-defined objects: BehaviourRule. In general one cannot just compare two objects in Java unless they are primitives (and it is known how to compare them). By implementing the Comparator one specifies the objects that are under comparison and how it should be done.
Constructor Summary | |
---|---|
Bcomparator()
empty constructor |
Method Summary | |
---|---|
int |
compare(BehaviourRule b0,
BehaviourRule b1)
Compares the activation value of two BehaviourRules to design a hierarchical ordering |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.util.Comparator |
---|
equals |
Constructor Detail |
---|
public Bcomparator()
Method Detail |
---|
public int compare(BehaviourRule b0, BehaviourRule b1)
compare
in interface java.util.Comparator<BehaviourRule>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |