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:
java.lang.Cloneable
,java.lang.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
Constructors Constructor Description AbstractDirectedGraph()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected void
checkAddEdge(N source, N target)
protected abstract java.util.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>
getEmptyClone()
AbstractDirectedGraph<?,?>
getGraph()
java.util.Collection<E>
getInEdges(DirectedGraphNode node)
java.util.Collection<E>
getOutEdges(DirectedGraphNode node)
void
graphElementAdded(java.lang.Object element)
void
graphElementChanged(java.lang.Object element)
void
graphElementRemoved(java.lang.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
-
-
-
-
Method Detail
-
getGraph
public AbstractDirectedGraph<?,?> getGraph()
- Specified by:
getGraph
in interfaceDirectedGraphElement
-
getEmptyClone
protected abstract AbstractDirectedGraph<N,E> getEmptyClone()
-
cloneFrom
protected abstract java.util.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
public abstract void removeEdge(DirectedGraphEdge edge)
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
protected void removeSurroundingEdges(N node)
-
getInEdges
public java.util.Collection<E> getInEdges(DirectedGraphNode node)
- Specified by:
getInEdges
in interfaceDirectedGraph<N extends DirectedGraphNode,E extends DirectedGraphEdge<? extends N,? extends N>>
-
getOutEdges
public java.util.Collection<E> getOutEdges(DirectedGraphNode node)
- Specified by:
getOutEdges
in interfaceDirectedGraph<N extends DirectedGraphNode,E extends DirectedGraphEdge<? extends N,? extends N>>
-
graphElementAdded
public void graphElementAdded(java.lang.Object element)
- Overrides:
graphElementAdded
in classAbstractGraph
-
graphElementRemoved
public void graphElementRemoved(java.lang.Object element)
- Overrides:
graphElementRemoved
in classAbstractGraph
-
graphElementChanged
public void graphElementChanged(java.lang.Object element)
- Overrides:
graphElementChanged
in classAbstractGraph
-
compareTo
public int compareTo(DirectedGraph<N,E> o)
- Specified by:
compareTo
in interfacejava.lang.Comparable<N extends DirectedGraphNode>
-
-