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 voidcheckAddEdge(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())intcompareTo(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)voidgraphElementAdded(java.lang.Object element)voidgraphElementChanged(java.lang.Object element)voidgraphElementRemoved(java.lang.Object element)abstract voidremoveEdge(DirectedGraphEdge edge)Removes the given edge from the graph.protected voidremoveSurroundingEdges(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:
getGraphin 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:DirectedGraphRemoves the given edge from the graph.- Specified by:
removeEdgein 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:
getInEdgesin interfaceDirectedGraph<N extends DirectedGraphNode,E extends DirectedGraphEdge<? extends N,? extends N>>
-
getOutEdges
public java.util.Collection<E> getOutEdges(DirectedGraphNode node)
- Specified by:
getOutEdgesin interfaceDirectedGraph<N extends DirectedGraphNode,E extends DirectedGraphEdge<? extends N,? extends N>>
-
graphElementAdded
public void graphElementAdded(java.lang.Object element)
- Overrides:
graphElementAddedin classAbstractGraph
-
graphElementRemoved
public void graphElementRemoved(java.lang.Object element)
- Overrides:
graphElementRemovedin classAbstractGraph
-
graphElementChanged
public void graphElementChanged(java.lang.Object element)
- Overrides:
graphElementChangedin classAbstractGraph
-
compareTo
public int compareTo(DirectedGraph<N,E> o)
- Specified by:
compareToin interfacejava.lang.Comparable<N extends DirectedGraphNode>
-
-