Package repast.simphony.space.graph
Class NetworkEvent<T>
java.lang.Object
repast.simphony.space.graph.NetworkEvent<T>
Event fired when an edge is added or removed from a network.
- Version:
- $Revision$ $Date$
- Author:
- Nick Collier
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionNetworkEvent
(NetworkEvent.EventType type, Network<T> network, RepastEdge<T> edge) Creates a NetworkEvent from the specified type, with the specified network as the source, and the specified edge. -
Method Summary
-
Constructor Details
-
NetworkEvent
Creates a NetworkEvent from the specified type, with the specified network as the source, and the specified edge.- Parameters:
type
-network
-edge
-
-
-
Method Details
-
getEdge
Gets the edge that this event applies to.- Returns:
- the edge that this event applies to.
-
getNetwork
Gets the network that was the source of this event.- Returns:
- the network that was the source of this event.
-
getType
Gets the type of this event.- Returns:
- the type of this event.
-
hashCode
public int hashCode() -
equals
-