Class 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
    • 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.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object