Class PTraceExtendedAbstract
- java.lang.Object
-
- edu.uci.ics.jung.graph.AbstractGraph<V,E>
-
- edu.uci.ics.jung.graph.AbstractTypedGraph<V,E>
-
- edu.uci.ics.jung.graph.DirectedSparseGraph<java.lang.Integer,PDependency>
-
- org.processmining.partialorder.ptrace.model.imp.PTraceImp
-
- org.processmining.partialorder.ptrace.model.imp.PTraceExtendedAbstract
-
- All Implemented Interfaces:
edu.uci.ics.jung.graph.DirectedGraph<java.lang.Integer,PDependency>,edu.uci.ics.jung.graph.Graph<java.lang.Integer,PDependency>,edu.uci.ics.jung.graph.Hypergraph<java.lang.Integer,PDependency>,java.io.Serializable,java.lang.Iterable<org.deckfour.xes.model.XEvent>,PTrace,PTraceExtended
- Direct Known Subclasses:
PTraceExtendedProjectionImp,PTraceExtendedRecursionImp
public abstract class PTraceExtendedAbstract extends PTraceImp implements PTraceExtended
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected classPTraceExtendedAbstract.ActivityComparatorprotected classPTraceExtendedAbstract.PredecessorsComparator
-
Field Summary
Fields Modifier and Type Field Description protected int[]index2actprotected boolean[]isMove-
Fields inherited from class org.processmining.partialorder.ptrace.model.imp.PTraceImp
trace, traceIndex
-
-
Constructor Summary
Constructors Constructor Description PTraceExtendedAbstract(org.deckfour.xes.model.XTrace trace, int traceIndex)PTraceExtendedAbstract(PTrace ptrace)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description booleanaddEvent(int index, int act, boolean isVisible)nl.tue.astar.util.PartiallyOrderedTracegetFilteredPTrace(gnu.trove.map.TIntIntMap org2new, boolean sorted)Get a filtered po-trace in PartiallyOrderedTrace for A*-Alignment implementationnl.tue.astar.util.PartiallyOrderedTracegetOriginalPTrace()Get the unfiltered po-tracenl.tue.astar.util.PartiallyOrderedTracegetOriginalSortedPOrace()Get the sorted, unfiltered po-traceprotected abstract nl.tue.astar.util.PartiallyOrderedTracegetPartiallyOrderedTrace(gnu.trove.map.TIntIntMap org2new, boolean filterNoMoves, boolean sorted)nl.tue.astar.util.PartiallyOrderedTracegetSortedPartiallyOrderedTrace(nl.tue.astar.util.PartiallyOrderedTrace potrace, gnu.trove.map.TIntIntMap org2new)Get a sorted potrace and update the org2new mappingvoidsetEventActivity(java.lang.Integer eventIndex, int act, boolean b)-
Methods inherited from class org.processmining.partialorder.ptrace.model.imp.PTraceImp
addDependency, addEvent, getDependencies, getDependency, getEndEventIndices, getEvent, getEventIndices, getPredecessorIndices, getStartEventIndices, getSuccessorIndices, getTrace, getTraceIndex, iterator, setTraceIndex, size, toString
-
Methods inherited from class edu.uci.ics.jung.graph.DirectedSparseGraph
addEdge, addVertex, containsEdge, containsVertex, findEdge, findEdgeSet, getDest, getEdgeCount, getEdges, getEndpoints, getFactory, getIncidentEdges, getIncoming_internal, getInEdges, getNeighbors, getOutEdges, getOutgoing_internal, getPredecessors, getPreds_internal, getSource, getSuccessors, getSuccs_internal, getVertexCount, getVertices, isDest, isSource, removeEdge, removeVertex
-
Methods inherited from class edu.uci.ics.jung.graph.AbstractTypedGraph
getDefaultEdgeType, getEdgeCount, getEdges, getEdgeType, hasEqualEdgeType, validateEdgeType
-
Methods inherited from class edu.uci.ics.jung.graph.AbstractGraph
addEdge, addEdge, addEdge, addEdge, addEdge, degree, getIncidentCount, getIncidentVertices, getNeighborCount, getOpposite, getPredecessorCount, getSuccessorCount, getValidatedEndpoints, inDegree, isIncident, isNeighbor, isPredecessor, isSuccessor, outDegree
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface edu.uci.ics.jung.graph.Graph
addEdge, addEdge, getOpposite, getPredecessorCount, getSuccessorCount, inDegree, isPredecessor, isSuccessor, outDegree
-
Methods inherited from interface edu.uci.ics.jung.graph.Hypergraph
addEdge, addEdge, degree, getDefaultEdgeType, getEdgeCount, getEdges, getEdgeType, getIncidentCount, getIncidentVertices, getNeighborCount, isIncident, isNeighbor
-
Methods inherited from interface org.processmining.partialorder.ptrace.model.PTrace
addDependency, addEvent, getDependencies, getDependency, getEndEventIndices, getEvent, getEventIndices, getPredecessorIndices, getStartEventIndices, getSuccessorIndices, getTrace, getTraceIndex, setTraceIndex, size
-
-
-
-
Constructor Detail
-
PTraceExtendedAbstract
public PTraceExtendedAbstract(org.deckfour.xes.model.XTrace trace, int traceIndex)
-
PTraceExtendedAbstract
public PTraceExtendedAbstract(PTrace ptrace)
-
-
Method Detail
-
addEvent
public boolean addEvent(int index, int act, boolean isVisible)
-
setEventActivity
public void setEventActivity(java.lang.Integer eventIndex, int act, boolean b)- Specified by:
setEventActivityin interfacePTraceExtended
-
getFilteredPTrace
public nl.tue.astar.util.PartiallyOrderedTrace getFilteredPTrace(gnu.trove.map.TIntIntMap org2new, boolean sorted)Get a filtered po-trace in PartiallyOrderedTrace for A*-Alignment implementation- Specified by:
getFilteredPTracein interfacePTraceExtended- Parameters:
org2new- A (empty) map that is going to be filled in this function from the original index of an event to the new index in the returned po-tracesorted- If true, then sort the to-be-returned po-trace (for better comparison)- Returns:
- A po-trace.
-
getPartiallyOrderedTrace
protected abstract nl.tue.astar.util.PartiallyOrderedTrace getPartiallyOrderedTrace(gnu.trove.map.TIntIntMap org2new, boolean filterNoMoves, boolean sorted)
-
getSortedPartiallyOrderedTrace
public nl.tue.astar.util.PartiallyOrderedTrace getSortedPartiallyOrderedTrace(nl.tue.astar.util.PartiallyOrderedTrace potrace, gnu.trove.map.TIntIntMap org2new)Get a sorted potrace and update the org2new mapping- Parameters:
potrace- The po-trace to be sorted and returned as a sorted potraceorg2new- The mapping from original event index to new index in potrace (updated)- Returns:
-
getOriginalPTrace
public nl.tue.astar.util.PartiallyOrderedTrace getOriginalPTrace()
Get the unfiltered po-trace- Specified by:
getOriginalPTracein interfacePTraceExtended- Returns:
- a po-trace
-
getOriginalSortedPOrace
public nl.tue.astar.util.PartiallyOrderedTrace getOriginalSortedPOrace()
Get the sorted, unfiltered po-trace- Returns:
- a po-trace
-
-