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 DataAlignmentAdapter
DataAlignmentException
public PartialDataAlignedTrace retrievePartialDataAlignment(TraceMapping traceMapping, DataAwareThread.PartialResultFactory partialResultBuilder, DRecord currentRecord)
retrievePartialDataAlignment
in interface DataAlignmentAdapter
public int getCacheHits()
public int getCacheSize()
public void newPartialDataAlignment(DRecord record, PartialDataAlignedTrace dataState)
newPartialDataAlignment
in interface PartialDataAlignmentObserver
public DataStateStore newDataStateStore(int initialCapacity)
public DataStateFactory getDataStateFactory()
getDataStateFactory
in interface DataAlignmentAdapter
public void close()
close
in interface java.lang.AutoCloseable
close
in interface DataAlignmentAdapter