Class AbstractDirectedGraph<N extends DirectedGraphNode,E extends DirectedGraphEdge<? extends N,? extends N>>
java.lang.Object
org.processmining.models.graphbased.AbstractGraphElement
org.processmining.models.graphbased.AbstractGraph
org.processmining.models.graphbased.directed.AbstractDirectedGraph<N,E>
- All Implemented Interfaces:
Cloneable
,Comparable<DirectedGraph<N,
,E>> AttributeMapOwner
,DirectedGraph<N,
,E> DirectedGraphElement
public abstract class AbstractDirectedGraph<N extends DirectedGraphNode,E extends DirectedGraphEdge<? extends N,? extends N>>
extends AbstractGraph
implements DirectedGraph<N,E>
-
Field Summary
Fields inherited from class org.processmining.models.graphbased.AbstractGraph
id
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
checkAddEdge
(N source, N target) protected abstract Map<? extends DirectedGraphElement,
? extends DirectedGraphElement> cloneFrom
(DirectedGraph<N, E> graph) The returned mapping satisfies: map.keySet().containsAll(graph.getNodes()) and map.keySet().containsAll(graph.getEdges())int
compareTo
(DirectedGraph<N, E> o) protected abstract AbstractDirectedGraph<N,
E> getGraph()
getInEdges
(DirectedGraphNode node) getOutEdges
(DirectedGraphNode node) void
graphElementAdded
(Object element) void
graphElementChanged
(Object element) void
graphElementRemoved
(Object element) abstract void
removeEdge
(DirectedGraphEdge edge) Removes the given edge from the graph.protected void
removeSurroundingEdges
(N node) Methods inherited from class org.processmining.models.graphbased.AbstractGraph
equals, getEdges, hashCode, removeFromEdges, removeNodeFromCollection
Methods inherited from class org.processmining.models.graphbased.AbstractGraphElement
getAttributeMap, getLabel, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.processmining.models.graphbased.AttributeMapOwner
getAttributeMap
Methods inherited from interface org.processmining.models.graphbased.directed.DirectedGraph
getEdges, getNodes, removeNode
Methods inherited from interface org.processmining.models.graphbased.directed.DirectedGraphElement
equals, getLabel, hashCode
-
Constructor Details
-
AbstractDirectedGraph
public AbstractDirectedGraph()
-
-
Method Details
-
getGraph
- Specified by:
getGraph
in interfaceDirectedGraphElement
-
getEmptyClone
-
cloneFrom
protected abstract Map<? extends DirectedGraphElement,? extends DirectedGraphElement> cloneFrom(DirectedGraph<N, E> graph) The returned mapping satisfies: map.keySet().containsAll(graph.getNodes()) and map.keySet().containsAll(graph.getEdges())- Parameters:
graph
-- Returns:
-
removeEdge
Description copied from interface:DirectedGraph
Removes the given edge from the graph.- Specified by:
removeEdge
in interfaceDirectedGraph<N extends DirectedGraphNode,
E extends DirectedGraphEdge<? extends N, ? extends N>>
-
removeSurroundingEdges
-
checkAddEdge
-
getInEdges
- Specified by:
getInEdges
in interfaceDirectedGraph<N extends DirectedGraphNode,
E extends DirectedGraphEdge<? extends N, ? extends N>>
-
getOutEdges
- Specified by:
getOutEdges
in interfaceDirectedGraph<N extends DirectedGraphNode,
E extends DirectedGraphEdge<? extends N, ? extends N>>
-
graphElementAdded
- Overrides:
graphElementAdded
in classAbstractGraph
-
graphElementRemoved
- Overrides:
graphElementRemoved
in classAbstractGraph
-
graphElementChanged
- Overrides:
graphElementChanged
in classAbstractGraph
-
compareTo
- Specified by:
compareTo
in interfaceComparable<N extends DirectedGraphNode>
-