Class EntityCostAndViolationController
java.lang.Object
com.dna.jopt.member.bucket.entity.controller.costandviolation.EntityCostAndViolationController
- All Implemented Interfaces:
IEntityCostAndViolationController
,Serializable
,Cloneable
public class EntityCostAndViolationController
extends Object
implements IEntityCostAndViolationController
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncopy()
double
double
int
int
void
void
void
setCostMultiRouteRestriction
(double costMultiRouteRestriction) Sets the cost relationship.void
setCostRelationship
(double costRelationship) Sets the cost relationship.void
setJobViolations
(List<IViolation> jobViolations) void
setNumJobConstraintViolations
(int numConstraintViolations) void
setNumViolationsRelationships
(int numViolationsRelationships) toString()
-
Constructor Details
-
EntityCostAndViolationController
public EntityCostAndViolationController()
-
-
Method Details
-
setNumJobConstraintViolations
public void setNumJobConstraintViolations(int numConstraintViolations) - Specified by:
setNumJobConstraintViolations
in interfaceIEntityCostAndViolationController
-
getNumJobConstraintViolations
public int getNumJobConstraintViolations()- Specified by:
getNumJobConstraintViolations
in interfaceIEntityCostAndViolationController
-
setNumViolationsRelationships
public void setNumViolationsRelationships(int numViolationsRelationships) - Specified by:
setNumViolationsRelationships
in interfaceIEntityCostAndViolationController
-
getNumViolationsRelationships
public int getNumViolationsRelationships()- Specified by:
getNumViolationsRelationships
in interfaceIEntityCostAndViolationController
-
getViolationSummary
- Specified by:
getViolationSummary
in interfaceIEntityCostAndViolationController
-
toString
-
getCostRelationship
public double getCostRelationship()- Specified by:
getCostRelationship
in interfaceIEntityCostAndViolationController
-
setCostRelationship
public void setCostRelationship(double costRelationship) Sets the cost relationship.- Specified by:
setCostRelationship
in interfaceIEntityCostAndViolationController
- Parameters:
costRelationship
- the new cost relationship
-
getCostMultiRouteRestriction
public double getCostMultiRouteRestriction()- Specified by:
getCostMultiRouteRestriction
in interfaceIEntityCostAndViolationController
-
setCostMultiRouteRestriction
public void setCostMultiRouteRestriction(double costMultiRouteRestriction) Sets the cost relationship.- Specified by:
setCostMultiRouteRestriction
in interfaceIEntityCostAndViolationController
- Parameters:
costMultiRouteRestriction
- the new cost multi route restriction
-
resetViolationCounter
public void resetViolationCounter()- Specified by:
resetViolationCounter
in interfaceIEntityCostAndViolationController
-
resetCosts
public void resetCosts()- Specified by:
resetCosts
in interfaceIEntityCostAndViolationController
-
setJobViolations
- Specified by:
setJobViolations
in interfaceIEntityCostAndViolationController
-
getJobViolations
- Specified by:
getJobViolations
in interfaceIEntityCostAndViolationController
-
copy
- Specified by:
copy
in interfaceIEntityCostAndViolationController
-