Package repast.simphony.space.graph
Class DirectedJungNetwork<T>
java.lang.Object
repast.simphony.space.projection.DefaultProjection<T>
repast.simphony.space.graph.JungNetwork<T>
repast.simphony.space.graph.DirectedJungNetwork<T>
- All Implemented Interfaces:
Network<T>
,Projection<T>
-
Field Summary
Fields inherited from class repast.simphony.space.graph.JungNetwork
creator, graph
Fields inherited from class repast.simphony.space.projection.DefaultProjection
listeners, name
-
Constructor Summary
ConstructorDescriptionDirectedJungNetwork
(String name) DirectedJungNetwork
(String name, EdgeCreator<? extends RepastEdge<T>, T> creator) -
Method Summary
Modifier and TypeMethodDescriptionaddEdge
(RepastEdge<T> edge) Adds the specified edge to this Network.Adds an edge between the specified objects.boolean
Methods inherited from class repast.simphony.space.graph.JungNetwork
addEdge, addEdge, addVertex, containsEdge, evaluate, getAdjacent, getDegree, getDegree, getEdge, getEdgeCreator, getEdges, getEdges, getGraph, getInDegree, getInEdges, getNodes, getOutDegree, getOutEdges, getPredecessors, getRandomAdjacent, getRandomPredecessor, getRandomSuccessor, getSuccessors, isAdjacent, isPredecessor, isSuccessor, numEdges, removeEdge, removeEdges, removeVertex, setGraph, size
Methods inherited from class repast.simphony.space.projection.DefaultProjection
addProjectionListener, fireProjectionEvent, getName, getProjectionListeners, removeProjectionListener
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface repast.simphony.space.projection.Projection
addProjectionListener, getName, getProjectionListeners, removeProjectionListener
-
Constructor Details
-
DirectedJungNetwork
-
DirectedJungNetwork
-
-
Method Details
-
addEdge
Description copied from interface:Network
Adds the specified edge to this Network. This will change the directionality of the edge to met that of the network. -
addEdge
Description copied from interface:Network
Adds an edge between the specified objects.- Parameters:
source
- the source objecttarget
- the target objectweight
- weight of the new edge- Returns:
- the created edge.
-
isDirected
public boolean isDirected()- Returns:
- true if this Network is directed, otherwise false.
-