Class NextHop


  • public class NextHop
    extends Object
    Wrapper class for RouterImpl and network. Representing next hop in the network topology.
    • Constructor Detail

      • NextHop

        public NextHop​(Router router,
                       Integer network)
        Instantiates a new Next hop.
        Parameters:
        router - the router
        network - the network
    • Method Detail

      • getRouter

        public Router getRouter()
        Gets router.
        Returns:
        the router
      • setRouter

        public void setRouter​(Router router)
        Sets router.
        Parameters:
        router - the router
      • getNetwork

        public Integer getNetwork()
        Gets network.
        Returns:
        the network
      • setNetwork

        public void setNetwork​(Integer network)
        Sets network.
        Parameters:
        network - the network
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object