Interface Link

    • Method Detail

      • setFromNode

        boolean setFromNode​(Node node)
        Sets this link's non-null upstream node.
        Parameters:
        node - the BasicNodeI to be set
        Returns:
        if node has been set and false otherwise
        Throws:
        IllegalArgumentException - if node is null
      • setToNode

        boolean setToNode​(Node node)
        Sets this link's non-null downstream node.
        Parameters:
        node - the BasicNodeI to be set
        Returns:
        true if node has been set and false otherwise
        Throws:
        IllegalArgumentException - if node is null
      • getToNode

        Node getToNode()
        Returns:
        this link's downstream node
      • getCapacity

        double getCapacity()
        This method returns the capacity as set in the xml defining the network. Be aware that this capacity is not normalized in time, it depends on the period set in the network file (the capperiod attribute).
        Returns:
        the capacity per network's capperiod timestep
        See Also:
        Network.getCapacityPeriod()
      • getCapacity

        double getCapacity​(double time)
        This method returns the capacity as set in the xml defining the network. Be aware that this capacity is not normalized in time, it depends on the period set in the network file (the capperiod attribute).
        Parameters:
        time - the time at which the capacity is requested. Use Double.NEGATIVE_INFINITY to get the default value.
        Returns:
        the capacity per network's capperiod timestep
        See Also:
        Network.getCapacityPeriod()
      • setLength

        void setLength​(double length)
      • getAllowedModes

        Set<StringgetAllowedModes()
        Returns:
        an immutable set containing all transport modes that are allowed on that link.