public class DataAlignmentAdapterCacheImpl extends java.lang.Object implements DataAlignmentAdapter, PartialDataAlignmentObserver
DataAlignmentAdapter that checks if we already stored the result in a
cache.DataAlignmentAdapter.GurobiDataAlignmentAdapter, DataAlignmentAdapter.ILPSolver, DataAlignmentAdapter.LpSolveDataAlignmentAdapter, DataAlignmentAdapter.LpSolveWithoutPartialDataAlignmentAdapter, DataAlignmentAdapter.NoDataAlignmentAdapter| Constructor and Description |
|---|
DataAlignmentAdapterCacheImpl(DataViewBuilder dataViewBuilder,
DataStateFactory dataStateFactory,
org.processmining.plugins.astar.petrinet.impl.AbstractPDelegate<? extends nl.tue.astar.Tail> delegate,
LogMapping logMapping) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
int |
getCacheHits() |
int |
getCacheSize() |
DataStateFactory |
getDataStateFactory() |
DataStateStore |
newDataStateStore(int initialCapacity) |
void |
newPartialDataAlignment(DRecord record,
PartialDataAlignedTrace dataState) |
DataAlignedTrace |
retrieveFullDataAlignment(TraceMapping traceMapping,
ControlFlowAlignmentResult controlFlowResult) |
PartialDataAlignedTrace |
retrievePartialDataAlignment(TraceMapping traceMapping,
DataAwareThread.PartialResultFactory partialResultBuilder,
DRecord currentRecord) |
public DataAlignmentAdapterCacheImpl(DataViewBuilder dataViewBuilder, DataStateFactory dataStateFactory, org.processmining.plugins.astar.petrinet.impl.AbstractPDelegate<? extends nl.tue.astar.Tail> delegate, LogMapping logMapping)
public DataAlignedTrace retrieveFullDataAlignment(TraceMapping traceMapping, ControlFlowAlignmentResult controlFlowResult) throws DataAlignmentException
retrieveFullDataAlignment in interface DataAlignmentAdapterDataAlignmentExceptionpublic PartialDataAlignedTrace retrievePartialDataAlignment(TraceMapping traceMapping, DataAwareThread.PartialResultFactory partialResultBuilder, DRecord currentRecord)
retrievePartialDataAlignment in interface DataAlignmentAdapterpublic int getCacheHits()
public int getCacheSize()
public void newPartialDataAlignment(DRecord record, PartialDataAlignedTrace dataState)
newPartialDataAlignment in interface PartialDataAlignmentObserverpublic DataStateStore newDataStateStore(int initialCapacity)
public DataStateFactory getDataStateFactory()
getDataStateFactory in interface DataAlignmentAdapterpublic void close()
close in interface java.lang.AutoCloseableclose in interface DataAlignmentAdapter