Interface Path

  • All Superinterfaces:
    Annotated, Link, NetworkResource, Projectable, Provided
    All Known Subinterfaces:
    DisjointPath
    All Known Implementing Classes:
    DefaultDisjointPath, DefaultPath

    public interface Path
    extends Link
    Representation of a contiguous directed path in a network. Path comprises of a sequence of links, where adjacent links must share the same device, meaning that destination of the source of one link must coincide with the destination of the previous link. Path weight (cost) is an aggregation of the weights of the links the path consists of.
    • Method Detail

      • links

        List<Link> links()
        Returns sequence of links comprising the path.
        Returns:
        list of links
      • cost

        @Deprecated
        double cost()
        Deprecated.
        in Junco (1.9.0), use weight() instead
        Returns the path cost as a unit-less value.
        Returns:
        unit-less path cost
      • weight

        Weight weight()
        Returns the path cost as an weight instance.
        Returns:
        weight path cost