Package org.processmining.log.filters
Class AddIdentityFilter
- java.lang.Object
-
- org.processmining.log.filters.AddIdentityFilter
-
- All Implemented Interfaces:
XEventEditor,XTraceEditor
public class AddIdentityFilter extends java.lang.Object implements XEventEditor, XTraceEditor
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAddIdentityFilter(org.deckfour.xes.model.XLog log)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static org.deckfour.xes.model.XLogaddIdentities(org.processmining.framework.plugin.PluginContext context, org.deckfour.xes.model.XLog log)org.deckfour.xes.model.XEventeditEvent(org.deckfour.xes.model.XEvent event)When filtering, this method is called for each XEvent in the log.org.deckfour.xes.model.XTraceeditTrace(org.deckfour.xes.model.XTrace trace)When filtering, this method is called for each XTrace in the log.org.deckfour.xes.model.XLogfilter(org.processmining.framework.plugin.PluginContext context)IdentityConnectiongetConnection(org.deckfour.xes.model.XLog filtered)
-
-
-
Method Detail
-
addIdentities
public static org.deckfour.xes.model.XLog addIdentities(org.processmining.framework.plugin.PluginContext context, org.deckfour.xes.model.XLog log)
-
filter
public org.deckfour.xes.model.XLog filter(org.processmining.framework.plugin.PluginContext context) throws LogFilterException- Throws:
LogFilterException
-
getConnection
public IdentityConnection getConnection(org.deckfour.xes.model.XLog filtered)
-
editTrace
public org.deckfour.xes.model.XTrace editTrace(org.deckfour.xes.model.XTrace trace)
Description copied from interface:XTraceEditorWhen filtering, this method is called for each XTrace in the log. The trace can be edited, or a new one can be returned. If null is returned, or an empty trace is returned, the calling filter will remove the trace from the log. No new XTrace objects should be returned.- Specified by:
editTracein interfaceXTraceEditor- Parameters:
trace- The trace that is currently being considered by the calling filter. Note that it can be assumed that trace.isEmpty()==false- Returns:
- The edited trace. If null, or an empty trace is returned, then the trace is removed. No new trace objects should be returned.
-
editEvent
public org.deckfour.xes.model.XEvent editEvent(org.deckfour.xes.model.XEvent event)
Description copied from interface:XEventEditorWhen filtering, this method is called for each XEvent in the log. The event can be edited, or a new one can be returned. If null is returned, the calling filter will remove the event from the log. If a new XEvent object is returned, the called filter will replace the old event with the new event.- Specified by:
editEventin interfaceXEventEditor- Parameters:
event- The event that is currently being considered by the calling filter.- Returns:
- The edited event. If null is returned, then the event is removed. If a new XEvent object is returned, the event is replaced.
-
-