public class LogicRouteCostAndViolationController extends Object implements ILogicRouteCostAndViolationController
Constructor and Description |
---|
LogicRouteCostAndViolationController() |
Modifier and Type | Method and Description |
---|---|
void |
addConstraintViolation(String violation)
Adds a constraint violation.
|
void |
addCost(double cost) |
void |
addRouteViolation(IViolation routeViolation) |
ILogicRouteCostAndViolationController |
copy() |
List<String> |
getConstraintViolations()
Gets the constraint violations.
|
double |
getCost()
Gets the cost.
|
double |
getCostAfterEndAnchor() |
double |
getCostBannedResource()
Gets the cost banned resource.
|
double |
getCostCapacity()
Gets the cost capacity.
|
double |
getCostCapacityOverload() |
double |
getCostColorCapacityUsage() |
double |
getCostDistance()
Gets the cost distance.
|
double |
getCostEarly()
Gets the cost early.
|
double |
getCostGeoUnclustered() |
double |
getCostInjectedRestriction() |
double |
getCostLate()
Gets the cost late.
|
double |
getCostMandatoryResource()
Gets the cost mandatory resource.
|
double |
getCostMaxRouteDistance()
Gets the cost max route distance.
|
double |
getCostMaxRouteTime()
Gets the cost max route time.
|
double |
getCostMisc() |
double |
getCostMissedServiceHour() |
double |
getCostNodeType()
Gets the cost node type.
|
double |
getCostPreferredResource()
Gets the cost preferred resource.
|
double |
getCostResourceOutOfWork() |
double |
getCostRouteDistancePattern()
Gets the cost distance.
|
double |
getCostRouteTime() |
double |
getCostStayOvertime() |
double |
getCostTimeCompactness() |
double |
getCostUnPreferredResource()
Gets the cost un preferred resource.
|
double |
getNodeFixCost() |
Map<String,List<IViolation>> |
getNodeViolationMap() |
List<IViolation> |
getNodeViolations(String nodeId) |
int |
getNumConstraintViolations()
Gets the number of constraint violations.
|
int |
getNumViolationsAfterEndAnchor() |
int |
getNumViolationsColorNodeCapacity() |
int |
getNumViolationsDailyBreak()
Gets the number of violations daily break.
|
int |
getNumViolationsMissedServiceHours() |
int |
getNumViolationsNodeTimewindow()
Gets the number of violations node timewindow.
|
int |
getNumViolationsNodeTimewindowEarly()
Gets the number of violations node timewindow early.
|
int |
getNumViolationsNodeTimewindowLate()
Gets the number of violations node timewindow late.
|
int |
getNumViolationsNodeType()
Gets the number of violations node type.
|
int |
getNumViolationsRouteCapacity()
Gets the number of violations route capacity.
|
int |
getNumViolationsRouteDistance()
Gets the number of violations route distance.
|
int |
getNumViolationsRouteTime()
Gets the num violations route time.
|
int |
getNumViolationsUselessUnloadAll()
Gets the number of violations useless unload all.
|
double |
getResourceFixCost() |
List<IViolation> |
getRouteViolations() |
double |
getStayOutFixCost() |
int |
getTotalEarlyTime()
Gets the total early time.
|
int |
getTotalLateTime()
Gets the total late time.
|
double |
getTotalLoadViolationAmount()
Gets the total load violation amount.
|
double |
getTotalTimeWindowDeviation()
Gets the total time window deviation.
|
IViolationSummary |
getViolationSummary() |
void |
putNodeViolations(List<IViolation> violations,
String nodeId) |
void |
resetCosts() |
void |
resetViolationCounter()
Reset the violation counter.
|
void |
setConstraintViolations(List<String> constraintViolations)
Sets the constraint violations.
|
void |
setCost(double cost)
Sets the cost.
|
void |
setCostAfterEndAnchor(double costAfterEndAnchor) |
void |
setCostBannedResource(double costBannedResource)
Sets the cost banned resource.
|
void |
setCostCapacity(double costCapacity)
Sets the cost capacity.
|
void |
setCostCapacityOverload(double costCapacityOverload) |
void |
setCostColorCapacityUsage(double costColorCapacityUsage) |
void |
setCostDistance(double costDistance)
Sets the cost distance.
|
void |
setCostEarly(double costEarly)
Sets the cost early.
|
void |
setCostGeoUnclustered(double costGeoUnclustered) |
void |
setCostInjectedRestriction(double costInjectedRestriction) |
void |
setCostLate(double costLate)
Sets the cost late.
|
void |
setCostMandatoryResource(double costMandatoryResource)
Sets the cost mandatory resource.
|
void |
setCostMaxRouteDistance(double costMaxRouteDistance)
Sets the cost max route distance.
|
void |
setCostMaxRouteTime(double costMaxRouteTime)
Sets the cost max route time.
|
void |
setCostMisc(double miscCost) |
void |
setCostMissedServiceHour(double costMissedServiceHour) |
void |
setCostNodeType(double costNodeType)
Sets the cost node type.
|
void |
setCostPreferredResource(double costPreferredResource)
Sets the cost preferred resource.
|
void |
setCostResourceOutOfWork(double costResourceOutOfWork) |
void |
setCostRouteDistancePattern(double costRouteDistancePattern)
Sets the cost distance.
|
void |
setCostRouteTime(double costRouteTime) |
void |
setCostStayOvertime(double costStayOvertime) |
void |
setCostTimeCompactness(double costTimeCompactness) |
void |
setCostUnPreferredResource(double costUnPreferredResource)
Sets the cost un preferred resource.
|
void |
setNodeFixCost(double nodeFixCost) |
void |
setNodeViolationMap(Map<String,List<IViolation>> nodeViolationMap) |
void |
setNodeViolations(List<IViolation> violations,
String nodeId)
Deprecated.
|
void |
setNumConstraintViolations(int numConstraintViolations)
Sets the number of constraint violations.
|
void |
setNumViolationsAterEndAnchor(int numViolationsAterEndAnchor) |
void |
setNumViolationsColorNodeCapacity(int numViolationsColorNodeCapacity) |
void |
setNumViolationsDailyBreak(int numViolationsDailyBreak)
Sets the number of violations daily break.
|
void |
setNumViolationsMissedServiceHours(int numViolationsMissedServiceHours) |
void |
setNumViolationsNodeTimewindow(int numViolationsNodeTimewindow)
Sets the number of violations node timewindow.
|
void |
setNumViolationsNodeTimewindowEarly(int numViolationsNodeTimewindowEarly)
Sets the number of violations node timewindow early.
|
void |
setNumViolationsNodeTimewindowLate(int numViolationsNodeTimewindowLate)
Sets the number of violations node timewindow late.
|
void |
setNumViolationsNodeType(int numViolationsNodeType)
Sets the number of violations node type.
|
void |
setNumViolationsRouteCapacity(int numViolationsRouteCapacity)
Sets the number of violations route capacity.
|
void |
setNumViolationsRouteDistance(int numViolationsRouteDistance)
Sets the number of violations route distance.
|
void |
setNumViolationsRouteTime(int numViolationsRouteTime)
Sets the number of violations route time.
|
void |
setNumViolationsUselessUnloadAll(int numViolationsUselessUnloadAll)
Sets the number of violations useless unload all.
|
void |
setResourceFixCost(double costResourceFixCost) |
void |
setRouteViolations(List<IViolation> routeViolations) |
void |
setStayOutFixCost(double stayOutFixCost) |
void |
setTotalEarlyTime(int totalEarlyTime)
Sets the total early time.
|
void |
setTotalLateTime(int totalLateTime)
Sets the total late time.
|
void |
setTotalLoadViolationAmount(double totalLoadViolationAmount)
Sets the total load violation amount.
|
void |
setTotalTimeWindowDeviation(double totalTimeWindowDeviation)
Sets the total time window deviation.
|
String |
toString() |
public LogicRouteCostAndViolationController()
public List<IViolation> getNodeViolations(String nodeId)
getNodeViolations
in interface ILogicRouteCostAndViolationController
public Map<String,List<IViolation>> getNodeViolationMap()
getNodeViolationMap
in interface ILogicRouteCostAndViolationController
public void setNodeViolationMap(Map<String,List<IViolation>> nodeViolationMap)
setNodeViolationMap
in interface ILogicRouteCostAndViolationController
@Deprecated public void setNodeViolations(List<IViolation> violations, String nodeId)
setNodeViolations
in interface ILogicRouteCostAndViolationController
violations
- the violationsnodeId
- the node idpublic void putNodeViolations(List<IViolation> violations, String nodeId)
putNodeViolations
in interface ILogicRouteCostAndViolationController
public void setRouteViolations(List<IViolation> routeViolations)
setRouteViolations
in interface ILogicRouteCostAndViolationController
public void addRouteViolation(IViolation routeViolation)
addRouteViolation
in interface ILogicRouteCostAndViolationController
public List<IViolation> getRouteViolations()
getRouteViolations
in interface ILogicRouteCostAndViolationController
public void setCost(double cost)
setCost
in interface ILogicRouteCostAndViolationController
cost
- the new costpublic double getCost()
getCost
in interface ILogicRouteCostAndViolationController
public void addCost(double cost)
addCost
in interface ILogicRouteCostAndViolationController
public void setNumConstraintViolations(int numConstraintViolations)
setNumConstraintViolations
in interface ILogicRouteCostAndViolationController
numConstraintViolations
- the new number of constraint violationspublic int getNumConstraintViolations()
getNumConstraintViolations
in interface ILogicRouteCostAndViolationController
public void setTotalTimeWindowDeviation(double totalTimeWindowDeviation)
setTotalTimeWindowDeviation
in interface ILogicRouteCostAndViolationController
totalTimeWindowDeviation
- the new total time window deviationpublic double getTotalTimeWindowDeviation()
getTotalTimeWindowDeviation
in interface ILogicRouteCostAndViolationController
public void addConstraintViolation(String violation)
addConstraintViolation
in interface ILogicRouteCostAndViolationController
violation
- the violationpublic void setConstraintViolations(List<String> constraintViolations)
setConstraintViolations
in interface ILogicRouteCostAndViolationController
constraintViolations
- the new constraint violationspublic List<String> getConstraintViolations()
getConstraintViolations
in interface ILogicRouteCostAndViolationController
public void setNumViolationsRouteTime(int numViolationsRouteTime)
setNumViolationsRouteTime
in interface ILogicRouteCostAndViolationController
numViolationsRouteTime
- the new number of violations route timepublic int getNumViolationsRouteTime()
getNumViolationsRouteTime
in interface ILogicRouteCostAndViolationController
public void setNumViolationsRouteDistance(int numViolationsRouteDistance)
setNumViolationsRouteDistance
in interface ILogicRouteCostAndViolationController
numViolationsRouteDistance
- the new number of violations route distancepublic int getNumViolationsRouteDistance()
getNumViolationsRouteDistance
in interface ILogicRouteCostAndViolationController
public void setNumViolationsNodeType(int numViolationsNodeType)
setNumViolationsNodeType
in interface ILogicRouteCostAndViolationController
numViolationsNodeType
- the new number of violations node typepublic int getNumViolationsNodeType()
getNumViolationsNodeType
in interface ILogicRouteCostAndViolationController
public void setNumViolationsNodeTimewindow(int numViolationsNodeTimewindow)
setNumViolationsNodeTimewindow
in interface ILogicRouteCostAndViolationController
numViolationsNodeTimewindow
- the new number of violations node timewindowpublic int getNumViolationsNodeTimewindow()
getNumViolationsNodeTimewindow
in interface ILogicRouteCostAndViolationController
public void setNumViolationsRouteCapacity(int numViolationsRouteCapacity)
setNumViolationsRouteCapacity
in interface ILogicRouteCostAndViolationController
numViolationsRouteCapacity
- the new number of violations route capacitypublic int getNumViolationsRouteCapacity()
getNumViolationsRouteCapacity
in interface ILogicRouteCostAndViolationController
public void setNumViolationsUselessUnloadAll(int numViolationsUselessUnloadAll)
setNumViolationsUselessUnloadAll
in interface ILogicRouteCostAndViolationController
numViolationsUselessUnloadAll
- the new number of violations useless unload allpublic int getNumViolationsUselessUnloadAll()
getNumViolationsUselessUnloadAll
in interface ILogicRouteCostAndViolationController
public void setNumViolationsNodeTimewindowEarly(int numViolationsNodeTimewindowEarly)
setNumViolationsNodeTimewindowEarly
in interface ILogicRouteCostAndViolationController
numViolationsNodeTimewindowEarly
- the new number of violations node timewindow earlypublic int getNumViolationsNodeTimewindowEarly()
getNumViolationsNodeTimewindowEarly
in interface ILogicRouteCostAndViolationController
public void setNumViolationsNodeTimewindowLate(int numViolationsNodeTimewindowLate)
setNumViolationsNodeTimewindowLate
in interface ILogicRouteCostAndViolationController
numViolationsNodeTimewindowLate
- the new number of violations node timewindow latepublic int getNumViolationsNodeTimewindowLate()
getNumViolationsNodeTimewindowLate
in interface ILogicRouteCostAndViolationController
public int getNumViolationsMissedServiceHours()
getNumViolationsMissedServiceHours
in interface ILogicRouteCostAndViolationController
public void setNumViolationsMissedServiceHours(int numViolationsMissedServiceHours)
setNumViolationsMissedServiceHours
in interface ILogicRouteCostAndViolationController
public int getNumViolationsColorNodeCapacity()
getNumViolationsColorNodeCapacity
in interface ILogicRouteCostAndViolationController
public void setNumViolationsColorNodeCapacity(int numViolationsColorNodeCapacity)
setNumViolationsColorNodeCapacity
in interface ILogicRouteCostAndViolationController
public void setNumViolationsAterEndAnchor(int numViolationsAterEndAnchor)
setNumViolationsAterEndAnchor
in interface ILogicRouteCostAndViolationController
public int getNumViolationsAfterEndAnchor()
getNumViolationsAfterEndAnchor
in interface ILogicRouteCostAndViolationController
public void setNumViolationsDailyBreak(int numViolationsDailyBreak)
setNumViolationsDailyBreak
in interface ILogicRouteCostAndViolationController
numViolationsDailyBreak
- the new number of violations daily breakpublic int getNumViolationsDailyBreak()
getNumViolationsDailyBreak
in interface ILogicRouteCostAndViolationController
public void setTotalLateTime(int totalLateTime)
setTotalLateTime
in interface ILogicRouteCostAndViolationController
totalLateTime
- the new total late timepublic int getTotalLateTime()
getTotalLateTime
in interface ILogicRouteCostAndViolationController
public void setTotalEarlyTime(int totalEarlyTime)
setTotalEarlyTime
in interface ILogicRouteCostAndViolationController
totalEarlyTime
- the new total early timepublic int getTotalEarlyTime()
getTotalEarlyTime
in interface ILogicRouteCostAndViolationController
public void setTotalLoadViolationAmount(double totalLoadViolationAmount)
setTotalLoadViolationAmount
in interface ILogicRouteCostAndViolationController
totalLoadViolationAmount
- the new total load violation amountpublic double getTotalLoadViolationAmount()
getTotalLoadViolationAmount
in interface ILogicRouteCostAndViolationController
public double getCostEarly()
getCostEarly
in interface ILogicRouteCostAndViolationController
public void setCostEarly(double costEarly)
setCostEarly
in interface ILogicRouteCostAndViolationController
costEarly
- the new cost earlypublic double getCostLate()
getCostLate
in interface ILogicRouteCostAndViolationController
public void setCostLate(double costLate)
setCostLate
in interface ILogicRouteCostAndViolationController
costLate
- the new cost latepublic double getCostMissedServiceHour()
getCostMissedServiceHour
in interface ILogicRouteCostAndViolationController
public void setCostMissedServiceHour(double costMissedServiceHour)
setCostMissedServiceHour
in interface ILogicRouteCostAndViolationController
public double getCostCapacity()
getCostCapacity
in interface ILogicRouteCostAndViolationController
public void setCostCapacity(double costCapacity)
setCostCapacity
in interface ILogicRouteCostAndViolationController
costCapacity
- the new cost capacitypublic void setCostCapacityOverload(double costCapacityOverload)
setCostCapacityOverload
in interface ILogicRouteCostAndViolationController
public double getCostCapacityOverload()
getCostCapacityOverload
in interface ILogicRouteCostAndViolationController
public double getCostDistance()
getCostDistance
in interface ILogicRouteCostAndViolationController
public void setCostDistance(double costDistance)
setCostDistance
in interface ILogicRouteCostAndViolationController
costDistance
- the new cost distancepublic double getCostRouteDistancePattern()
getCostRouteDistancePattern
in interface ILogicRouteCostAndViolationController
public void setCostRouteDistancePattern(double costRouteDistancePattern)
setCostRouteDistancePattern
in interface ILogicRouteCostAndViolationController
costRouteDistancePattern
- the new cost route distance patternpublic double getCostRouteTime()
getCostRouteTime
in interface ILogicRouteCostAndViolationController
public void setCostRouteTime(double costRouteTime)
setCostRouteTime
in interface ILogicRouteCostAndViolationController
public double getResourceFixCost()
getResourceFixCost
in interface ILogicRouteCostAndViolationController
public void setResourceFixCost(double costResourceFixCost)
setResourceFixCost
in interface ILogicRouteCostAndViolationController
public double getCostMaxRouteDistance()
getCostMaxRouteDistance
in interface ILogicRouteCostAndViolationController
public void setCostMaxRouteDistance(double costMaxRouteDistance)
setCostMaxRouteDistance
in interface ILogicRouteCostAndViolationController
costMaxRouteDistance
- the new cost max route distancepublic double getCostMaxRouteTime()
getCostMaxRouteTime
in interface ILogicRouteCostAndViolationController
public void setCostMaxRouteTime(double costMaxRouteTime)
setCostMaxRouteTime
in interface ILogicRouteCostAndViolationController
costMaxRouteTime
- the new cost max route timepublic double getCostNodeType()
getCostNodeType
in interface ILogicRouteCostAndViolationController
public void setCostNodeType(double costNodeType)
setCostNodeType
in interface ILogicRouteCostAndViolationController
costNodeType
- the new cost node typepublic double getCostPreferredResource()
getCostPreferredResource
in interface ILogicRouteCostAndViolationController
public double getCostUnPreferredResource()
getCostUnPreferredResource
in interface ILogicRouteCostAndViolationController
public void setCostUnPreferredResource(double costUnPreferredResource)
setCostUnPreferredResource
in interface ILogicRouteCostAndViolationController
costUnPreferredResource
- the new cost un preferred resourcepublic void setCostPreferredResource(double costPreferredResource)
setCostPreferredResource
in interface ILogicRouteCostAndViolationController
costPreferredResource
- the new cost preferred resourcepublic void setCostBannedResource(double costBannedResource)
setCostBannedResource
in interface ILogicRouteCostAndViolationController
costBannedResource
- the new cost banned resourcepublic void setCostMandatoryResource(double costMandatoryResource)
setCostMandatoryResource
in interface ILogicRouteCostAndViolationController
costMandatoryResource
- the new cost mandatory resourcepublic double getCostBannedResource()
getCostBannedResource
in interface ILogicRouteCostAndViolationController
public double getCostMandatoryResource()
getCostMandatoryResource
in interface ILogicRouteCostAndViolationController
public double getCostTimeCompactness()
getCostTimeCompactness
in interface ILogicRouteCostAndViolationController
public void setCostTimeCompactness(double costTimeCompactness)
setCostTimeCompactness
in interface ILogicRouteCostAndViolationController
public double getCostGeoUnclustered()
getCostGeoUnclustered
in interface ILogicRouteCostAndViolationController
public void setCostGeoUnclustered(double costGeoUnclustered)
setCostGeoUnclustered
in interface ILogicRouteCostAndViolationController
public double getStayOutFixCost()
getStayOutFixCost
in interface ILogicRouteCostAndViolationController
public void setStayOutFixCost(double stayOutFixCost)
setStayOutFixCost
in interface ILogicRouteCostAndViolationController
public double getNodeFixCost()
public void setNodeFixCost(double nodeFixCost)
setNodeFixCost
in interface ILogicRouteCostAndViolationController
public double getCostMisc()
getCostMisc
in interface ILogicRouteCostAndViolationController
public void setCostMisc(double miscCost)
setCostMisc
in interface ILogicRouteCostAndViolationController
public double getCostResourceOutOfWork()
getCostResourceOutOfWork
in interface ILogicRouteCostAndViolationController
public void setCostResourceOutOfWork(double costResourceOutOfWork)
setCostResourceOutOfWork
in interface ILogicRouteCostAndViolationController
public double getCostStayOvertime()
getCostStayOvertime
in interface ILogicRouteCostAndViolationController
public void setCostStayOvertime(double costStayOvertime)
setCostStayOvertime
in interface ILogicRouteCostAndViolationController
public double getCostInjectedRestriction()
getCostInjectedRestriction
in interface ILogicRouteCostAndViolationController
public void setCostInjectedRestriction(double costInjectedRestriction)
setCostInjectedRestriction
in interface ILogicRouteCostAndViolationController
public void setCostColorCapacityUsage(double costColorCapacityUsage)
setCostColorCapacityUsage
in interface ILogicRouteCostAndViolationController
public double getCostColorCapacityUsage()
getCostColorCapacityUsage
in interface ILogicRouteCostAndViolationController
public void setCostAfterEndAnchor(double costAfterEndAnchor)
setCostAfterEndAnchor
in interface ILogicRouteCostAndViolationController
public double getCostAfterEndAnchor()
getCostAfterEndAnchor
in interface ILogicRouteCostAndViolationController
public IViolationSummary getViolationSummary()
getViolationSummary
in interface ILogicRouteCostAndViolationController
public void resetViolationCounter()
resetViolationCounter
in interface ILogicRouteCostAndViolationController
public void resetCosts()
resetCosts
in interface ILogicRouteCostAndViolationController
public ILogicRouteCostAndViolationController copy()
copy
in interface ILogicRouteCostAndViolationController
Copyright © 2017–2023 DNA Evolutions GmbH. All rights reserved.