|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.deckfour.xes.classification.XEventAttributeClassifier
public class XEventAttributeClassifier
Event classifier which considers two events as equal, if, for a set of given (configurable) attributes, they have the same values.
Field Summary | |
---|---|
protected String[] |
keys
Keys of the attributes used for event comparison. |
protected String |
name
Name of the classifier |
Constructor Summary | |
---|---|
XEventAttributeClassifier(String name,
String... keys)
Creates a new instance, configured by the given attribute. |
Method Summary | |
---|---|
int |
compareTo(XEventAttributeClassifier o)
|
boolean |
equals(Object o)
|
String |
getClassIdentity(XEvent event)
Retrieves the unique class identity string of a given event. |
String[] |
getDefiningAttributeKeys()
Retrieves the set of attribute keys which are used in this event classifier (May be used for the construction of events that are not part of an existing event class). |
String |
name()
Returns the name of this comparator |
boolean |
sameEventClass(XEvent eventA,
XEvent eventB)
Checks whether two event instances correspond to the same event class, i.e. |
void |
setName(String name)
Assigns a custom name to this classifier |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected String[] keys
protected String name
Constructor Detail |
---|
public XEventAttributeClassifier(String name, String... keys)
name
- Name of the classifier.attribute
- Attribute to be used for event classification.Method Detail |
---|
public String getClassIdentity(XEvent event)
XEventClassifier
getClassIdentity
in interface XEventClassifier
public void setName(String name)
setName
in interface XEventClassifier
name
- Name to be assigned to this classifier.public String name()
XEventClassifier
name
in interface XEventClassifier
public boolean sameEventClass(XEvent eventA, XEvent eventB)
XEventClassifier
sameEventClass
in interface XEventClassifier
public String toString()
toString
in class Object
public String[] getDefiningAttributeKeys()
XEventClassifier
getDefiningAttributeKeys
in interface XEventClassifier
public int compareTo(XEventAttributeClassifier o)
compareTo
in interface Comparable<XEventAttributeClassifier>
public boolean equals(Object o)
equals
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |