Class AbstractBasicCapacityResource
- All Implemented Interfaces:
IOptimizationElement
,IBasicResource
,Serializable
,Comparable<IBasicResource>
- Direct Known Subclasses:
CapacityResource
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.dna.jopt.member.unit.IOptimizationElement
IOptimizationElement.OptimizationElementFlavour
-
Field Summary
Fields inherited from class com.dna.jopt.member.unit.AbstractOptimizationElement
dutyHours
-
Constructor Summary
ModifierConstructorDescriptionprotected
AbstractBasicCapacityResource
(String resourceId, double latitude, double longitude, double maxHours, double maxDistance, WorkingHours[] workingHours) Deprecated.protected
AbstractBasicCapacityResource
(String resourceId, double latitude, double longitude, double maxHours, double maxDistance, List<IDutyHours> workingHours) Deprecated.protected
AbstractBasicCapacityResource
(String resourceId, double latitude, double longitude, Duration maxTime, javax.measure.Quantity<javax.measure.quantity.Length> maxDistance, List<IWorkingHours> workingHours) protected
AbstractBasicCapacityResource
(String resourceId, com.dna.jopt.config.types.Position pos, Duration maxTime, javax.measure.Quantity<javax.measure.quantity.Length> maxDistance, List<IWorkingHours> workingHours) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addQualification
(IQualification qualification) Puts the input in theHashMap
qualifications
, whereas the class is the key and the qualification is the value.int
static IResource
copyWithNewId
(IResource src, String targetId) boolean
double
Gets the acceptable overdistance meter.double
Gets the acceptable overtime in seconds.javax.measure.Quantity<javax.measure.quantity.Speed>
Gets the average speed aIResource
is traveling with.double
Gets the avg speedavgSpeed
of which the default value is 22.0 m/s.int
Deprecated.double
Gets thelatitude
of an alternate destination (IBasicResource.setAlternateDestination(boolean)
) where theIResource
will stop working.double
Gets thelongitude
of an alternate destination (IBasicResource.setAlternateDestination(boolean)
) where theIResource
will stop working.com.dna.jopt.config.types.Position
double
Gets thefixCost
, the default value is 0.0.Gets the flavour which spells out the kind ofNode
of the element.double
Gets the max distancemaxGlobalDistanceKilometer
in [km] that a route can take per day.double
Gets the doublemaxGlobalHours
, the maximum hours a route [h] can take per day.javax.measure.Quantity<javax.measure.quantity.Length>
Gets the maximum time aIResource
is allowed to be on aILogicEntityRoute
without throwing aViolation
.double
GetsperHourCost
, the default value is 1.0.double
double
GetsperKilometerCost
, the default value is 1.0.Map<Class<? extends IQualification>,
IQualification> Getsqualifications
, whereas the class is the key and the qualification is the value.Deprecated.double
Deprecated.double
Gets the strict overdistance limit meter.double
Gets the strict overtime limit seconds.boolean
Gets thehasAlternateDestination
.int
hashCode()
boolean
Returnstrue
if the item has a real geo location.boolean
ChecksemptyAtEndOfRoute
.void
Resets theacceptableOvertimeSeconds
to the default value of-1.0
.void
setAcceptableOverdistance
(javax.measure.Quantity<javax.measure.quantity.Length> maxDistance) void
setAcceptableOvertime
(Duration acceptableOvertime) Sets theacceptable overtime
.void
setAcceptableOvertimeSeconds
(double seconds) Deprecated.void
setAlternateDestination
(boolean hasAlternateDestination) Sets thehasAlternateDestination
.void
setAvgSpeed
(double avgSpeed) Deprecated.void
setAvgSpeed
(javax.measure.Quantity<javax.measure.quantity.Speed> avgSpeed) Sets the average speed theIResource
is allowed to take.void
setCost
(double fixCost, double perHourCost, double perKilometerCost) Sets three cost factors of the resource.void
setDestinationDistMatrixId
(int distMatrixId) Deprecated.void
setDestinationLatitude
(double destinationLatitude) Sets thelatitude
of an alternate destination (IBasicResource.setAlternateDestination(boolean)
) where theIResource
will stop working.void
setDestinationLongitude
(double destinationLongitude) Sets thelongitude
of an alternate destination (IBasicResource.setAlternateDestination(boolean)
) where theIResource
will stop working.void
setDestinationPosition
(com.dna.jopt.config.types.Position destinationPosition) void
setFixCost
(double fixCost) SetsfixCost
, the default value is 0.0.boolean
setFlexTime
(Duration idleTimeReductionTime) Sets the flexTime in seconds.void
setMaxDistance
(double maxDistance) Deprecated.void
setMaxHours
(double maxHours) Deprecated.void
setMaxWorkingDistance
(javax.measure.Quantity<javax.measure.quantity.Length> maxDistance) Sets the maximal distance aIResource
is allowed to travel perWorkingHour
without throwing aIViolation
.void
setMaxWorkingTime
(Duration maxTime) void
setPerHourCost
(double perHourCost) Sets theperHourCost
, the default value is 1.0.void
setPerHourProductionCost
(double perHourProductionCost) void
setPerKilometerCost
(double perKilometerCost) Sets theperKilometerCost
, the default value is 1.0.void
setResourceId
(String id) Deprecated.void
setSkillEfficiencyFactor
(double skillEfficiencyFactor) Deprecated.void
setStrictOverdistanceLimit
(javax.measure.Quantity<javax.measure.quantity.Length> maxDistance) Sets the strict overdistance limit.void
setStrictOvertimeLimit
(Duration strictOvertimeLimit) Sets the strict overtime limit.void
setWorkingHours
(WorkingHours[] workingHours) Deprecated.toString()
Methods inherited from class com.dna.jopt.member.unit.AbstractOptimizationElement
forceSetId, getConstraintAliasId, getDistMatrixId, getDutyHours, getExtraInfo, getId, getLatitude, getLocationId, getLongitude, getNodeConnection, getNodeConnectionKeySet, getNodeConnections, getPosition, getPreferredHoursInteractionController, putNodeConnection, putNodeConnectionFromElement, removeNodeConnection, setConstraintAliasId, setDistMatrixId, setDutyHours, setExtraInfo, setId, setLatitude, setLocationId, setLongitude, setPosition
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.dna.jopt.member.unit.IOptimizationElement
forceSetId, getConstraintAliasId, getDistMatrixId, getDutyHours, getExtraInfo, getId, getLatitude, getLocationId, getLongitude, getNodeConnection, getNodeConnectionKeySet, getNodeConnections, getPosition, getPreferredHoursInteractionController, putNodeConnection, putNodeConnectionFromElement, removeNodeConnection, setConstraintAliasId, setDistMatrixId, setDutyHours, setExtraInfo, setId, setLatitude, setLocationId, setLongitude, setPosition
-
Constructor Details
-
AbstractBasicCapacityResource
protected AbstractBasicCapacityResource() -
AbstractBasicCapacityResource
protected AbstractBasicCapacityResource(String resourceId, double latitude, double longitude, Duration maxTime, javax.measure.Quantity<javax.measure.quantity.Length> maxDistance, List<IWorkingHours> workingHours) -
AbstractBasicCapacityResource
protected AbstractBasicCapacityResource(String resourceId, com.dna.jopt.config.types.Position pos, Duration maxTime, javax.measure.Quantity<javax.measure.quantity.Length> maxDistance, List<IWorkingHours> workingHours) -
AbstractBasicCapacityResource
@Deprecated protected AbstractBasicCapacityResource(String resourceId, double latitude, double longitude, double maxHours, double maxDistance, List<IDutyHours> workingHours) Deprecated. -
AbstractBasicCapacityResource
@Deprecated public AbstractBasicCapacityResource(String resourceId, double latitude, double longitude, double maxHours, double maxDistance, WorkingHours[] workingHours) Deprecated.- Parameters:
resourceId
- the resource idlatitude
- the latitudelongitude
- the longitudemaxHours
- the max hoursmaxDistance
- the max distanceworkingHours
- the working hours- Category:
- Legacy
LEGACY CONSTRUCTOR
Instantiates a new capacity resource.
PLEASE DO NOT USE THIS CONSTRUCTOR ANYMORE! IT WILL BE REMOVED IN FUTURE VERSIONS
-
-
Method Details
-
copyWithNewId
-
hashCode
public int hashCode()- Overrides:
hashCode
in classAbstractOptimizationElement
-
equals
- Overrides:
equals
in classAbstractOptimizationElement
-
setDestinationPosition
public void setDestinationPosition(com.dna.jopt.config.types.Position destinationPosition) - Specified by:
setDestinationPosition
in interfaceIBasicResource
-
getDestinationPosition
public com.dna.jopt.config.types.Position getDestinationPosition()- Specified by:
getDestinationPosition
in interfaceIBasicResource
-
setDestinationLatitude
public void setDestinationLatitude(double destinationLatitude) Description copied from interface:IBasicResource
Sets thelatitude
of an alternate destination (IBasicResource.setAlternateDestination(boolean)
) where theIResource
will stop working. TheResource
will have to travel back to its starting location outside of theIWorkingHours
since it will start working there and not at thealternate destination
.An application example would be a truck driver that has to park his truck in a garage outside of the city in the evening but has to start working withing the city the next morning. The drive from the garage in the evening and getting the truck from the garage to the starting location in the morning is not considered part of the
WorkingHours
.Implementation example:
CapacityResource jackTheTruckDriver = new CapacityResource( "Jack", 50.775346, 6.083887, maxWorkingTime, maxDistanceKmW, workingHours); // Defining the alternate destination where work will end rep1.setDestinationLatitude(51.45); rep1.setDestinationLongitude(7.01667); rep1.setAlternateDestination(true); rep1.setCost(0, 1, 1); this.addElement(jackTheTruckDriver);
- Specified by:
setDestinationLatitude
in interfaceIBasicResource
- Parameters:
destinationLatitude
- the double for the alternate destination latitude
-
getDestinationLatitude
public double getDestinationLatitude()Description copied from interface:IBasicResource
Gets thelatitude
of an alternate destination (IBasicResource.setAlternateDestination(boolean)
) where theIResource
will stop working. TheResource
will have to travel back to its starting location outside of theIWorkingHours
since it will start working there and not at thealternate destination
.An application example would be a truck driver that has to park his truck in a garage outside of the city in the evening but has to start working withing the city the next morning. The drive from the garage in the evening and getting the truck from the garage to the starting location in the morning is not considered part of the
WorkingHours
.- Specified by:
getDestinationLatitude
in interfaceIBasicResource
- Returns:
- the double for the alternate destination latitude
-
setDestinationLongitude
public void setDestinationLongitude(double destinationLongitude) Description copied from interface:IBasicResource
Sets thelongitude
of an alternate destination (IBasicResource.setAlternateDestination(boolean)
) where theIResource
will stop working. TheResource
will have to travel back to its starting location outside of theIWorkingHours
since it will start working there and not at thealternate destination
.An application example would be a truck driver that has to park his truck in a garage outside of the city in the evening but has to start working withing the city the next morning. The drive from the garage in the evening and getting the truck from the garage to the starting location in the morning is not considered part of the
WorkingHours
.Implementation example:
CapacityResource jackTheTruckDriver = new CapacityResource( "Jack", 50.775346, 6.083887, maxWorkingTime, maxDistanceKmW, workingHours); // Defining the alternate destination where work will end rep1.setDestinationLatitude(51.45); rep1.setDestinationLongitude(7.01667); rep1.setAlternateDestination(true); rep1.setCost(0, 1, 1); this.addElement(jackTheTruckDriver);
- Specified by:
setDestinationLongitude
in interfaceIBasicResource
- Parameters:
destinationLongitude
- the double for the alternate destination longitude
-
getDestinationLongitude
public double getDestinationLongitude()Description copied from interface:IBasicResource
Gets thelongitude
of an alternate destination (IBasicResource.setAlternateDestination(boolean)
) where theIResource
will stop working. TheResource
will have to travel back to its starting location outside of theIWorkingHours
since it will start working there and not at thealternate destination
.An application example would be a truck driver that has to park his truck in a garage outside of the city in the evening but has to start working withing the city the next morning. The drive from the garage in the evening and getting the truck from the garage to the starting location in the morning is not considered part of the
WorkingHours
.- Specified by:
getDestinationLongitude
in interfaceIBasicResource
- Returns:
- the double for the alternate destination longitude
-
setAlternateDestination
public void setAlternateDestination(boolean hasAlternateDestination) Description copied from interface:IBasicResource
Sets thehasAlternateDestination
. When set totrue
theIResource
has to stop working at thisalternate destination
. TheResource
will have to travel back to its starting location outside of theIWorkingHours
since it will start working there and not at thealternate destination
.An application example would be a truck driver that has to park his truck in a garage outside of the city in the evening but has to start working withing the city the next morning. The drive from the garage in the evening and getting the truck from the garage to the starting location in the morning is not considered part of the
WorkingHours
.Implementation example:
CapacityResource jackTheTruckDriver = new CapacityResource( "Jack", 50.775346, 6.083887, maxWorkingTime, maxDistanceKmW, workingHours); // Defining the alternate destination where work will end rep1.setDestinationLatitude(51.45); rep1.setDestinationLongitude(7.01667); rep1.setAlternateDestination(true); rep1.setCost(0, 1, 1); this.addElement(jackTheTruckDriver);
- Specified by:
setAlternateDestination
in interfaceIBasicResource
- Parameters:
hasAlternateDestination
- the boolean hasAlternateDestination to be set
-
hasAlternateDestination
public boolean hasAlternateDestination()Description copied from interface:IBasicResource
Gets thehasAlternateDestination
. When set totrue
theIResource
has to stop working at thisalternate destination
. TheResource
will have to travel back to its starting location outside of theIWorkingHours
since it will start working there and not at thealternate destination
.An application example would be a truck driver that has to park his truck in a garage outside of the city in the evening but has to start working withing the city the next morning. The drive from the garage in the evening and getting the truck from the garage to the starting location in the morning is not considered part of the
WorkingHours
.- Specified by:
hasAlternateDestination
in interfaceIBasicResource
- Returns:
- the boolean hasAlternateDestination
-
setMaxHours
Deprecated.Description copied from interface:IBasicResource
Deprecated methodSets the double
maxGlobalHours
, the maximum hours a route [h] can take per day.- Specified by:
setMaxHours
in interfaceIBasicResource
- Parameters:
maxHours
- the double maxGlobalHours to be set
-
setMaxWorkingTime
Description copied from interface:IBasicResource
- Specified by:
setMaxWorkingTime
in interfaceIBasicResource
- Parameters:
maxTime
- the duration max time
-
getMaxWorkingTime
Description copied from interface:IBasicResource
Gets the maximum time aIResource
is allowed to be on aILogicEntityRoute
without throwing aViolation
.- Specified by:
getMaxWorkingTime
in interfaceIBasicResource
- Returns:
- the duration of the maximum working time
-
getMaxHours
public double getMaxHours()Description copied from interface:IBasicResource
Gets the doublemaxGlobalHours
, the maximum hours a route [h] can take per day.- Specified by:
getMaxHours
in interfaceIBasicResource
- Returns:
- the double maxGlobalHours
-
setMaxDistance
Deprecated.Description copied from interface:IBasicResource
Sets the max distancemaxGlobalDistanceKilometer
in [km] that a route can take.- Specified by:
setMaxDistance
in interfaceIBasicResource
- Parameters:
maxDistance
- the double to be set for maxGlobalDistanceKilometer
-
setMaxWorkingDistance
public void setMaxWorkingDistance(javax.measure.Quantity<javax.measure.quantity.Length> maxDistance) Description copied from interface:IBasicResource
Sets the maximal distance aIResource
is allowed to travel perWorkingHour
without throwing aIViolation
.- Specified by:
setMaxWorkingDistance
in interfaceIBasicResource
- Parameters:
maxDistance
- the quantity length of the allowed max distance
-
getMaxWorkingDistance
public javax.measure.Quantity<javax.measure.quantity.Length> getMaxWorkingDistance()Description copied from interface:IBasicResource
- Specified by:
getMaxWorkingDistance
in interfaceIBasicResource
- Returns:
- the quantity Length maximum distance
-
getMaxDistance
public double getMaxDistance()Description copied from interface:IBasicResource
Gets the max distancemaxGlobalDistanceKilometer
in [km] that a route can take per day.- Specified by:
getMaxDistance
in interfaceIBasicResource
- Returns:
- the double maxGlobalDistanceKilometer [km] a route can take
-
setAvgSpeed
public void setAvgSpeed(javax.measure.Quantity<javax.measure.quantity.Speed> avgSpeed) Description copied from interface:IBasicResource
Sets the average speed theIResource
is allowed to take.- Specified by:
setAvgSpeed
in interfaceIBasicResource
- Parameters:
avgSpeed
- the quantity speed average speed
-
getAverageSpeed
public javax.measure.Quantity<javax.measure.quantity.Speed> getAverageSpeed()Description copied from interface:IBasicResource
Gets the average speed aIResource
is traveling with.- Specified by:
getAverageSpeed
in interfaceIBasicResource
- Returns:
- the average speed
-
setAvgSpeed
Deprecated.Description copied from interface:IBasicResource
Sets the avg speedavgSpeed
, the default value is 22.0 m/s.- Specified by:
setAvgSpeed
in interfaceIBasicResource
- Parameters:
avgSpeed
- the double average speed of the resource in m/s (applies if no time matrix is provided)
-
getAvgSpeed
public double getAvgSpeed()Description copied from interface:IBasicResource
Gets the avg speedavgSpeed
of which the default value is 22.0 m/s.- Specified by:
getAvgSpeed
in interfaceIBasicResource
- Returns:
- the double average speed of the resource in m/s (applies if no time matrix is provided)
-
setCost
public void setCost(double fixCost, double perHourCost, double perKilometerCost) Description copied from interface:IBasicResource
Sets three cost factors of the resource.The default values are:
fixCost
: 0.0perHourCost
: 1.0perKilometerCost
: 1.0- Specified by:
setCost
in interfaceIBasicResource
- Parameters:
fixCost
- the double for the fixCostperHourCost
- the double cost per hourperKilometerCost
- the double cost per kilometer
-
setFixCost
public void setFixCost(double fixCost) Description copied from interface:IBasicResource
SetsfixCost
, the default value is 0.0.- Specified by:
setFixCost
in interfaceIBasicResource
- Parameters:
fixCost
- the double fixCost
-
getFixCost
public double getFixCost()Description copied from interface:IBasicResource
Gets thefixCost
, the default value is 0.0.- Specified by:
getFixCost
in interfaceIBasicResource
- Returns:
- the double fixCost
-
setPerHourCost
public void setPerHourCost(double perHourCost) Description copied from interface:IBasicResource
Sets theperHourCost
, the default value is 1.0.- Specified by:
setPerHourCost
in interfaceIBasicResource
- Parameters:
perHourCost
- the double perHourCost
-
getPerHourCost
public double getPerHourCost()Description copied from interface:IBasicResource
GetsperHourCost
, the default value is 1.0.- Specified by:
getPerHourCost
in interfaceIBasicResource
- Returns:
- the double perHourCost
-
setPerHourProductionCost
public void setPerHourProductionCost(double perHourProductionCost) - Specified by:
setPerHourProductionCost
in interfaceIBasicResource
-
getPerHourProductionCost
public double getPerHourProductionCost()- Specified by:
getPerHourProductionCost
in interfaceIBasicResource
-
setPerKilometerCost
public void setPerKilometerCost(double perKilometerCost) Description copied from interface:IBasicResource
Sets theperKilometerCost
, the default value is 1.0.- Specified by:
setPerKilometerCost
in interfaceIBasicResource
- Parameters:
perKilometerCost
- the double perKilometerCost
-
getPerKilometerCost
public double getPerKilometerCost()Description copied from interface:IBasicResource
GetsperKilometerCost
, the default value is 1.0.- Specified by:
getPerKilometerCost
in interfaceIBasicResource
- Returns:
- the double perKilometerCost
-
hasRealGeoLocation
public boolean hasRealGeoLocation()Description copied from interface:IOptimizationElement
Returnstrue
if the item has a real geo location. For example, anEventNode
has no real geo location.- Specified by:
hasRealGeoLocation
in interfaceIOptimizationElement
- Returns:
- true, if real geo location exists
-
isEmptyAtEndOfRoute
public boolean isEmptyAtEndOfRoute()Description copied from interface:IBasicResource
ChecksemptyAtEndOfRoute
.- Specified by:
isEmptyAtEndOfRoute
in interfaceIBasicResource
- Returns:
- the boolean emptyAtEndOfRoute
-
addQualification
Description copied from interface:IBasicResource
Puts the input in theHashMap
qualifications
, whereas the class is the key and the qualification is the value.A
Qualification
is a specific skill aResource
needs to have to give service to aNode
that has aConstraint
for thatQualification
. Giving service to such aNode
by aResource
without thatQualification
will result in additional costs.Cannot be null.
- Specified by:
addQualification
in interfaceIBasicResource
- Parameters:
qualification
- the iQualification qualification- See Also:
-
getQualifications
Description copied from interface:IBasicResource
Getsqualifications
, whereas the class is the key and the qualification is the value.A
Qualification
is a specific skill aResource
needs to have to give service to aNode
that has aConstraint
for thatQualification
. Giving service to such aNode
by aResource
without thatQualification
will result in additional costs.* Cannot be null.
- Specified by:
getQualifications
in interfaceIBasicResource
- Returns:
- the hashmap qualifications
- See Also:
-
compareTo
- Specified by:
compareTo
in interfaceComparable<IBasicResource>
-
getSkillEfficiencyFactor
Deprecated.- Specified by:
getSkillEfficiencyFactor
in interfaceIBasicResource
- Returns:
- the double skill efficiency factor
-
setSkillEfficiencyFactor
Deprecated.- Specified by:
setSkillEfficiencyFactor
in interfaceIBasicResource
- Parameters:
skillEfficiencyFactor
- the double for the resource's efficiency factor
-
toString
- Overrides:
toString
in classAbstractOptimizationElement
-
getFlavour
Description copied from interface:IOptimizationElement
Gets the flavour which spells out the kind ofNode
of the element.- Specified by:
getFlavour
in interfaceIOptimizationElement
- Returns:
- the flavour
-
setAcceptableOvertimeSeconds
Deprecated.Description copied from interface:IBasicResource
Deprecated methodSets the acceptable overtime in seconds. This does not necessarily mean that this is the maximal overtime. This is just an acceptable overtime that does not increase the total cost much. The default value is -1.
- Specified by:
setAcceptableOvertimeSeconds
in interfaceIBasicResource
- Parameters:
seconds
- the double for new acceptable overtime seconds
-
setAcceptableOvertime
Description copied from interface:IBasicResource
Sets theacceptable overtime
. When aResource
arrives inacceptable overtime
aViolation
will be thrown but theNode
will not be filtered by alate Autofilter
. Withinacceptable overtime
thecosts
are rising linearly, while outside ofovertime
they will rise exponentially.Arrival of the
Resource
within theacceptable overtime
will not increase the total cost much.- Specified by:
setAcceptableOvertime
in interfaceIBasicResource
- Parameters:
acceptableOvertime
- theDuration
of acceptable overtime
-
resetAcceptableOvertime
public void resetAcceptableOvertime()Description copied from interface:IBasicResource
Resets theacceptableOvertimeSeconds
to the default value of-1.0
.- Specified by:
resetAcceptableOvertime
in interfaceIBasicResource
-
getAcceptableOvertimeSeconds
public double getAcceptableOvertimeSeconds()Description copied from interface:IBasicResource
Gets the acceptable overtime in seconds. This is just an acceptable overtime that does not increase the total cost much. When aResource
arrives inacceptable overtime
aViolation
will be thrown but theNode
will not be filtered by alate Autofilter
. Withinacceptable overtime
thecosts
are rising linearly, while outside ofovertime
they will rise exponentially.- Specified by:
getAcceptableOvertimeSeconds
in interfaceIBasicResource
- Returns:
- the double acceptableOvertimeSeconds
- See Also:
-
setStrictOvertimeLimit
Description copied from interface:IBasicResource
Sets the strict overtime limit. This value does only have an effect if the AutoFilter with ForceFiltering is used.- Specified by:
setStrictOvertimeLimit
in interfaceIBasicResource
- Parameters:
strictOvertimeLimit
- the new strict overtime limit
-
getStrictOvertimeLimitSeconds
public double getStrictOvertimeLimitSeconds()Description copied from interface:IBasicResource
Gets the strict overtime limit seconds.- Specified by:
getStrictOvertimeLimitSeconds
in interfaceIBasicResource
- Returns:
- the strict overtime limit seconds
-
setAcceptableOverdistance
public void setAcceptableOverdistance(javax.measure.Quantity<javax.measure.quantity.Length> maxDistance) - Specified by:
setAcceptableOverdistance
in interfaceIBasicResource
-
getAcceptableOverdistanceMeter
public double getAcceptableOverdistanceMeter()Description copied from interface:IBasicResource
Gets the acceptable overdistance meter.- Specified by:
getAcceptableOverdistanceMeter
in interfaceIBasicResource
- Returns:
- the acceptable overdistance meter
-
setStrictOverdistanceLimit
public void setStrictOverdistanceLimit(javax.measure.Quantity<javax.measure.quantity.Length> maxDistance) Description copied from interface:IBasicResource
Sets the strict overdistance limit.- Specified by:
setStrictOverdistanceLimit
in interfaceIBasicResource
- Parameters:
maxDistance
- the new strict overdistance limit
-
getStrictOverdistanceLimitMeter
public double getStrictOverdistanceLimitMeter()Description copied from interface:IBasicResource
Gets the strict overdistance limit meter.- Specified by:
getStrictOverdistanceLimitMeter
in interfaceIBasicResource
- Returns:
- the strict overdistance limit meter
-
setFlexTime
Description copied from interface:IBasicResource
Sets the flexTime in seconds. The default is 0.- Specified by:
setFlexTime
in interfaceIBasicResource
- Parameters:
idleTimeReductionTime
- the duration of the flexTimeSeconds to be set- Returns:
- true, if successful
-
getFlexTimeMillis
- Specified by:
getFlexTimeMillis
in interfaceIBasicResource
-
getResourceId
Deprecated.- Returns:
- the resource id
- Category:
- Legacy
Gets the resource id. Use getId() instead
-
setResourceId
Deprecated.- Parameters:
id
- the new resource id- Category:
- Legacy
Sets the resource id. Use setId(String id) instead
-
setDestinationDistMatrixId
Deprecated.- Parameters:
distMatrixId
- the new destination dist matrix id- Category:
- Legacy
Sets the destination dist matrix id.
-
getDestinationDistMatrixId
Deprecated.Description copied from interface:IBasicResource
Deprecated method Gets thedistMatrixId
, the default value is -1.- Specified by:
getDestinationDistMatrixId
in interfaceIBasicResource
- Returns:
- the destination dist matrix id
- Category:
- Legacy
Gets the destination dist matrix id.
-
setWorkingHours
Deprecated.- Parameters:
workingHours
- the new working hours- Category:
- Legacy
Sets the working hours.
-