|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
resources are required to execute a schedule as returned by the optimization. A resource can be a vehicle, an employee or an abstract working unit. A resource has different attributes like timely availability, skills, capacity
| Method Summary | |
void |
addPermittedNodeType(java.lang.String nodeType)
|
boolean |
checkNodeTypePermission(java.lang.String nodeType)
check if the current resource is allowed visit a given nodeType |
double |
getAvgSpeed()
|
IDailyBreak |
getDailyBreak()
|
java.util.HashMap |
getDailyWorkingHours()
INTERNAL USE ONLY |
double |
getMaxDailyHours()
|
double |
getMaxDistance()
|
double |
getMaxHours()
|
double |
getMaxWeeklyHours()
|
java.lang.String[] |
getPermittedNodeTypes()
|
java.lang.String |
getResourceId()
|
double |
getTimeMatrixFactor()
|
void |
setAvgSpeed(double avgSpeed)
|
void |
setCost(double fixCost,
double perHourCost,
double perKilometerCost)
Define specific cost for each vehicle. |
void |
setDailyBreak(IDailyBreak dailyBreak)
Add a daily break to this resource. |
void |
setDailyWorkingHours(java.util.HashMap dailyWorkingHours)
INTERNAL USE ONLY |
void |
setMaxDailyHours(double maxDailyHours)
|
void |
setMaxDistance(double maxDistance)
|
void |
setMaxHours(double maxHours)
|
void |
setMaxWeeklyHours(double maxWeeklyHours)
|
void |
setResourceId(java.lang.String resourceId)
|
void |
setServiceTimePointer(java.util.HashMap serviceTimePointer)
INTERNAL USE ONLY |
void |
setTimeMatrixFactor(double timeFactor)
|
void |
setWorkingHours(IWorkingHours[] workingHours)
|
| Methods inherited from interface JOpt.SDK.IDistanceMatrixEntry |
getDistMatrixId, setDistMatrixId |
| Method Detail |
public void setResourceId(java.lang.String resourceId)
resourceId - set the resource's unique Idpublic java.lang.String getResourceId()
public void setMaxHours(double maxHours)
maxHours - the maximum hours [h] a route can takepublic double getMaxHours()
public void setMaxDistance(double maxDistance)
maxDistance - the maximum distance [km] a route can takepublic double getMaxDistance()
public void addPermittedNodeType(java.lang.String nodeType)
nodeType - (optional) one of a list of nodeTypes the resource is allowed to visit.public java.lang.String[] getPermittedNodeTypes()
public boolean checkNodeTypePermission(java.lang.String nodeType)
nodeType -
public void setAvgSpeed(double avgSpeed)
avgSpeed - the average speed of the resource in m/s (applies if no time matrix is provided)public double getAvgSpeed()
public void setTimeMatrixFactor(double timeFactor)
timeFactor - to affect the average driving times given in the timeMatrix.
If not set the time factor is set to 1.0 by default.
remark: Is in effect only in case a timeMatrix has been defined.public double getTimeMatrixFactor()
public void setCost(double fixCost,
double perHourCost,
double perKilometerCost)
fixCost - perHourCost - perKilometerCost - public void setMaxDailyHours(double maxDailyHours)
maxDailyHours - applies only in WEEKLY mode and defines when the resource will have to make a break until the next business daypublic double getMaxDailyHours()
public void setMaxWeeklyHours(double maxWeeklyHours)
maxWeeklyHours - applies only in WEEKLY mode and defines when the resource will have to make a break until the next business weekpublic double getMaxWeeklyHours()
public void setDailyWorkingHours(java.util.HashMap dailyWorkingHours)
public java.util.HashMap getDailyWorkingHours()
public void setWorkingHours(IWorkingHours[] workingHours)
public void setServiceTimePointer(java.util.HashMap serviceTimePointer)
public void setDailyBreak(IDailyBreak dailyBreak)
dailyBreak - public IDailyBreak getDailyBreak()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||