Class AbstractInputData

    • Field Detail

      • graph

        private final Graph graph
    • Constructor Detail

      • AbstractInputData

        protected AbstractInputData​(Graph graph,
                                    ArcInspector arcInspector)
        Create a new AbstractInputData instance for the given graph, mode and filter.
        Parameters:
        graph - Graph for this input data.
        arcInspector - Arc inspector for this input data.
    • Method Detail

      • getGraph

        public Graph getGraph()
        Returns:
        Graph associated with this input.
      • getCost

        public double getCost​(Arc arc)
        Retrieve the cost associated with the given arc according to the underlying arc inspector.
        Parameters:
        arc - Arc for which cost should be retrieved.
        Returns:
        Cost for the given arc.
        See Also:
        ArcInspector
      • isAllowed

        public boolean isAllowed​(Arc arc)
        Check if the given arc is allowed for the filter corresponding to this input.
        Parameters:
        arc - Arc to check.
        Returns:
        true if the given arc is allowed.
        See Also:
        ArcInspector