public class PlanningVisitFactory extends Object
PlanningVisit instances.| Modifier and Type | Field and Description |
|---|---|
(package private) static int |
DEFAULT_VISIT_DEMAND |
| Modifier and Type | Method and Description |
|---|---|
static PlanningVisit |
fromLocation(PlanningLocation location)
Create visit with
DEFAULT_VISIT_DEMAND. |
static PlanningVisit |
fromLocation(PlanningLocation location,
int demand)
Create visit of a location with the given demand.
|
static PlanningVisit |
testVisit(long id)
Create a test visit with the given ID.
|
static final int DEFAULT_VISIT_DEMAND
public static PlanningVisit fromLocation(PlanningLocation location)
DEFAULT_VISIT_DEMAND.location - visit's locationpublic static PlanningVisit fromLocation(PlanningLocation location, int demand)
location - visit's locationdemand - visit's demandpublic static PlanningVisit testVisit(long id)
id - ID of the visit and its locationCopyright © 2001–2020 JBoss by Red Hat. All rights reserved.