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
ConstructorsModifierConstructorDescriptionprotectedAbstractBasicCapacityResource(String resourceId, double latitude, double longitude, double maxHours, double maxDistance, WorkingHours[] workingHours) Deprecated.protectedAbstractBasicCapacityResource(String resourceId, double latitude, double longitude, double maxHours, double maxDistance, List<IDutyHours> workingHours) Deprecated.protectedAbstractBasicCapacityResource(String resourceId, double latitude, double longitude, Duration maxTime, javax.measure.Quantity<javax.measure.quantity.Length> maxDistance, List<IWorkingHours> workingHours) protectedAbstractBasicCapacityResource(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 TypeMethodDescriptionvoidaddQualification(IQualification qualification) Puts the input in theHashMapqualifications, whereas the class is the key and the qualification is the value.intstatic IResourcecopyWithNewId(IResource src, String targetId) booleandoubleGets the acceptable overdistance meter.doubleGets the acceptable overtime in seconds.javax.measure.Quantity<javax.measure.quantity.Speed>Gets the average speed aIResourceis traveling with.doubleGets the avg speedavgSpeedof which the default value is 22.0 m/s.intDeprecated.doubleGets thelatitudeof an alternate destination (IBasicResource.setAlternateDestination(boolean)) where theIResourcewill stop working.doubleGets thelongitudeof an alternate destination (IBasicResource.setAlternateDestination(boolean)) where theIResourcewill stop working.com.dna.jopt.config.types.PositiondoubleGets thefixCost, the default value is 0.0.Gets the flavour which spells out the kind ofNodeof the element.doubleGets the max distancemaxGlobalDistanceKilometerin [km] that a route can take per day.doubleGets the doublemaxGlobalHours, the maximum hours a route [h] can take per day.javax.measure.Quantity<javax.measure.quantity.Length>Gets the maximum time aIResourceis allowed to be on aILogicEntityRoutewithout throwing aViolation.doubleGetsperHourCost, the default value is 1.0.doubledoubleGetsperKilometerCost, 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.doubleDeprecated.doubleGets the strict overdistance limit meter.doubleGets the strict overtime limit seconds.booleanGets thehasAlternateDestination.inthashCode()booleanReturnstrueif the item has a real geo location.booleanChecksemptyAtEndOfRoute.voidResets theacceptableOvertimeSecondsto the default value of-1.0.voidsetAcceptableOverdistance(javax.measure.Quantity<javax.measure.quantity.Length> maxDistance) voidsetAcceptableOvertime(Duration acceptableOvertime) Sets theacceptable overtime.voidsetAcceptableOvertimeSeconds(double seconds) Deprecated.voidsetAlternateDestination(boolean hasAlternateDestination) Sets thehasAlternateDestination.voidsetAvgSpeed(double avgSpeed) Deprecated.voidsetAvgSpeed(javax.measure.Quantity<javax.measure.quantity.Speed> avgSpeed) Sets the average speed theIResourceis allowed to take.voidsetCost(double fixCost, double perHourCost, double perKilometerCost) Sets three cost factors of the resource.voidsetDestinationDistMatrixId(int distMatrixId) Deprecated.voidsetDestinationLatitude(double destinationLatitude) Sets thelatitudeof an alternate destination (IBasicResource.setAlternateDestination(boolean)) where theIResourcewill stop working.voidsetDestinationLongitude(double destinationLongitude) Sets thelongitudeof an alternate destination (IBasicResource.setAlternateDestination(boolean)) where theIResourcewill stop working.voidsetDestinationPosition(com.dna.jopt.config.types.Position destinationPosition) voidsetFixCost(double fixCost) SetsfixCost, the default value is 0.0.booleansetFlexTime(Duration idleTimeReductionTime) Sets the flexTime in seconds.voidsetMaxDistance(double maxDistance) Deprecated.voidsetMaxHours(double maxHours) Deprecated.voidsetMaxWorkingDistance(javax.measure.Quantity<javax.measure.quantity.Length> maxDistance) Sets the maximal distance aIResourceis allowed to travel perWorkingHourwithout throwing aIViolation.voidsetMaxWorkingTime(Duration maxTime) voidsetPerHourCost(double perHourCost) Sets theperHourCost, the default value is 1.0.voidsetPerHourProductionCost(double perHourProductionCost) voidsetPerKilometerCost(double perKilometerCost) Sets theperKilometerCost, the default value is 1.0.voidsetResourceId(String id) Deprecated.voidsetSkillEfficiencyFactor(double skillEfficiencyFactor) Deprecated.voidsetStrictOverdistanceLimit(javax.measure.Quantity<javax.measure.quantity.Length> maxDistance) Sets the strict overdistance limit.voidsetStrictOvertimeLimit(Duration strictOvertimeLimit) Sets the strict overtime limit.voidsetWorkingHours(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, setPositionMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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:
hashCodein classAbstractOptimizationElement
-
equals
- Overrides:
equalsin classAbstractOptimizationElement
-
setDestinationPosition
public void setDestinationPosition(com.dna.jopt.config.types.Position destinationPosition) - Specified by:
setDestinationPositionin interfaceIBasicResource
-
getDestinationPosition
public com.dna.jopt.config.types.Position getDestinationPosition()- Specified by:
getDestinationPositionin interfaceIBasicResource
-
setDestinationLatitude
public void setDestinationLatitude(double destinationLatitude) Description copied from interface:IBasicResourceSets thelatitudeof an alternate destination (IBasicResource.setAlternateDestination(boolean)) where theIResourcewill stop working. TheResourcewill have to travel back to its starting location outside of theIWorkingHourssince 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:
setDestinationLatitudein interfaceIBasicResource- Parameters:
destinationLatitude- the double for the alternate destination latitude
-
getDestinationLatitude
public double getDestinationLatitude()Description copied from interface:IBasicResourceGets thelatitudeof an alternate destination (IBasicResource.setAlternateDestination(boolean)) where theIResourcewill stop working. TheResourcewill have to travel back to its starting location outside of theIWorkingHourssince 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:
getDestinationLatitudein interfaceIBasicResource- Returns:
- the double for the alternate destination latitude
-
setDestinationLongitude
public void setDestinationLongitude(double destinationLongitude) Description copied from interface:IBasicResourceSets thelongitudeof an alternate destination (IBasicResource.setAlternateDestination(boolean)) where theIResourcewill stop working. TheResourcewill have to travel back to its starting location outside of theIWorkingHourssince 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:
setDestinationLongitudein interfaceIBasicResource- Parameters:
destinationLongitude- the double for the alternate destination longitude
-
getDestinationLongitude
public double getDestinationLongitude()Description copied from interface:IBasicResourceGets thelongitudeof an alternate destination (IBasicResource.setAlternateDestination(boolean)) where theIResourcewill stop working. TheResourcewill have to travel back to its starting location outside of theIWorkingHourssince 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:
getDestinationLongitudein interfaceIBasicResource- Returns:
- the double for the alternate destination longitude
-
setAlternateDestination
public void setAlternateDestination(boolean hasAlternateDestination) Description copied from interface:IBasicResourceSets thehasAlternateDestination. When set totruetheIResourcehas to stop working at thisalternate destination. TheResourcewill have to travel back to its starting location outside of theIWorkingHourssince 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:
setAlternateDestinationin interfaceIBasicResource- Parameters:
hasAlternateDestination- the boolean hasAlternateDestination to be set
-
hasAlternateDestination
public boolean hasAlternateDestination()Description copied from interface:IBasicResourceGets thehasAlternateDestination. When set totruetheIResourcehas to stop working at thisalternate destination. TheResourcewill have to travel back to its starting location outside of theIWorkingHourssince 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:
hasAlternateDestinationin interfaceIBasicResource- Returns:
- the boolean hasAlternateDestination
-
setMaxHours
Deprecated.Description copied from interface:IBasicResourceDeprecated methodSets the double
maxGlobalHours, the maximum hours a route [h] can take per day.- Specified by:
setMaxHoursin interfaceIBasicResource- Parameters:
maxHours- the double maxGlobalHours to be set
-
setMaxWorkingTime
Description copied from interface:IBasicResource- Specified by:
setMaxWorkingTimein interfaceIBasicResource- Parameters:
maxTime- the duration max time
-
getMaxWorkingTime
Description copied from interface:IBasicResourceGets the maximum time aIResourceis allowed to be on aILogicEntityRoutewithout throwing aViolation.- Specified by:
getMaxWorkingTimein interfaceIBasicResource- Returns:
- the duration of the maximum working time
-
getMaxHours
public double getMaxHours()Description copied from interface:IBasicResourceGets the doublemaxGlobalHours, the maximum hours a route [h] can take per day.- Specified by:
getMaxHoursin interfaceIBasicResource- Returns:
- the double maxGlobalHours
-
setMaxDistance
Deprecated.Description copied from interface:IBasicResourceSets the max distancemaxGlobalDistanceKilometerin [km] that a route can take.- Specified by:
setMaxDistancein 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:IBasicResourceSets the maximal distance aIResourceis allowed to travel perWorkingHourwithout throwing aIViolation.- Specified by:
setMaxWorkingDistancein 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:
getMaxWorkingDistancein interfaceIBasicResource- Returns:
- the quantity Length maximum distance
-
getMaxDistance
public double getMaxDistance()Description copied from interface:IBasicResourceGets the max distancemaxGlobalDistanceKilometerin [km] that a route can take per day.- Specified by:
getMaxDistancein 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:IBasicResourceSets the average speed theIResourceis allowed to take.- Specified by:
setAvgSpeedin interfaceIBasicResource- Parameters:
avgSpeed- the quantity speed average speed
-
getAverageSpeed
public javax.measure.Quantity<javax.measure.quantity.Speed> getAverageSpeed()Description copied from interface:IBasicResourceGets the average speed aIResourceis traveling with.- Specified by:
getAverageSpeedin interfaceIBasicResource- Returns:
- the average speed
-
setAvgSpeed
Deprecated.Description copied from interface:IBasicResourceSets the avg speedavgSpeed, the default value is 22.0 m/s.- Specified by:
setAvgSpeedin 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:IBasicResourceGets the avg speedavgSpeedof which the default value is 22.0 m/s.- Specified by:
getAvgSpeedin 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:IBasicResourceSets three cost factors of the resource.The default values are:
fixCost: 0.0perHourCost: 1.0perKilometerCost: 1.0- Specified by:
setCostin 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:IBasicResourceSetsfixCost, the default value is 0.0.- Specified by:
setFixCostin interfaceIBasicResource- Parameters:
fixCost- the double fixCost
-
getFixCost
public double getFixCost()Description copied from interface:IBasicResourceGets thefixCost, the default value is 0.0.- Specified by:
getFixCostin interfaceIBasicResource- Returns:
- the double fixCost
-
setPerHourCost
public void setPerHourCost(double perHourCost) Description copied from interface:IBasicResourceSets theperHourCost, the default value is 1.0.- Specified by:
setPerHourCostin interfaceIBasicResource- Parameters:
perHourCost- the double perHourCost
-
getPerHourCost
public double getPerHourCost()Description copied from interface:IBasicResourceGetsperHourCost, the default value is 1.0.- Specified by:
getPerHourCostin interfaceIBasicResource- Returns:
- the double perHourCost
-
setPerHourProductionCost
public void setPerHourProductionCost(double perHourProductionCost) - Specified by:
setPerHourProductionCostin interfaceIBasicResource
-
getPerHourProductionCost
public double getPerHourProductionCost()- Specified by:
getPerHourProductionCostin interfaceIBasicResource
-
setPerKilometerCost
public void setPerKilometerCost(double perKilometerCost) Description copied from interface:IBasicResourceSets theperKilometerCost, the default value is 1.0.- Specified by:
setPerKilometerCostin interfaceIBasicResource- Parameters:
perKilometerCost- the double perKilometerCost
-
getPerKilometerCost
public double getPerKilometerCost()Description copied from interface:IBasicResourceGetsperKilometerCost, the default value is 1.0.- Specified by:
getPerKilometerCostin interfaceIBasicResource- Returns:
- the double perKilometerCost
-
hasRealGeoLocation
public boolean hasRealGeoLocation()Description copied from interface:IOptimizationElementReturnstrueif the item has a real geo location. For example, anEventNodehas no real geo location.- Specified by:
hasRealGeoLocationin interfaceIOptimizationElement- Returns:
- true, if real geo location exists
-
isEmptyAtEndOfRoute
public boolean isEmptyAtEndOfRoute()Description copied from interface:IBasicResourceChecksemptyAtEndOfRoute.- Specified by:
isEmptyAtEndOfRoutein interfaceIBasicResource- Returns:
- the boolean emptyAtEndOfRoute
-
addQualification
Description copied from interface:IBasicResourcePuts the input in theHashMapqualifications, whereas the class is the key and the qualification is the value.A
Qualificationis a specific skill aResourceneeds to have to give service to aNodethat has aConstraintfor thatQualification. Giving service to such aNodeby aResourcewithout thatQualificationwill result in additional costs.Cannot be null.
- Specified by:
addQualificationin interfaceIBasicResource- Parameters:
qualification- the iQualification qualification- See Also:
-
getQualifications
Description copied from interface:IBasicResourceGetsqualifications, whereas the class is the key and the qualification is the value.A
Qualificationis a specific skill aResourceneeds to have to give service to aNodethat has aConstraintfor thatQualification. Giving service to such aNodeby aResourcewithout thatQualificationwill result in additional costs.* Cannot be null.
- Specified by:
getQualificationsin interfaceIBasicResource- Returns:
- the hashmap qualifications
- See Also:
-
compareTo
- Specified by:
compareToin interfaceComparable<IBasicResource>
-
getSkillEfficiencyFactor
Deprecated.- Specified by:
getSkillEfficiencyFactorin interfaceIBasicResource- Returns:
- the double skill efficiency factor
-
setSkillEfficiencyFactor
Deprecated.- Specified by:
setSkillEfficiencyFactorin interfaceIBasicResource- Parameters:
skillEfficiencyFactor- the double for the resource's efficiency factor
-
toString
- Overrides:
toStringin classAbstractOptimizationElement
-
getFlavour
Description copied from interface:IOptimizationElementGets the flavour which spells out the kind ofNodeof the element.- Specified by:
getFlavourin interfaceIOptimizationElement- Returns:
- the flavour
-
setAcceptableOvertimeSeconds
Deprecated.Description copied from interface:IBasicResourceDeprecated 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:
setAcceptableOvertimeSecondsin interfaceIBasicResource- Parameters:
seconds- the double for new acceptable overtime seconds
-
setAcceptableOvertime
Description copied from interface:IBasicResourceSets theacceptable overtime. When aResourcearrives inacceptable overtimeaViolationwill be thrown but theNodewill not be filtered by alate Autofilter. Withinacceptable overtimethecostsare rising linearly, while outside ofovertimethey will rise exponentially.Arrival of the
Resourcewithin theacceptable overtimewill not increase the total cost much.- Specified by:
setAcceptableOvertimein interfaceIBasicResource- Parameters:
acceptableOvertime- theDurationof acceptable overtime
-
resetAcceptableOvertime
public void resetAcceptableOvertime()Description copied from interface:IBasicResourceResets theacceptableOvertimeSecondsto the default value of-1.0.- Specified by:
resetAcceptableOvertimein interfaceIBasicResource
-
getAcceptableOvertimeSeconds
public double getAcceptableOvertimeSeconds()Description copied from interface:IBasicResourceGets the acceptable overtime in seconds. This is just an acceptable overtime that does not increase the total cost much. When aResourcearrives inacceptable overtimeaViolationwill be thrown but theNodewill not be filtered by alate Autofilter. Withinacceptable overtimethecostsare rising linearly, while outside ofovertimethey will rise exponentially.- Specified by:
getAcceptableOvertimeSecondsin interfaceIBasicResource- Returns:
- the double acceptableOvertimeSeconds
- See Also:
-
setStrictOvertimeLimit
Description copied from interface:IBasicResourceSets the strict overtime limit. This value does only have an effect if the AutoFilter with ForceFiltering is used.- Specified by:
setStrictOvertimeLimitin interfaceIBasicResource- Parameters:
strictOvertimeLimit- the new strict overtime limit
-
getStrictOvertimeLimitSeconds
public double getStrictOvertimeLimitSeconds()Description copied from interface:IBasicResourceGets the strict overtime limit seconds.- Specified by:
getStrictOvertimeLimitSecondsin interfaceIBasicResource- Returns:
- the strict overtime limit seconds
-
setAcceptableOverdistance
public void setAcceptableOverdistance(javax.measure.Quantity<javax.measure.quantity.Length> maxDistance) - Specified by:
setAcceptableOverdistancein interfaceIBasicResource
-
getAcceptableOverdistanceMeter
public double getAcceptableOverdistanceMeter()Description copied from interface:IBasicResourceGets the acceptable overdistance meter.- Specified by:
getAcceptableOverdistanceMeterin interfaceIBasicResource- Returns:
- the acceptable overdistance meter
-
setStrictOverdistanceLimit
public void setStrictOverdistanceLimit(javax.measure.Quantity<javax.measure.quantity.Length> maxDistance) Description copied from interface:IBasicResourceSets the strict overdistance limit.- Specified by:
setStrictOverdistanceLimitin interfaceIBasicResource- Parameters:
maxDistance- the new strict overdistance limit
-
getStrictOverdistanceLimitMeter
public double getStrictOverdistanceLimitMeter()Description copied from interface:IBasicResourceGets the strict overdistance limit meter.- Specified by:
getStrictOverdistanceLimitMeterin interfaceIBasicResource- Returns:
- the strict overdistance limit meter
-
setFlexTime
Description copied from interface:IBasicResourceSets the flexTime in seconds. The default is 0.- Specified by:
setFlexTimein interfaceIBasicResource- Parameters:
idleTimeReductionTime- the duration of the flexTimeSeconds to be set- Returns:
- true, if successful
-
getFlexTimeMillis
- Specified by:
getFlexTimeMillisin 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:IBasicResourceDeprecated method Gets thedistMatrixId, the default value is -1.- Specified by:
getDestinationDistMatrixIdin 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.
-