Class Place
- java.lang.Object
-
- org.processmining.specpp.datastructures.petri.Place
-
- All Implemented Interfaces:
Candidate,Evaluable,NonMutatingSetOperations<Place>,SetQueries<Place>,NodeProperties,Copyable<Place>,Immutable,ProperlyHashable,ProperlyPrintable
public class Place extends java.lang.Object implements Candidate, NodeProperties, ProperlyHashable, ProperlyPrintable, Copyable<Place>, NonMutatingSetOperations<Place>, SetQueries<Place>
A class representing a Petri net place as a combination of its preset and postset. The sets are represented as ordered subsets of all possible transitions that may occur in the preset and postset respectively. A place liftsNonMutatingSetOperationsandSetQueriesto these pairs by component wise application. Places are marked as proposal candidatesCandidateand node propertiesNodePropertiesof trees.- See Also:
NonMutatingSetOperations,Candidate,NodeProperties
-
-
Constructor Summary
Constructors Constructor Description Place(BitEncodedSet<Transition> ingoingTransitions, BitEncodedSet<Transition> outgoingTransitions)Place(Pair<BitEncodedSet<Transition>> encodedSetPair)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Placecopy()booleanequals(java.lang.Object o)inthashCode()java.util.Set<Transition>incidentTransitions()Placeintersection(Place other)booleanintersects(Place other)booleanisEmpty()booleanisHalfEmpty()booleanisSubsetOf(Place other)booleanisSupersetOf(Place other)PlacenonSelfLoops()static Placeof(BitEncodedSet<Transition> ingoingTransitions, BitEncodedSet<Transition> outgoingTransitions)BitEncodedSet<Transition>postset()BitEncodedSet<Transition>preset()PlaceselfLoops()booleansetEquality(Place other)Placesetminus(Place other)intsize()java.lang.StringtoString()Placeunion(Place other)-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.processmining.specpp.datastructures.encoding.SetQueries
isDisjoint, isStrictSubsetOf, isStrictSupersetOf
-
-
-
-
Constructor Detail
-
Place
public Place(Pair<BitEncodedSet<Transition>> encodedSetPair)
-
Place
public Place(BitEncodedSet<Transition> ingoingTransitions, BitEncodedSet<Transition> outgoingTransitions)
-
-
Method Detail
-
of
public static Place of(BitEncodedSet<Transition> ingoingTransitions, BitEncodedSet<Transition> outgoingTransitions)
-
size
public int size()
-
isEmpty
public boolean isEmpty()
-
isHalfEmpty
public boolean isHalfEmpty()
-
preset
public BitEncodedSet<Transition> preset()
-
postset
public BitEncodedSet<Transition> postset()
-
nonSelfLoops
public Place nonSelfLoops()
-
selfLoops
public Place selfLoops()
-
union
public Place union(Place other)
- Specified by:
unionin interfaceNonMutatingSetOperations<Place>
-
setminus
public Place setminus(Place other)
- Specified by:
setminusin interfaceNonMutatingSetOperations<Place>
-
intersection
public Place intersection(Place other)
- Specified by:
intersectionin interfaceNonMutatingSetOperations<Place>
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfaceProperlyHashable- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Specified by:
toStringin interfaceProperlyPrintable- Overrides:
toStringin classjava.lang.Object
-
intersects
public boolean intersects(Place other)
- Specified by:
intersectsin interfaceSetQueries<Place>
-
setEquality
public boolean setEquality(Place other)
- Specified by:
setEqualityin interfaceSetQueries<Place>
-
isSubsetOf
public boolean isSubsetOf(Place other)
- Specified by:
isSubsetOfin interfaceSetQueries<Place>
-
isSupersetOf
public boolean isSupersetOf(Place other)
- Specified by:
isSupersetOfin interfaceSetQueries<Place>
-
incidentTransitions
public java.util.Set<Transition> incidentTransitions()
-
-