Class Marking
- java.lang.Object
-
- java.util.AbstractCollection<T>
-
- org.processmining.framework.util.collection.AbstractMultiSet<T,java.util.TreeMap<T,java.lang.Integer>>
-
- org.processmining.framework.util.collection.TreeMultiSet<Place>
-
- org.processmining.models.semantics.petrinet.Marking
-
- All Implemented Interfaces:
java.lang.Comparable<Marking>,java.lang.Iterable<Place>,java.util.Collection<Place>,org.processmining.framework.util.collection.MultiSet<Place>,org.processmining.framework.util.collection.SortedMultiSet<Place>,org.processmining.framework.util.HTMLToString
- Direct Known Subclasses:
CTMarking
public class Marking extends org.processmining.framework.util.collection.TreeMultiSet<Place> implements java.lang.Comparable<Marking>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(Marking mset)booleanequals(java.lang.Object o)returns true if the multisets are equal, i.e.Markingminus(Marking m)removes the elements in the given multiset from this multiset and returns a multiset indicating what was removed.-
Methods inherited from class org.processmining.framework.util.collection.TreeMultiSet
baseSet, comparator
-
Methods inherited from class org.processmining.framework.util.collection.AbstractMultiSet
add, add, addAll, clear, contains, containsAll, containsAtLeast, hashCode, isEmpty, isLessOrEqual, iterator, occurrences, remove, removeAll, removeAllMultiSet, retainAll, retainAll, size, toHTMLString, toList, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Constructor Detail
-
Marking
public Marking(java.util.Collection<Place> collection)
-
Marking
public Marking()
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object o)
Description copied from class:org.processmining.framework.util.collection.AbstractMultiSetreturns true if the multisets are equal, i.e. if they contain the same objects with the same number of occurrences.
-
minus
public Marking minus(Marking m)
removes the elements in the given multiset from this multiset and returns a multiset indicating what was removed.- Parameters:
mset- the multiset of elements needing to be removed.- Returns:
- a new multiset where the occurrences are the occurrences in this multiset, minus the occurrences in the given multiset
-
-