Class PlanningVisitFactory

    • Method Detail

      • fromLocation

        public static PlanningVisit fromLocation​(PlanningLocation location,
                                                 int demand)
        Create visit of a location with the given demand.
        Parameters:
        location - visit's location
        demand - visit's demand
        Returns:
        visit with demand at the given location
      • testVisit

        public static PlanningVisit testVisit​(long id)
        Create a test visit with the given ID.
        Parameters:
        id - ID of the visit and its location
        Returns:
        visit with an ID only