Class PlaceNode
- java.lang.Object
-
- org.processmining.specpp.datastructures.tree.base.impls.AbstractLocalNode<P,S,N>
-
- org.processmining.specpp.datastructures.tree.base.impls.LocalNodeWithExternalizedLogic<Place,PlaceState,PlaceNode>
-
- org.processmining.specpp.datastructures.tree.nodegen.PlaceNode
-
- All Implemented Interfaces:
Evaluable,GraphObject,Vertex,LocalNode<Place,PlaceState,PlaceNode>,PropertyNode<Place>,HasProperties<Place>,HasState<PlaceState>,KnowsDepth,LocallyExpandable<PlaceNode>,StateNode<PlaceState>,TreeNode
public class PlaceNode extends LocalNodeWithExternalizedLogic<Place,PlaceState,PlaceNode>
This class represents a tree node containing aPlace(asNodeProperties) together with aPlaceState(asNodeState) that indicates already generated children nodes. It is an implementation of aGeneratingLocalNode, that is, it does not hold references to any other nodes and instead employs only its local state and aPlaceGeneratorto compute unseen children.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedPlaceNode(Place place, PlaceState state, ChildGenerationLogic<Place,PlaceState,PlaceNode> generationLogic, boolean isRoot, int depth)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanExpandBasedOnExternalLogic()protected java.util.Optional<java.lang.Boolean>canExpandBasedOnInternalState()booleandidExpand()PlaceNodegenerateChild()java.lang.Iterable<PlaceNode>generatePotentialChildren()PlacegetPlace()PlaceNodemakeChild(Place childPlace, PlaceState childState)protected static PlaceNoderoot(Place place, PlaceState state, ChildGenerationLogic<Place,PlaceState,PlaceNode> generationLogic)-
Methods inherited from class org.processmining.specpp.datastructures.tree.base.impls.LocalNodeWithExternalizedLogic
canExpand, getGenerationLogic, setGenerationLogic
-
Methods inherited from class org.processmining.specpp.datastructures.tree.base.impls.AbstractLocalNode
equals, getDepth, getProperties, getState, hashCode, isRoot, setState, toString
-
-
-
-
Constructor Detail
-
PlaceNode
protected PlaceNode(Place place, PlaceState state, ChildGenerationLogic<Place,PlaceState,PlaceNode> generationLogic, boolean isRoot, int depth)
-
-
Method Detail
-
root
protected static PlaceNode root(Place place, PlaceState state, ChildGenerationLogic<Place,PlaceState,PlaceNode> generationLogic)
-
makeChild
public PlaceNode makeChild(Place childPlace, PlaceState childState)
-
getPlace
public Place getPlace()
-
generatePotentialChildren
public java.lang.Iterable<PlaceNode> generatePotentialChildren()
-
didExpand
public boolean didExpand()
-
canExpandBasedOnExternalLogic
protected boolean canExpandBasedOnExternalLogic()
- Specified by:
canExpandBasedOnExternalLogicin classLocalNodeWithExternalizedLogic<Place,PlaceState,PlaceNode>
-
canExpandBasedOnInternalState
protected java.util.Optional<java.lang.Boolean> canExpandBasedOnInternalState()
- Specified by:
canExpandBasedOnInternalStatein classLocalNodeWithExternalizedLogic<Place,PlaceState,PlaceNode>
-
generateChild
public PlaceNode generateChild()
-
-