Class LocalProcessModel
- java.lang.Object
-
- org.processmining.placebasedlpmdiscovery.model.LocalProcessModel
-
- All Implemented Interfaces:
java.io.Serializable,TextDescribable
public class LocalProcessModel extends java.lang.Object implements java.io.Serializable, TextDescribable
The LocalProcessModel class is used to represent the logic for local process models. It contains places, transitions and arcs between them.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description LocalProcessModel()LocalProcessModel(LocalProcessModel lpm)LocalProcessModel(Place place)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAllPlaces(java.util.Set<Place> places)voidaddLPM(LocalProcessModel lpm)voidaddPlace(Place place)booleancontainsLPM(LocalProcessModel lpm)booleancontainsPlace(java.util.Set<java.lang.String> possibleShortString)booleancontainsPlace(Place place)booleanequals(java.lang.Object obj)LPMAdditionalInfogetAdditionalInfo()java.util.Set<Arc>getArcs()java.lang.StringgetId()java.util.List<Transition>getInputTransitions()Finds all transitions that don't have output arcs with any place in the LPMjava.util.List<Transition>getOutputTransitions()Finds all transitions that don't have input arcs with any place in the LPMPlacegetPlace(org.processmining.models.graphbased.NodeID id)java.util.Set<Place>getPlaces()java.lang.StringgetShortString()java.util.Collection<Transition>getTransitions()java.util.Collection<Transition>getVisibleTransitions()booleanhasCommonTransitions(Place place)Checks whether the LPM and the place have common transitions that can be used in order to add the place in the LPM.inthashCode()voidsetAdditionalInfo(LPMAdditionalInfo additionalInfo)java.lang.StringtoString()
-
-
-
Constructor Detail
-
LocalProcessModel
public LocalProcessModel()
-
LocalProcessModel
public LocalProcessModel(LocalProcessModel lpm)
-
LocalProcessModel
public LocalProcessModel(Place place)
-
-
Method Detail
-
getInputTransitions
public java.util.List<Transition> getInputTransitions()
Finds all transitions that don't have output arcs with any place in the LPM- Returns:
- transitions for which there is no place with output arc toward them
-
getOutputTransitions
public java.util.List<Transition> getOutputTransitions()
Finds all transitions that don't have input arcs with any place in the LPM- Returns:
- transitions for which there is no place with input arc toward them
-
getAdditionalInfo
public LPMAdditionalInfo getAdditionalInfo()
-
setAdditionalInfo
public void setAdditionalInfo(LPMAdditionalInfo additionalInfo)
-
getArcs
public java.util.Set<Arc> getArcs()
-
getId
public java.lang.String getId()
-
getPlaces
public java.util.Set<Place> getPlaces()
-
addPlace
public void addPlace(Place place)
-
addAllPlaces
public void addAllPlaces(java.util.Set<Place> places)
-
addLPM
public void addLPM(LocalProcessModel lpm)
-
containsPlace
public boolean containsPlace(Place place)
-
containsPlace
public boolean containsPlace(java.util.Set<java.lang.String> possibleShortString)
-
containsLPM
public boolean containsLPM(LocalProcessModel lpm)
-
hasCommonTransitions
public boolean hasCommonTransitions(Place place)
Checks whether the LPM and the place have common transitions that can be used in order to add the place in the LPM.- Parameters:
place- : The place for which we check if there are common transitions with the LPM- Returns:
- true if there are common transitions and false otherwise
-
getTransitions
public java.util.Collection<Transition> getTransitions()
-
getVisibleTransitions
public java.util.Collection<Transition> getVisibleTransitions()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
getShortString
public java.lang.String getShortString()
- Specified by:
getShortStringin interfaceTextDescribable
-
getPlace
public Place getPlace(org.processmining.models.graphbased.NodeID id)
-
-