|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.deckfour.xes.classification.XEventClasses
public class XEventClasses
A set of event classes. For any log, this class can be used to impose a classification of events. Two events which belong to the same event class can be considered equal, i.e. to refer to the same higher-level concept they represent (e.g., an activity). Event classes are imposed on a log by a specific classifier. This class can be configured with such a classifier, which is then used to derive the actual event classes from a log, by determining the identity of the contained events.
Field Summary | |
---|---|
protected XEventClassifier |
classifier
The classifier used for creating the set of event classes. |
protected HashMap<String,XEventClass> |
classMap
Map holding the event classes, indexed by their unique identifier string. |
Constructor Summary | |
---|---|
XEventClasses(XEventClassifier classifier)
Creates a new instance, i.e. |
Method Summary | |
---|---|
static XEventClasses |
deriveEventClasses(XEventClassifier classifier,
XLog log)
Creates a new set of event classes, factory method. |
boolean |
equals(Object o)
Equality of event classes is based on their classifier, i.e., if two event classes have the same classifier, they are considered as equal in terms of this method. |
XEventClass |
getByIdentity(String classIdentity)
Returns a given event class by its identity, i.e. |
XEventClass |
getByIndex(int index)
Returns a given event class by its unique index. |
Collection<XEventClass> |
getClasses()
Returns the collection of event classes contained in this instance. |
XEventClassifier |
getClassifier()
Returns the classifier used for determining event classes. |
XEventClass |
getClassOf(XEvent event)
For any given event, returns the corresponding event class as determined by this set. |
void |
harmonizeIndices()
This method harmonizeds the indices of all contained event classes. |
void |
register(XEvent event)
Registers an event with this set of event classes. |
void |
register(XLog log)
Registers a log with this set of event classes. |
void |
register(XTrace trace)
Registers a trace with this set of event classes. |
int |
size()
Returns the size of this set of event classes. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected XEventClassifier classifier
protected HashMap<String,XEventClass> classMap
Constructor Detail |
---|
public XEventClasses(XEventClassifier classifier)
classifier
- The classifier used for event comparison.Method Detail |
---|
public static XEventClasses deriveEventClasses(XEventClassifier classifier, XLog log)
classifier
- The classifier to be used for event comparison.log
- The log, on which event classes should be imposed.
public XEventClassifier getClassifier()
public Collection<XEventClass> getClasses()
public int size()
public XEventClass getClassOf(XEvent event)
event
- The event of which the event class should be determined.
null
.public XEventClass getByIdentity(String classIdentity)
classIdentity
- Identifier string of the requested event class.
null
.public XEventClass getByIndex(int index)
index
- Unique index of the requested event class.
null
.public void register(XLog log)
log
- The log to be analyzed.public void register(XTrace trace)
trace
- The trace to be analyzed.public void register(XEvent event)
event
- The event to be analyzed.public void harmonizeIndices()
public boolean equals(Object o)
equals
in class Object
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |