|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.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 java.lang.String[] |
keys
Keys of the attributes used for event comparison. |
protected java.lang.String |
name
Name of the classifier |
Constructor Summary | |
---|---|
XEventAttributeClassifier(java.lang.String name,
java.lang.String... keys)
Creates a new instance, configured by the given attribute. |
Method Summary | |
---|---|
int |
compareTo(XEventAttributeClassifier o)
|
boolean |
equals(java.lang.Object o)
|
java.lang.String |
getClassIdentity(XEvent event)
Retrieves the unique class identity string of a given event. |
java.lang.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). |
java.lang.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(java.lang.String name)
Assigns a custom name to this classifier |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected java.lang.String[] keys
protected java.lang.String name
Constructor Detail |
---|
public XEventAttributeClassifier(java.lang.String name, java.lang.String... keys)
name
- Name of the classifier.attribute
- Attribute to be used for event classification.Method Detail |
---|
public java.lang.String getClassIdentity(XEvent event)
XEventClassifier
getClassIdentity
in interface XEventClassifier
public void setName(java.lang.String name)
setName
in interface XEventClassifier
name
- Name to be assigned to this classifier.public java.lang.String name()
XEventClassifier
name
in interface XEventClassifier
public boolean sameEventClass(XEvent eventA, XEvent eventB)
XEventClassifier
sameEventClass
in interface XEventClassifier
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String[] getDefiningAttributeKeys()
XEventClassifier
getDefiningAttributeKeys
in interface XEventClassifier
public int compareTo(XEventAttributeClassifier o)
compareTo
in interface java.lang.Comparable<XEventAttributeClassifier>
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |