Package repast.simphony.space.graph
Class NetworkEvent<T>
- java.lang.Object
-
- repast.simphony.space.graph.NetworkEvent<T>
-
public class NetworkEvent<T> extends Object
Event fired when an edge is added or removed from a network.- Version:
- $Revision$ $Date$
- Author:
- Nick Collier
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
NetworkEvent.EventType
-
Constructor Summary
Constructors Constructor Description NetworkEvent(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
RepastEdge<T>
getEdge()
Gets the edge that this event applies to.Network<T>
getNetwork()
Gets the network that was the source of this event.NetworkEvent.EventType
getType()
Gets the type of this event.int
hashCode()
-
-
-
Constructor Detail
-
NetworkEvent
public NetworkEvent(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.- Parameters:
type
-network
-edge
-
-
-
Method Detail
-
getEdge
public RepastEdge<T> getEdge()
Gets the edge that this event applies to.- Returns:
- the edge that this event applies to.
-
getNetwork
public Network<T> getNetwork()
Gets the network that was the source of this event.- Returns:
- the network that was the source of this event.
-
getType
public NetworkEvent.EventType getType()
Gets the type of this event.- Returns:
- the type of this event.
-
-