|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.deckfour.xes.classification.XEventClass
public class XEventClass
Implements an event class. An event class is an identity for events, making them comparable. If two events are part of the same class, they are considered to be equal, i.e. to be referring to the same higher-level concept.
Field Summary | |
---|---|
protected String |
id
Unique identification string of class. |
protected int |
index
Unique index of class. |
protected int |
size
Size of class, i.e. |
Constructor Summary | |
---|---|
XEventClass(String id,
int index)
Creates a new event class instance. |
Method Summary | |
---|---|
int |
compareTo(XEventClass o)
|
boolean |
equals(Object o)
|
String |
getId()
Retrieves the name, i.e. |
int |
getIndex()
Returns the index of this event class. |
int |
hashCode()
|
void |
incrementSize()
Increments the size of this class by one, i.e. |
void |
setSize(int size)
Sets the size of this event class, i.e. |
int |
size()
Retrieves the size, i.e. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected int index
protected String id
protected int size
Constructor Detail |
---|
public XEventClass(String id, int index)
id
- Unique identification string of the class, i.e. its name.index
- Unique index of this event class.Method Detail |
---|
public String getId()
public int getIndex()
public int size()
public void setSize(int size)
size
- Number of events in this class.public void incrementSize()
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
public int compareTo(XEventClass o)
compareTo
in interface Comparable<XEventClass>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |