Package org.processmining.log.models
Interface EventLogArray
-
- All Known Implementing Classes:
EventLogArrayImpl
public interface EventLogArray
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddLog(int index, org.deckfour.xes.model.XLog log)Adds the given log at the given index to the array.intaddLog(org.deckfour.xes.model.XLog log)Adds the given log to the array.voidexportToFile(org.processmining.framework.plugin.PluginContext context, java.io.File file, org.deckfour.xes.out.XSerializer logSerializer)org.deckfour.xes.model.XLoggetLog(int index)Returns the log at the given index.intgetSize()voidimportFromStream(org.processmining.framework.plugin.PluginContext context, java.io.InputStream input, java.lang.String parent)voidinit()Initializes the event log array.voidremoveLog(int index)Removes the log from the given index.intremoveLog(org.deckfour.xes.model.XLog log)Removes the first occurrence of the given log from the array,
-
-
-
Method Detail
-
init
void init()
Initializes the event log array.
-
addLog
int addLog(org.deckfour.xes.model.XLog log)
Adds the given log to the array.- Parameters:
log- The given log.- Returns:
- The index of the added log in the array.
-
removeLog
int removeLog(org.deckfour.xes.model.XLog log)
Removes the first occurrence of the given log from the array,- Parameters:
log- The given log.- Returns:
- The index of the removed log, if present. -1 if not present.
-
addLog
void addLog(int index, org.deckfour.xes.model.XLog log)Adds the given log at the given index to the array.- Parameters:
index- The given index.log- The given log.
-
removeLog
void removeLog(int index)
Removes the log from the given index.- Parameters:
index- The given index.
-
getLog
org.deckfour.xes.model.XLog getLog(int index)
Returns the log at the given index.- Parameters:
index- The given index.- Returns:
- The log at the given index, if valid. null if not valid.
-
getSize
int getSize()
-
importFromStream
void importFromStream(org.processmining.framework.plugin.PluginContext context, java.io.InputStream input, java.lang.String parent) throws java.lang.Exception- Throws:
java.lang.Exception
-
exportToFile
void exportToFile(org.processmining.framework.plugin.PluginContext context, java.io.File file, org.deckfour.xes.out.XSerializer logSerializer) throws java.io.IOException- Throws:
java.io.IOException
-
-