Class ArrayPartiallyOrderedSet<ELEMENT>
- java.lang.Object
-
- org.processmining.poemsconformancecheckingforbpmn.models.utils.ordered_set.partial.ArrayPartiallyOrderedSet<ELEMENT>
-
- All Implemented Interfaces:
java.lang.Iterable<ELEMENT>,java.util.Collection<ELEMENT>,java.util.Set<ELEMENT>,AlphabetCollection<ELEMENT>,OrderedSet<ELEMENT>,PartiallyOrderedSet<ELEMENT>
public class ArrayPartiallyOrderedSet<ELEMENT> extends java.lang.Object implements PartiallyOrderedSet<ELEMENT>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.processmining.poemsconformancecheckingforbpmn.models.utils.ordered_set.partial.PartiallyOrderedSet
PartiallyOrderedSet.Entry<E>
-
-
Constructor Summary
Constructors Constructor Description ArrayPartiallyOrderedSet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanadd(ELEMENT element)booleanaddAll(java.util.Collection<? extends ELEMENT> collection)voidclear()booleancontains(java.lang.Object o)booleancontainsAll(java.util.Collection<?> collection)java.util.Set<ELEMENT>getAlphabet()java.util.Set<ELEMENT>getAscendants(ELEMENT element)ELEMENTgetElement(int idx)java.util.Set<ELEMENT>getEnabled(java.util.Collection<ELEMENT> executed)java.util.Set<PartiallyOrderedSet.Entry<ELEMENT>>getEntrySet()java.lang.IntegergetIndex(ELEMENT element)java.util.List<ELEMENT>getLoopSequence(ELEMENT element, ELEMENT predecessor)intgetNumberOfConnections()java.util.Set<ELEMENT>getPredecessors(ELEMENT element)booleanisEmpty()protected booleanisEnabled(int idx, java.util.Set<java.lang.Integer> executedIdx)booleanisEnabled(ELEMENT element, java.util.Collection<ELEMENT> executed)java.util.Iterator<ELEMENT>iterator()protected java.util.Set<java.lang.Integer>putAllIfAbsent(java.util.Collection<ELEMENT> elementCollection)protected intputIfAbsent(ELEMENT element)booleanremove(java.lang.Object o)booleanremoveAll(java.util.Collection<?> collection)booleanretainAll(java.util.Collection<?> collection)voidsetPredecessor(ELEMENT element, ELEMENT predecessor)voidsetPredecessors(ELEMENT element, java.util.Collection<ELEMENT> predecessors)intsize()java.lang.Object[]toArray()<T> T[]toArray(T[] ts)protected java.util.Set<ELEMENT>toElements(java.util.Collection<java.lang.Integer> elementCollection)org.processmining.plugins.graphviz.dot.DottoGraphViz()protected java.util.Set<java.lang.Integer>toIndex(java.util.Collection<ELEMENT> elementCollection)java.lang.StringtoString()
-
-
-
Method Detail
-
putIfAbsent
protected int putIfAbsent(ELEMENT element)
-
putAllIfAbsent
protected java.util.Set<java.lang.Integer> putAllIfAbsent(java.util.Collection<ELEMENT> elementCollection)
-
setPredecessor
public void setPredecessor(ELEMENT element, ELEMENT predecessor) throws PartialOrderLoopNotAllowedException
- Specified by:
setPredecessorin interfacePartiallyOrderedSet<ELEMENT>- Throws:
PartialOrderLoopNotAllowedException
-
getLoopSequence
public java.util.List<ELEMENT> getLoopSequence(ELEMENT element, ELEMENT predecessor)
- Specified by:
getLoopSequencein interfacePartiallyOrderedSet<ELEMENT>
-
setPredecessors
public void setPredecessors(ELEMENT element, java.util.Collection<ELEMENT> predecessors) throws PartialOrderLoopNotAllowedException
- Specified by:
setPredecessorsin interfacePartiallyOrderedSet<ELEMENT>- Throws:
PartialOrderLoopNotAllowedException
-
getAlphabet
public java.util.Set<ELEMENT> getAlphabet()
- Specified by:
getAlphabetin interfaceAlphabetCollection<ELEMENT>- Specified by:
getAlphabetin interfacePartiallyOrderedSet<ELEMENT>
-
getElement
public ELEMENT getElement(int idx)
-
getIndex
public java.lang.Integer getIndex(ELEMENT element)
-
toIndex
protected java.util.Set<java.lang.Integer> toIndex(java.util.Collection<ELEMENT> elementCollection)
-
toElements
protected java.util.Set<ELEMENT> toElements(java.util.Collection<java.lang.Integer> elementCollection)
-
getAscendants
public java.util.Set<ELEMENT> getAscendants(ELEMENT element)
- Specified by:
getAscendantsin interfaceOrderedSet<ELEMENT>- Specified by:
getAscendantsin interfacePartiallyOrderedSet<ELEMENT>
-
getPredecessors
public java.util.Set<ELEMENT> getPredecessors(ELEMENT element)
- Specified by:
getPredecessorsin interfaceOrderedSet<ELEMENT>- Specified by:
getPredecessorsin interfacePartiallyOrderedSet<ELEMENT>
-
getEnabled
public java.util.Set<ELEMENT> getEnabled(java.util.Collection<ELEMENT> executed)
- Specified by:
getEnabledin interfaceOrderedSet<ELEMENT>- Specified by:
getEnabledin interfacePartiallyOrderedSet<ELEMENT>
-
isEnabled
protected boolean isEnabled(int idx, java.util.Set<java.lang.Integer> executedIdx)
-
isEnabled
public boolean isEnabled(ELEMENT element, java.util.Collection<ELEMENT> executed)
- Specified by:
isEnabledin interfaceOrderedSet<ELEMENT>
-
size
public int size()
- Specified by:
sizein interfacejava.util.Collection<ELEMENT>- Specified by:
sizein interfaceOrderedSet<ELEMENT>- Specified by:
sizein interfacejava.util.Set<ELEMENT>
-
isEmpty
public boolean isEmpty()
-
contains
public boolean contains(java.lang.Object o)
-
iterator
public java.util.Iterator<ELEMENT> iterator()
-
toArray
public java.lang.Object[] toArray()
-
toArray
public <T> T[] toArray(T[] ts)
-
add
public boolean add(ELEMENT element)
-
remove
public boolean remove(java.lang.Object o)
-
containsAll
public boolean containsAll(java.util.Collection<?> collection)
-
addAll
public boolean addAll(java.util.Collection<? extends ELEMENT> collection)
-
removeAll
public boolean removeAll(java.util.Collection<?> collection)
-
retainAll
public boolean retainAll(java.util.Collection<?> collection)
-
clear
public void clear()
-
getEntrySet
public java.util.Set<PartiallyOrderedSet.Entry<ELEMENT>> getEntrySet()
- Specified by:
getEntrySetin interfacePartiallyOrderedSet<ELEMENT>
-
toString
public java.lang.String toString()
- Specified by:
toStringin interfaceOrderedSet<ELEMENT>- Specified by:
toStringin interfacePartiallyOrderedSet<ELEMENT>- Overrides:
toStringin classjava.lang.Object
-
getNumberOfConnections
public int getNumberOfConnections()
- Specified by:
getNumberOfConnectionsin interfaceOrderedSet<ELEMENT>
-
toGraphViz
public org.processmining.plugins.graphviz.dot.Dot toGraphViz()
- Specified by:
toGraphVizin interfaceAlphabetCollection<ELEMENT>
-
-