Class ViolationSummary
java.lang.Object
com.dna.jopt.member.unit.violation.ViolationSummary
- All Implemented Interfaces:
IViolationSummary
The Class ViolationSummary. An instance of this class will capture all violations of an
ILogicEntityRoute. For example if
the maximal allowed distance of a CapacityResource
is violated the number of total violations (numViolations) and the number of distance violations
(numViolationsRouteDistance) will be incremented. In addition, a normalized cost will be calculated. It is important
to calculate this normalized cost to add up the costs of different violations to a total cost. The higher this
total cost is the lower is the likeness that this route is the optimal route. The optimization
process always tries to minimize this total cost.- Since:
- 17/02/2020
- Version:
- 17/02/2020
- Author:
- DNA
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic IViolationSummaryconnectViolationSummaries(IViolationSummary s1, IViolationSummary s2, boolean doAddUp) static IViolationSummarydoubleGets the costs after theAnchorNodethat were caused by theOptimizerputtingNodesafter theanchor Node, which might happen because theRouteis very full.doubleGets the cost banned resource.doubleGets the total cost added bycapacity violationsin pickup and delivery optimizations, usually for not having loaded enough or for having loaded too much.doubledoubleGets the cost forcolor capacity usage.doubleGets the total cost added for the distance.doubleGets the total cost added for being too early.doubleGets the cost geo unclustered.doubleGets the cost injected restriction.doubleGets the total cost added for being too late.doubleGets the cost mandatory resource.doubleGets the cost for being abovemax route distancedoubleGets the cost for being abovemax route time.doubleGets the cost misc.doubledoubleGets cost caused byNode type.doubleGets cost forpreferred Resource constraints.doubleGets total cost added byrelationship violations.doubleGets the cost resource out of work.doubledoubleGets the cost route time.doubleGets the cost stay overtime.doubleGets the cost time compactness.doubleGets the cost un preferred resource.static StringgetDesc(IViolationSummary summary, double minValue, boolean ignoreZeros) getDesc(List<IViolationSummary> vioSummaries, double minValue) static IViolationSummarygetDiffViolationSummary(List<IViolationSummary> summaries) doubleGets the i move cost.static IViolationSummarygetJoinedViolationSummary(List<IViolationSummary> summaries) doubleGets the node fix cost.intGets the number of unassigned nodes.intGets the number ofIViolation, the default value is 0.intGets the number ofIViolationthat were caused by theOptimizerputtingNodesafter theanchor Node, which might happen because theRouteis very full.intGets the number ofIViolationthat were caused byINodeColorcapacity.intGets the number ofIViolationthat were caused by breaks, the default value is 0.intintGets the number ofIViolationthat were caused by theNodetime window, the default value is 0.intGets the number ofIViolationthat were caused by being too early, the default value is 0.intGets the number ofIViolationthat were caused by being too late, the default value is 0.intGets the number ofIViolationthat were caused by theNode type, the default value is 0.intGets the number ofIViolationthat were caused byrelationships, the default value is 0.intGets the number ofIViolationthat were caused by routecapacity, the default value is 0.intGets the number ofIViolationthat were caused by route distance, the default value is 0.intGets the number ofIViolationthat were caused when theResourcewas working longer than the allowedmaximal working time.doubleGets the resource fix cost.doubleGets the stay out fix cost.static doublegetTotalCost(IViolationSummary summary) intGets total time that aResourcewas early inseconds.intGets total time that aResurcewas late inseconds.booleanisZero()Checks if is zero.static IViolationSummaryvoidsetCostAfterEndAnchor(double costAfterEndAnchor) voidsetCostBannedResource(double costBannedResource) Sets the cost banned resource.voidsetCostCapacity(double costCapacity) Sets the cost (capacity).voidsetCostCapacityOverload(double costCapacityOverload) voidsetCostColorCapacityUsage(double costColorCapacityUsage) voidsetCostDistance(double costDistance) Sets the cost (distance).voidsetCostEarly(double costEarly) Sets the cost (early).voidsetCostGeoUnclustered(double costGeoUnclustered) Sets the cost geo unclustered.voidsetCostInjectedRestriction(double costInjectedRestriction) Sets the cost injected restriction.voidsetCostLate(double costLate) Sets the cost (late).voidsetCostMandatoryResource(double costMandatoryResource) Sets the cost mandatory resource.voidsetCostMaxRouteDistance(double costMaxRouteDistance) Sets the cost (max route distance).voidsetCostMaxRouteTime(double costMaxRouteTime) Sets the cost (max route time).voidsetCostMisc(double miscCost) Sets the cost misc.voidsetCostMissedServiceHour(double costMissedServiceHour) voidsetCostNodeType(double costNodeType) Sets the cost (node type).voidsetCostPreferredResource(double costPreferredResource) Sets the cost (preferred resource).voidsetCostRelationship(double costRelationship) Sets the cost (relationship).voidsetCostResourceOutOfWork(double costResourceOutOfWork) Sets the cost resource out of work.voidsetCostRouteDistancePattern(double costRouteDistancePattern) Sets the costRouteDistancePattern.voidsetCostRouteTime(double costRouteTime) Sets the cost route time.voidsetCostStayOvertime(double costStayOvertime) Sets the cost stay overtime.voidsetCostTimeCompactness(double costTimeCompactness) Sets the cost time compactness.voidsetCostUnPreferredResource(double costUnPreferredResource) Sets the cost un preferred resource.voidsetIMoveCost(double costIMove) Sets the i move cost.voidsetNodeFixCost(double nodeFixCost) Sets the node fix cost.voidsetNumUnassignedNodes(int numUnassignedNodes) Sets the number of unassigned nodes.voidsetNumViolations(int numViolations) voidsetNumViolationsAfterEndAnchor(int numViolationsAfterEndAnchor) voidsetNumViolationsColorNodeCapacity(int numViolationsColorNodeCapacity) voidsetNumViolationsDailyBreak(int numViolationsDailyBreak) Sets the number of violations (daily break).voidsetNumViolationsMissedServiceHours(int numViolationsMissedServiceHours) voidsetNumViolationsNodeTimewindow(int numViolationsNodeTimewindow) Sets the number of violations (node timewindow).voidsetNumViolationsNodeTimewindowEarly(int numViolationsNodeTimewindowEarly) Sets the number of violations node (timewindow early).voidsetNumViolationsNodeTimewindowLate(int numViolationsNodeTimewindowLate) Sets the number of violations node (timewindow late).voidsetNumViolationsNodeType(int numViolationsNodeType) Sets the number of violations (node type).voidsetNumViolationsRelationships(int numViolationsRelationships) Sets the number of violations (relationships).voidsetNumViolationsRouteCapacity(int numViolationsRouteCapacity) Sets the number of violations (route capacity).voidsetNumViolationsRouteDistance(int numViolationsRouteDistance) Sets the number of violations (route distance).voidsetNumViolationsRouteTime(int numViolationsRouteTime) Sets the number of violations (route time).voidsetResourceFixCost(double resourceFixCost) Sets the resource fix cost.voidsetStayOutFixCost(double stayOutFixCost) Sets the stay out fix cost.voidsetTotalEarlyTime(int totalEarlyTime) Sets the total early time.voidsetTotalLateTime(int totalLateTime) Sets the total late time.doubleSets the total load violation amount.voidsetTotalLoadViolationAmount(double totalLoadViolationAmount) Sets the total load violation amount.toString()
-
Constructor Details
-
ViolationSummary
public ViolationSummary()Instantiates a new violation summary.
-
-
Method Details
-
setNumViolationsRouteTime
public void setNumViolationsRouteTime(int numViolationsRouteTime) Sets the number of violations (route time).- Parameters:
numViolationsRouteTime- the new number of violations (route time)
-
getNumViolationsRouteTime
public int getNumViolationsRouteTime()Description copied from interface:IViolationSummaryGets the number ofIViolationthat were caused when theResourcewas working longer than the allowedmaximal working time.- Specified by:
getNumViolationsRouteTimein interfaceIViolationSummary- Returns:
- the int number of route time violations
- See Also:
-
setNumViolationsRouteDistance
public void setNumViolationsRouteDistance(int numViolationsRouteDistance) Sets the number of violations (route distance).- Parameters:
numViolationsRouteDistance- the new number of violations (route distance)
-
getNumViolationsRouteDistance
public int getNumViolationsRouteDistance()Description copied from interface:IViolationSummaryGets the number ofIViolationthat were caused by route distance, the default value is 0.- Specified by:
getNumViolationsRouteDistancein interfaceIViolationSummary- Returns:
- the int number of route distance violations
-
setNumViolationsNodeType
public void setNumViolationsNodeType(int numViolationsNodeType) Sets the number of violations (node type).- Parameters:
numViolationsNodeType- the new number of violations (node type)
-
getNumViolationsNodeType
public int getNumViolationsNodeType()Description copied from interface:IViolationSummaryGets the number ofIViolationthat were caused by theNode type, the default value is 0.- Specified by:
getNumViolationsNodeTypein interfaceIViolationSummary- Returns:
- int number of violations because of the node type
-
setNumViolationsNodeTimewindow
public void setNumViolationsNodeTimewindow(int numViolationsNodeTimewindow) Sets the number of violations (node timewindow).- Parameters:
numViolationsNodeTimewindow- the new number of violations (node timewindow)
-
getNumViolationsNodeTimewindow
public int getNumViolationsNodeTimewindow()Description copied from interface:IViolationSummaryGets the number ofIViolationthat were caused by theNodetime window, the default value is 0.- Specified by:
getNumViolationsNodeTimewindowin interfaceIViolationSummary- Returns:
- int number of node time window violations
-
setNumViolationsRouteCapacity
public void setNumViolationsRouteCapacity(int numViolationsRouteCapacity) Sets the number of violations (route capacity).- Parameters:
numViolationsRouteCapacity- the new number of violations (route capacity)
-
getNumViolationsRouteCapacity
public int getNumViolationsRouteCapacity()Description copied from interface:IViolationSummaryGets the number ofIViolationthat were caused by routecapacity, the default value is 0.- Specified by:
getNumViolationsRouteCapacityin interfaceIViolationSummary- Returns:
- int number of route capacity violations
-
setNumViolations
public void setNumViolations(int numViolations) -
getNumViolations
public int getNumViolations()Description copied from interface:IViolationSummaryGets the number ofIViolation, the default value is 0.- Specified by:
getNumViolationsin interfaceIViolationSummary- Returns:
- the numViolations
-
setNumViolationsNodeTimewindowEarly
public void setNumViolationsNodeTimewindowEarly(int numViolationsNodeTimewindowEarly) Sets the number of violations node (timewindow early).- Parameters:
numViolationsNodeTimewindowEarly- the new number of violations node (timewindow early)
-
getNumViolationsNodeTimewindowEarly
public int getNumViolationsNodeTimewindowEarly()Description copied from interface:IViolationSummaryGets the number ofIViolationthat were caused by being too early, the default value is 0.- Specified by:
getNumViolationsNodeTimewindowEarlyin interfaceIViolationSummary- Returns:
- int number of violations for being too early
-
setNumViolationsNodeTimewindowLate
public void setNumViolationsNodeTimewindowLate(int numViolationsNodeTimewindowLate) Sets the number of violations node (timewindow late).- Parameters:
numViolationsNodeTimewindowLate- the new number of violations node (timewindow late)
-
getNumViolationsNodeTimewindowLate
public int getNumViolationsNodeTimewindowLate()Description copied from interface:IViolationSummaryGets the number ofIViolationthat were caused by being too late, the default value is 0.- Specified by:
getNumViolationsNodeTimewindowLatein interfaceIViolationSummary- Returns:
- int number of violations for being too late
-
setNumViolationsRelationships
public void setNumViolationsRelationships(int numViolationsRelationships) Sets the number of violations (relationships).- Parameters:
numViolationsRelationships- the new number of violations (relationships)
-
getNumViolationsRelationships
public int getNumViolationsRelationships()Description copied from interface:IViolationSummaryGets the number ofIViolationthat were caused byrelationships, the default value is 0.- Specified by:
getNumViolationsRelationshipsin interfaceIViolationSummary- Returns:
- int number of relationship violations
-
setNumViolationsDailyBreak
public void setNumViolationsDailyBreak(int numViolationsDailyBreak) Sets the number of violations (daily break).- Parameters:
numViolationsDailyBreak- the new number of violations (daily break)
-
setNumUnassignedNodes
public void setNumUnassignedNodes(int numUnassignedNodes) Sets the number of unassigned nodes.- Parameters:
numUnassignedNodes- the number of unassigned nodes
-
getNumUnassignedNodes
public int getNumUnassignedNodes()Gets the number of unassigned nodes.- Specified by:
getNumUnassignedNodesin interfaceIViolationSummary- Returns:
- the number of unassigned nodes
-
getNumViolationsDailyBreak
public int getNumViolationsDailyBreak()Description copied from interface:IViolationSummaryGets the number ofIViolationthat were caused by breaks, the default value is 0.- Specified by:
getNumViolationsDailyBreakin interfaceIViolationSummary- Returns:
- int number of break violations
-
setTotalLateTime
public void setTotalLateTime(int totalLateTime) Sets the total late time.- Parameters:
totalLateTime- the new total late time
-
getTotalLateTime
public int getTotalLateTime()Description copied from interface:IViolationSummaryGets total time that aResurcewas late inseconds.- Specified by:
getTotalLateTimein interfaceIViolationSummary- Returns:
- the int total late time
-
setTotalEarlyTime
public void setTotalEarlyTime(int totalEarlyTime) Sets the total early time.- Parameters:
totalEarlyTime- the new total early time
-
getTotalEarlyTime
public int getTotalEarlyTime()Description copied from interface:IViolationSummaryGets total time that aResourcewas early inseconds.- Specified by:
getTotalEarlyTimein interfaceIViolationSummary- Returns:
- int total early time
-
setTotalLoadViolationAmount
public void setTotalLoadViolationAmount(double totalLoadViolationAmount) Sets the total load violation amount.- Parameters:
totalLoadViolationAmount- the new total load violation amount
-
setTotalLoadViolationAmount
public double setTotalLoadViolationAmount()Sets the total load violation amount.- Returns:
- the total load violation amount
-
getCostEarly
public double getCostEarly()Description copied from interface:IViolationSummaryGets the total cost added for being too early.- Specified by:
getCostEarlyin interfaceIViolationSummary- Returns:
- the double early cost
-
setCostEarly
public void setCostEarly(double costEarly) Sets the cost (early).- Parameters:
costEarly- the new cost (early)
-
getCostLate
public double getCostLate()Description copied from interface:IViolationSummaryGets the total cost added for being too late.- Specified by:
getCostLatein interfaceIViolationSummary- Returns:
- the double late cost
-
setCostLate
public void setCostLate(double costLate) Sets the cost (late).- Parameters:
costLate- the new cost (late)
-
getCostCapacity
public double getCostCapacity()Description copied from interface:IViolationSummaryGets the total cost added bycapacity violationsin pickup and delivery optimizations, usually for not having loaded enough or for having loaded too much.- Specified by:
getCostCapacityin interfaceIViolationSummary- Returns:
- the double cost for capacity violations
-
setCostCapacity
public void setCostCapacity(double costCapacity) Sets the cost (capacity).- Parameters:
costCapacity- the new cost (capacity)
-
getCostCapacityOverload
public double getCostCapacityOverload()- Specified by:
getCostCapacityOverloadin interfaceIViolationSummary
-
setCostCapacityOverload
public void setCostCapacityOverload(double costCapacityOverload) -
getCostRelationship
public double getCostRelationship()Description copied from interface:IViolationSummaryGets total cost added byrelationship violations.- Specified by:
getCostRelationshipin interfaceIViolationSummary- Returns:
- the double cost for relationship violations
-
setCostRelationship
public void setCostRelationship(double costRelationship) Sets the cost (relationship).- Parameters:
costRelationship- the new cost (relationship)
-
getCostRouteDistancePattern
public double getCostRouteDistancePattern()- Specified by:
getCostRouteDistancePatternin interfaceIViolationSummary
-
setCostRouteDistancePattern
public void setCostRouteDistancePattern(double costRouteDistancePattern) Sets the costRouteDistancePattern.- Parameters:
costRouteDistancePattern- the new cost route distance pattern
-
getCostDistance
public double getCostDistance()Description copied from interface:IViolationSummaryGets the total cost added for the distance.- Specified by:
getCostDistancein interfaceIViolationSummary- Returns:
- the double cost for distance
-
setCostDistance
public void setCostDistance(double costDistance) Sets the cost (distance).- Parameters:
costDistance- the new cost (distance)
-
getCostMaxRouteDistance
public double getCostMaxRouteDistance()Description copied from interface:IViolationSummaryGets the cost for being abovemax route distance- Specified by:
getCostMaxRouteDistancein interfaceIViolationSummary- Returns:
- the costMaxRouteDistance
-
setCostMaxRouteDistance
public void setCostMaxRouteDistance(double costMaxRouteDistance) Sets the cost (max route distance).- Parameters:
costMaxRouteDistance- the new cost (max route distance)
-
getCostMaxRouteTime
public double getCostMaxRouteTime()Description copied from interface:IViolationSummaryGets the cost for being abovemax route time.- Specified by:
getCostMaxRouteTimein interfaceIViolationSummary- Returns:
- the costMaxRouteTime
-
setCostMaxRouteTime
public void setCostMaxRouteTime(double costMaxRouteTime) Sets the cost (max route time).- Parameters:
costMaxRouteTime- the new cost (max route time)
-
getCostNodeType
public double getCostNodeType()Description copied from interface:IViolationSummaryGets cost caused byNode type.- Specified by:
getCostNodeTypein interfaceIViolationSummary- Returns:
- the double cost
-
setCostNodeType
public void setCostNodeType(double costNodeType) Sets the cost (node type).- Parameters:
costNodeType- the new cost (node type)
-
getCostPreferredResource
public double getCostPreferredResource()Description copied from interface:IViolationSummaryGets cost forpreferred Resource constraints.- Specified by:
getCostPreferredResourcein interfaceIViolationSummary- Returns:
- the double cost
-
setCostPreferredResource
public void setCostPreferredResource(double costPreferredResource) Sets the cost (preferred resource).- Parameters:
costPreferredResource- the new cost (preferred resource)
-
setCostRouteTime
public void setCostRouteTime(double costRouteTime) Sets the cost route time.- Parameters:
costRouteTime- the new cost route time
-
getCostRouteTime
public double getCostRouteTime()Gets the cost route time.- Specified by:
getCostRouteTimein interfaceIViolationSummary- Returns:
- the cost route time
-
setResourceFixCost
public void setResourceFixCost(double resourceFixCost) Sets the resource fix cost.- Parameters:
resourceFixCost- the new resource fix cost
-
getResourceFixCost
public double getResourceFixCost()Gets the resource fix cost.- Specified by:
getResourceFixCostin interfaceIViolationSummary- Returns:
- the resource fix cost
-
setNumViolationsColorNodeCapacity
public void setNumViolationsColorNodeCapacity(int numViolationsColorNodeCapacity) -
getNumViolationsColorNodeCapacity
public int getNumViolationsColorNodeCapacity()Description copied from interface:IViolationSummaryGets the number ofIViolationthat were caused byINodeColorcapacity.- Specified by:
getNumViolationsColorNodeCapacityin interfaceIViolationSummary- Returns:
- the int number of nodeColorCapacity violations
-
setCostColorCapacityUsage
public void setCostColorCapacityUsage(double costColorCapacityUsage) -
getCostColorCapacityUsage
public double getCostColorCapacityUsage()Description copied from interface:IViolationSummaryGets the cost forcolor capacity usage.- Specified by:
getCostColorCapacityUsagein interfaceIViolationSummary- Returns:
- the double cost
-
setNumViolationsAfterEndAnchor
public void setNumViolationsAfterEndAnchor(int numViolationsAfterEndAnchor) -
getNumViolationsAfterEndAnchor
public int getNumViolationsAfterEndAnchor()Description copied from interface:IViolationSummaryGets the number ofIViolationthat were caused by theOptimizerputtingNodesafter theanchor Node, which might happen because theRouteis very full.- Specified by:
getNumViolationsAfterEndAnchorin interfaceIViolationSummary- Returns:
- the int number of violations after the anchor node
-
setCostAfterEndAnchor
public void setCostAfterEndAnchor(double costAfterEndAnchor) -
getCostAfterEndAnchor
public double getCostAfterEndAnchor()Description copied from interface:IViolationSummaryGets the costs after theAnchorNodethat were caused by theOptimizerputtingNodesafter theanchor Node, which might happen because theRouteis very full.- Specified by:
getCostAfterEndAnchorin interfaceIViolationSummary- Returns:
- the double cost
-
getNumViolationsMissedServiceHours
public int getNumViolationsMissedServiceHours()- Specified by:
getNumViolationsMissedServiceHoursin interfaceIViolationSummary
-
setNumViolationsMissedServiceHours
public void setNumViolationsMissedServiceHours(int numViolationsMissedServiceHours) -
getCostMissedServiceHour
public double getCostMissedServiceHour()- Specified by:
getCostMissedServiceHourin interfaceIViolationSummary
-
setCostMissedServiceHour
public void setCostMissedServiceHour(double costMissedServiceHour) -
toString
-
getDesc
-
getDesc
-
getCostTimeCompactness
public double getCostTimeCompactness()Gets the cost time compactness.- Specified by:
getCostTimeCompactnessin interfaceIViolationSummary- Returns:
- the cost time compactness
-
setCostTimeCompactness
public void setCostTimeCompactness(double costTimeCompactness) Sets the cost time compactness.- Parameters:
costTimeCompactness- the new cost time compactness
-
getCostGeoUnclustered
public double getCostGeoUnclustered()Gets the cost geo unclustered.- Specified by:
getCostGeoUnclusteredin interfaceIViolationSummary- Returns:
- the cost geo unclustered
-
setCostGeoUnclustered
public void setCostGeoUnclustered(double costGeoUnclustered) Sets the cost geo unclustered.- Parameters:
costGeoUnclustered- the new cost geo unclustered
-
getIMoveCost
public double getIMoveCost()Gets the i move cost.- Specified by:
getIMoveCostin interfaceIViolationSummary- Returns:
- the i move cost
-
setIMoveCost
public void setIMoveCost(double costIMove) Sets the i move cost.- Parameters:
costIMove- the new i move cost
-
getStayOutFixCost
public double getStayOutFixCost()Gets the stay out fix cost.- Specified by:
getStayOutFixCostin interfaceIViolationSummary- Returns:
- the stay out fix cost
-
setStayOutFixCost
public void setStayOutFixCost(double stayOutFixCost) Sets the stay out fix cost.- Parameters:
stayOutFixCost- the new stay out fix cost
-
getNodeFixCost
public double getNodeFixCost()Gets the node fix cost.- Specified by:
getNodeFixCostin interfaceIViolationSummary- Returns:
- the node fix cost
-
setNodeFixCost
public void setNodeFixCost(double nodeFixCost) Sets the node fix cost.- Parameters:
nodeFixCost- the new node fix cost
-
getCostMisc
public double getCostMisc()Gets the cost misc.- Specified by:
getCostMiscin interfaceIViolationSummary- Returns:
- the cost misc
-
setCostMisc
public void setCostMisc(double miscCost) Sets the cost misc.- Parameters:
miscCost- the new cost misc
-
getCostResourceOutOfWork
public double getCostResourceOutOfWork()Gets the cost resource out of work.- Specified by:
getCostResourceOutOfWorkin interfaceIViolationSummary- Returns:
- the cost resource out of work
-
setCostResourceOutOfWork
public void setCostResourceOutOfWork(double costResourceOutOfWork) Sets the cost resource out of work.- Parameters:
costResourceOutOfWork- the new cost resource out of work
-
getCostStayOvertime
public double getCostStayOvertime()Gets the cost stay overtime.- Specified by:
getCostStayOvertimein interfaceIViolationSummary- Returns:
- the cost stay overtime
-
setCostStayOvertime
public void setCostStayOvertime(double costStayOvertime) Sets the cost stay overtime.- Parameters:
costStayOvertime- the new cost stay overtime
-
getCostInjectedRestriction
public double getCostInjectedRestriction()Gets the cost injected restriction.- Specified by:
getCostInjectedRestrictionin interfaceIViolationSummary- Returns:
- the cost injected restriction
-
setCostInjectedRestriction
public void setCostInjectedRestriction(double costInjectedRestriction) Sets the cost injected restriction.- Parameters:
costInjectedRestriction- the new cost injected restriction
-
getCostUnPreferredResource
public double getCostUnPreferredResource()Gets the cost un preferred resource.- Specified by:
getCostUnPreferredResourcein interfaceIViolationSummary- Returns:
- the cost un preferred resource
-
setCostUnPreferredResource
public void setCostUnPreferredResource(double costUnPreferredResource) Sets the cost un preferred resource.- Parameters:
costUnPreferredResource- the new cost un preferred resource
-
setCostBannedResource
public void setCostBannedResource(double costBannedResource) Sets the cost banned resource.- Parameters:
costBannedResource- the new cost banned resource
-
getCostBannedResource
public double getCostBannedResource()Gets the cost banned resource.- Specified by:
getCostBannedResourcein interfaceIViolationSummary- Returns:
- the cost banned resource
-
setCostMandatoryResource
public void setCostMandatoryResource(double costMandatoryResource) Sets the cost mandatory resource.- Parameters:
costMandatoryResource- the new cost mandatory resource
-
getCostMandatoryResource
public double getCostMandatoryResource()Gets the cost mandatory resource.- Specified by:
getCostMandatoryResourcein interfaceIViolationSummary- Returns:
- the cost mandatory resource
-
isZero
public boolean isZero()Description copied from interface:IViolationSummaryChecks if is zero. Zero means no cost, violations etc. Makes sense in the context of the difference of violation summaries.- Specified by:
isZeroin interfaceIViolationSummary- Returns:
- true, if is zero
-
getTotalCost
-
getJoinedViolationSummary
-
getDiffViolationSummary
-
joinViolationSummaries
-
diffViolationSummaries
-
connectViolationSummaries
public static IViolationSummary connectViolationSummaries(IViolationSummary s1, IViolationSummary s2, boolean doAddUp)
-