Class PlaceState
- java.lang.Object
-
- org.processmining.specpp.datastructures.tree.nodegen.PlaceState
-
- All Implemented Interfaces:
NodeState,Mutable,ProperlyPrintable
public class PlaceState extends java.lang.Object implements NodeState, ProperlyPrintable
This class represents the local state of aPlaceNode. It is mutable and used by thePlaceGeneratorto determine the next unseen child node to generate. The state object will be modified in the aforementioned process. While theactualPresetExpansionsandactualPostsetExpansionsare kept updated at all times (excl. multi-threaded use), their potential counterparts, may overestimate the real potential expansions when constraints change.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedPlaceState(BitMask actualPresetExpansions, BitMask actualPostsetExpansions, BitMask potentialPresetExpansions, BitMask potentialPostsetExpansions)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanNeverExpand()intcomputeActualChildrenCount()booleanequals(java.lang.Object o)BitMaskgetActualExpansions(MonotonousPlaceGenerationLogic.ExpansionType expansionType)BitMaskgetActualPostsetExpansions()BitMaskgetActualPresetExpansions()BitMaskgetPotentialExpansions(MonotonousPlaceGenerationLogic.ExpansionType expansionType)BitMaskgetPotentialPostsetExpansions()BitMaskgetPotentialPresetExpansions()inthashCode()booleanisCurrentlyALeaf()java.lang.StringtoString()static PlaceStatewithPotentialExpansions(BitMask potentialPresetExpansions, BitMask potentialPostsetExpansions)
-
-
-
Method Detail
-
withPotentialExpansions
public static PlaceState withPotentialExpansions(BitMask potentialPresetExpansions, BitMask potentialPostsetExpansions)
-
canNeverExpand
public boolean canNeverExpand()
- Returns:
- whether the potential expansions indicate that a future expansion is at all possible
-
isCurrentlyALeaf
public boolean isCurrentlyALeaf()
- Returns:
- whether state describes a node with currently no children
-
getPotentialPresetExpansions
public BitMask getPotentialPresetExpansions()
-
getPotentialPostsetExpansions
public BitMask getPotentialPostsetExpansions()
-
getActualPresetExpansions
public BitMask getActualPresetExpansions()
-
getActualPostsetExpansions
public BitMask getActualPostsetExpansions()
-
computeActualChildrenCount
public int computeActualChildrenCount()
-
getActualExpansions
public BitMask getActualExpansions(MonotonousPlaceGenerationLogic.ExpansionType expansionType)
-
getPotentialExpansions
public BitMask getPotentialExpansions(MonotonousPlaceGenerationLogic.ExpansionType expansionType)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Specified by:
toStringin interfaceProperlyPrintable- Overrides:
toStringin classjava.lang.Object
-
-