Package org.deckfour.xes.classification
Class XEventAttributeClassifier
- java.lang.Object
-
- org.deckfour.xes.classification.XEventAttributeClassifier
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<XEventAttributeClassifier>,XEventClassifier
- Direct Known Subclasses:
XEventAndClassifier,XEventLifeTransClassifier,XEventNameClassifier,XEventResourceClassifier
public class XEventAttributeClassifier extends java.lang.Object implements XEventClassifier, java.lang.Comparable<XEventAttributeClassifier>, java.io.Serializable
Event classifier which considers two events as equal, if, for a set of given (configurable) attributes, they have the same values.- Author:
- Christian W. Guenther (christian@deckfour.org)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description XEventAttributeClassifier(java.lang.String name, java.lang.String... keys)Creates a new instance, configured by the given attribute.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(XVisitor visitor, XLog log)Runs the given visitor for the given log on this classifier.intcompareTo(XEventAttributeClassifier o)booleanequals(java.lang.Object o)java.lang.StringgetClassIdentity(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).inthashCode()java.lang.Stringname()Returns the name of this comparatorbooleansameEventClass(XEvent eventA, XEvent eventB)Checks whether two event instances correspond to the same event class, i.e.voidsetName(java.lang.String name)Assigns a custom name to this classifierjava.lang.StringtoString()
-
-
-
Method Detail
-
getClassIdentity
public java.lang.String getClassIdentity(XEvent event)
Description copied from interface:XEventClassifierRetrieves the unique class identity string of a given event.- Specified by:
getClassIdentityin interfaceXEventClassifier
-
setName
public void setName(java.lang.String name)
Assigns a custom name to this classifier- Specified by:
setNamein interfaceXEventClassifier- Parameters:
name- Name to be assigned to this classifier.
-
name
public java.lang.String name()
Description copied from interface:XEventClassifierReturns the name of this comparator- Specified by:
namein interfaceXEventClassifier
-
sameEventClass
public boolean sameEventClass(XEvent eventA, XEvent eventB)
Description copied from interface:XEventClassifierChecks whether two event instances correspond to the same event class, i.e. are equal in that sense.- Specified by:
sameEventClassin interfaceXEventClassifier
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
getDefiningAttributeKeys
public java.lang.String[] getDefiningAttributeKeys()
Description copied from interface:XEventClassifierRetrieves 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).- Specified by:
getDefiningAttributeKeysin interfaceXEventClassifier- Returns:
- A set of attribute keys, which are used for defining this classifier.
-
compareTo
public int compareTo(XEventAttributeClassifier o)
- Specified by:
compareToin interfacejava.lang.Comparable<XEventAttributeClassifier>
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
accept
public void accept(XVisitor visitor, XLog log)
Description copied from interface:XEventClassifierRuns the given visitor for the given log on this classifier.- Specified by:
acceptin interfaceXEventClassifier
-
-