MatrixSearchContext.java

  1. /*  This file is part of Openrouteservice.
  2.  *
  3.  *  Openrouteservice is free software; you can redistribute it and/or modify it under the terms of the
  4.  *  GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1
  5.  *  of the License, or (at your option) any later version.

  6.  *  This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
  7.  *  without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  8.  *  See the GNU Lesser General Public License for more details.

  9.  *  You should have received a copy of the GNU Lesser General Public License along with this library;
  10.  *  if not, see <https://www.gnu.org/licenses/>.
  11.  */
  12. package org.heigit.ors.matrix;

  13. import com.graphhopper.storage.Graph;
  14. import com.graphhopper.storage.RoutingCHGraph;

  15. public class MatrixSearchContext {
  16.     private final Graph graph;
  17.     private final RoutingCHGraph routingCHGraph;
  18.     private final MatrixLocations sources;
  19.     private final MatrixLocations destinations;

  20.     public MatrixSearchContext(Graph graph, RoutingCHGraph routingCHGraph, MatrixLocations sources, MatrixLocations destinations) {
  21.         this.graph = graph;
  22.         this.routingCHGraph = routingCHGraph;
  23.         this.sources = sources;
  24.         this.destinations = destinations;
  25.     }

  26.     public Graph getGraph() {
  27.         return graph;
  28.     }

  29.     public RoutingCHGraph getRoutingCHGraph() {
  30.         return routingCHGraph;
  31.     }

  32.     public MatrixLocations getSources() {
  33.         return sources;
  34.     }

  35.     public MatrixLocations getDestinations() {
  36.         return destinations;
  37.     }
  38. }