public class GroupedXLog
extends java.lang.Object
implements java.lang.Cloneable
XEventNameAndTransitionClassifier
is used.Constructor and Description |
---|
GroupedXLog(org.deckfour.xes.model.XLog log)
Create a new GroupedXLog based on an XLog.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone() |
java.util.List<org.deckfour.xes.model.XTrace> |
get(int index)
Get the index-th group of this log.
|
org.deckfour.xes.model.XAttributeMap |
getAttributeMap()
Return a map containing the attributes for this log.
|
org.deckfour.xes.model.XLog |
getLog()
Creates and returns the entire XLog that is represented by this
GroupedXLog.
|
org.deckfour.xes.model.XLog |
getLog(java.util.Collection<java.lang.Integer> indices)
Creates and returns an XLog based on the groups denoted by the given
indices.
|
org.deckfour.xes.model.XLog |
getLog(int... indices)
Creates and returns an XLog based on the groups denoted by the given
indices.
|
java.lang.String |
getName()
The name of the represented XLog.
|
int |
getNbTraces()
Retuns the total amount of traces in this log.
|
void |
remove(int index)
Remove a group from this XLog.
|
void |
remove(org.deckfour.xes.model.XTrace trace)
Remove the group from this XLog with traces that are similar to the given
trace.
|
int |
size()
Returns the amount of groups of which this log consists.
|
public GroupedXLog(org.deckfour.xes.model.XLog log)
log
- The XLog that should be represented by this GroupedXLog.public java.lang.Object clone()
clone
in class java.lang.Object
public java.util.List<org.deckfour.xes.model.XTrace> get(int index)
index
- The index of the group.public org.deckfour.xes.model.XAttributeMap getAttributeMap()
public org.deckfour.xes.model.XLog getLog()
public org.deckfour.xes.model.XLog getLog(java.util.Collection<java.lang.Integer> indices)
indices
- The indices of the groups that ought to be part of the
generated XLog.get(int)
public org.deckfour.xes.model.XLog getLog(int... indices)
indices
- The indices of the groups that ought to be part of the
generated XLog.get(int)
public java.lang.String getName()
public int getNbTraces()
public void remove(int index)
index
- The index of the group to be removed.public void remove(org.deckfour.xes.model.XTrace trace) throws java.lang.IllegalArgumentException
trace
- The trace whose similar group has to be removed.java.lang.IllegalArgumentException
public int size()