Class IMLogImpl
- java.lang.Object
-
- org.processmining.plugins.InductiveMiner.mining.logs.IMLogImpl
-
- Direct Known Subclasses:
IMLogStartEndComplete
public class IMLogImpl extends java.lang.Object implements IMLog
-
-
Field Summary
Fields Modifier and Type Field Description protected org.deckfour.xes.classification.XEventClassifieractivityClassifierprotected gnu.trove.list.array.TIntArrayListaddedTracesprotected XLifeCycleClassifierlifeCycleClassifierprotected org.deckfour.xes.model.XLogxLog
-
Constructor Summary
Constructors Constructor Description IMLogImpl(org.deckfour.xes.model.XLog xLog, org.deckfour.xes.classification.XEventClassifier activityClassifier, XLifeCycleClassifier lifeCycleClassifier)Create an IMlog from an XLog.IMLogImpl(IMLogImpl log)Clone an existing IMlog
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.deckfour.xes.classification.XEventClassclassify(IMTrace IMTrace, org.deckfour.xes.model.XEvent event)Classify an eventIMLogclone()Clone this IMLog.IMTracecopyTrace(IMTrace trace)Copy a trace and return the copy.IMTracecopyTrace(IMTrace trace, java.util.BitSet traceOutEvents)Copy a trace and return the copy.IMLogImpldecoupleFromXLog()Turns the IMLog into an XLog, and makes a new IMLog out of it.org.deckfour.xes.classification.XEventClassifiergetClassifier()XLifeCycleClassifier.TransitiongetLifeCycle(org.deckfour.xes.model.XEvent event)XLifeCycleClassifiergetLifeCycleClassifier()org.deckfour.xes.model.XTracegetTraceWithIndex(int traceIndex)java.util.Iterator<IMTrace>iterator()voidsetClassifier(org.deckfour.xes.classification.XEventClassifier classifier)voidsetLifeCycleClassifier(XLifeCycleClassifier classifier)intsize()Return the number of traces in the logjava.lang.StringtoString()org.deckfour.xes.model.XLogtoXLog()
-
-
-
Field Detail
-
xLog
protected final org.deckfour.xes.model.XLog xLog
-
addedTraces
protected final gnu.trove.list.array.TIntArrayList addedTraces
-
activityClassifier
protected org.deckfour.xes.classification.XEventClassifier activityClassifier
-
lifeCycleClassifier
protected XLifeCycleClassifier lifeCycleClassifier
-
-
Constructor Detail
-
IMLogImpl
public IMLogImpl(org.deckfour.xes.model.XLog xLog, org.deckfour.xes.classification.XEventClassifier activityClassifier, XLifeCycleClassifier lifeCycleClassifier)Create an IMlog from an XLog.- Parameters:
xLog-
-
IMLogImpl
public IMLogImpl(IMLogImpl log)
Clone an existing IMlog- Parameters:
log-
-
-
Method Detail
-
clone
public IMLog clone()
Description copied from interface:IMLogClone this IMLog. The new one might be based on the same XLog as the old one.
-
classify
public org.deckfour.xes.classification.XEventClass classify(IMTrace IMTrace, org.deckfour.xes.model.XEvent event)
Classify an event
-
getClassifier
public org.deckfour.xes.classification.XEventClassifier getClassifier()
- Specified by:
getClassifierin interfaceIMLog
-
setClassifier
public void setClassifier(org.deckfour.xes.classification.XEventClassifier classifier)
- Specified by:
setClassifierin interfaceIMLog
-
getLifeCycle
public XLifeCycleClassifier.Transition getLifeCycle(org.deckfour.xes.model.XEvent event)
- Specified by:
getLifeCyclein interfaceIMLog
-
getLifeCycleClassifier
public XLifeCycleClassifier getLifeCycleClassifier()
- Specified by:
getLifeCycleClassifierin interfaceIMLog
-
setLifeCycleClassifier
public void setLifeCycleClassifier(XLifeCycleClassifier classifier)
- Specified by:
setLifeCycleClassifierin interfaceIMLog
-
getTraceWithIndex
public org.deckfour.xes.model.XTrace getTraceWithIndex(int traceIndex)
- Specified by:
getTraceWithIndexin interfaceIMLog
-
size
public int size()
Return the number of traces in the log
-
copyTrace
public IMTrace copyTrace(IMTrace trace, java.util.BitSet traceOutEvents)
Description copied from interface:IMLogCopy a trace and return the copy.
-
copyTrace
public IMTrace copyTrace(IMTrace trace)
Description copied from interface:IMLogCopy a trace and return the copy.
-
iterator
public java.util.Iterator<IMTrace> iterator()
- Specified by:
iteratorin interfacejava.lang.Iterable<IMTrace>
-
toString
public java.lang.String toString()
-
decoupleFromXLog
public IMLogImpl decoupleFromXLog()
Turns the IMLog into an XLog, and makes a new IMLog out of it. Use this method to reduce memory usage if the log becomes sparse.- Specified by:
decoupleFromXLogin interfaceIMLog- Returns:
- the newly created IMLog, which has no connection anymore to the original XLog.
-
-