Class AbstractGraph
- java.lang.Object
-
- org.processmining.models.graphbased.AbstractGraphElement
-
- org.processmining.models.graphbased.AbstractGraph
-
- All Implemented Interfaces:
AttributeMapOwner
- Direct Known Subclasses:
AbstractDirectedGraph,AbstractDirectedHypergraph,AbstractUndirectedGraph
public class AbstractGraph extends AbstractGraphElement
-
-
Constructor Summary
Constructors Constructor Description AbstractGraph()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)protected <T extends AbstractGraphEdge<?,?>>
java.util.Collection<T>getEdges(AbstractGraphNode source, AbstractGraphNode target, java.util.Collection<T> collection)Returns the edges from source to target, contained in the given collectionvoidgraphElementAdded(java.lang.Object element)voidgraphElementChanged(java.lang.Object element)voidgraphElementRemoved(java.lang.Object element)inthashCode()protected <T extends AbstractGraphEdge<?,?>>
TremoveFromEdges(AbstractGraphNode source, AbstractGraphNode target, java.util.Collection<T> collection)protected <T> TremoveNodeFromCollection(java.util.Collection<T> collection, T object)-
Methods inherited from class org.processmining.models.graphbased.AbstractGraphElement
getAttributeMap, getLabel, toString
-
-
-
-
Field Detail
-
id
protected final NodeID id
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
removeNodeFromCollection
protected <T> T removeNodeFromCollection(java.util.Collection<T> collection, T object)
-
getEdges
protected <T extends AbstractGraphEdge<?,?>> java.util.Collection<T> getEdges(AbstractGraphNode source, AbstractGraphNode target, java.util.Collection<T> collection)
Returns the edges from source to target, contained in the given collection- Type Parameters:
T- The type of edges- Parameters:
source- the source nodetarget- the target nodecollection- the collection of edges to search through- Returns:
-
removeFromEdges
protected <T extends AbstractGraphEdge<?,?>> T removeFromEdges(AbstractGraphNode source, AbstractGraphNode target, java.util.Collection<T> collection)
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
graphElementAdded
public void graphElementAdded(java.lang.Object element)
-
graphElementRemoved
public void graphElementRemoved(java.lang.Object element)
-
graphElementChanged
public void graphElementChanged(java.lang.Object element)
-
-