Class CalcRoute


  • public class CalcRoute
    extends Object
    Calculated route. Including all necessary info to describe routes.
    • Constructor Detail

      • CalcRoute

        public CalcRoute​(NextHop nextHop,
                         Integer cost)
        Instantiates a new Calc route.
        Parameters:
        nextHop - the next hop
        cost - the cost
    • Method Detail

      • getNextHop

        public NextHop getNextHop()
        Gets next hop.
        Returns:
        the next hop
      • setNextHop

        public void setNextHop​(NextHop nextHop)
        Sets next hop.
        Parameters:
        nextHop - the next hop
      • getCost

        public Integer getCost()
        Gets cost.
        Returns:
        the cost
      • setCost

        public void setCost​(Integer cost)
        Sets cost.
        Parameters:
        cost - the cost
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object