Class PlaceCompletionUtils
- java.lang.Object
-
- org.processmining.OCLPMDiscovery.utils.PlaceCompletionUtils
-
public class PlaceCompletionUtils extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description PlaceCompletionUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static OCLPMResultbetterFlow(OCLPMResult oclpmResult)add places of other types to model if both: equal place already is in there the other types are already present in the netstatic OCLPMResultbetterFlow2(OCLPMResult oclpmResult)add place of other types to model if: transition isn't source or sink transition has that type only as input or output Only adds places that are isomorphic to those already in the model Only checks if flow is completely broken (arcs go in nothing goes out), not if flow inbalanced (e.g., 2 in 1 out)static OCLPMResultcompleteAll(OCLPMResult oclpmResult)add places of other types to model if: equal place already is in therestatic OCLPMResultcompletePlaces(OCLPMResult oclpmResult, PlaceCompletion placeCompletion)static OCLPMResultcompletePlaces(OCLPMDiscoveryParameters parameters, OCLPMResult oclpmResult, TaggedPlaceSet placeSet)For each place adds potentially adds isomorphic places of different object types, depending on the PlaceCompletion strategy chosen.static OCLPMResultcompletePlacesCopy(OCLPMResult result, PlaceCompletion placeCompletion)static OCLPMResultswapToFewestVariableArcs(OCLPMResult oclpmResult)swaps existing places with the places that have the fewest variable arcsstatic OCLPMResultswapToLessThan2VariableArcs(OCLPMResult oclpmResult)swaps existing places with the places that have only one or fewer variable arcs
-
-
-
Method Detail
-
completePlaces
public static OCLPMResult completePlaces(OCLPMDiscoveryParameters parameters, OCLPMResult oclpmResult, TaggedPlaceSet placeSet)
For each place adds potentially adds isomorphic places of different object types, depending on the PlaceCompletion strategy chosen. (Object flow = Tokens of a type entering a transition should also exit)- Parameters:
parameters-oclpmResult-- Returns:
-
completePlacesCopy
public static OCLPMResult completePlacesCopy(OCLPMResult result, PlaceCompletion placeCompletion)
-
completePlaces
public static OCLPMResult completePlaces(OCLPMResult oclpmResult, PlaceCompletion placeCompletion)
-
swapToFewestVariableArcs
public static OCLPMResult swapToFewestVariableArcs(OCLPMResult oclpmResult)
swaps existing places with the places that have the fewest variable arcs- Parameters:
oclpmResult-placeSet-- Returns:
-
swapToLessThan2VariableArcs
public static OCLPMResult swapToLessThan2VariableArcs(OCLPMResult oclpmResult)
swaps existing places with the places that have only one or fewer variable arcs- Parameters:
oclpmResult-placeSet-- Returns:
-
betterFlow
public static OCLPMResult betterFlow(OCLPMResult oclpmResult)
add places of other types to model if both: equal place already is in there the other types are already present in the net- Parameters:
oclpmResult-placeSet-- Returns:
-
betterFlow2
public static OCLPMResult betterFlow2(OCLPMResult oclpmResult)
add place of other types to model if: transition isn't source or sink transition has that type only as input or output Only adds places that are isomorphic to those already in the model Only checks if flow is completely broken (arcs go in nothing goes out), not if flow inbalanced (e.g., 2 in 1 out)- Parameters:
oclpmResult-placeSet-- Returns:
-
completeAll
public static OCLPMResult completeAll(OCLPMResult oclpmResult)
add places of other types to model if: equal place already is in there- Parameters:
oclpmResult-placeSet-- Returns:
-
-