Class RelationShipCostItem
java.lang.Object
com.dna.jopt.member.bucket.entity.controller.relationship.RelationShipCostItem
-
Constructor Summary
ConstructorsConstructorDescriptionRelationShipCostItem(double relationShipHardItemCost, double relationShipSoftItemCost) An item that counts one violation if it has a hard cost.RelationShipCostItem(double relationShipHardItemCost, double relationShipSoftItemCost, int numViolations) An item with the number of violations that the check of its relation counted. -
Method Summary
Modifier and TypeMethodDescriptionstatic RelationShipCostItemcreateHardItem(double hardCost) An item of a violated relation: one violation with the given hard cost.static RelationShipCostItemdoubleintdouble
-
Constructor Details
-
RelationShipCostItem
public RelationShipCostItem(double relationShipHardItemCost, double relationShipSoftItemCost) An item that counts one violation if it has a hard cost. -
RelationShipCostItem
public RelationShipCostItem(double relationShipHardItemCost, double relationShipSoftItemCost, int numViolations) An item with the number of violations that the check of its relation counted.
-
-
Method Details
-
getTotalRelationCost
public double getTotalRelationCost() -
getHardRelationShipCost
public double getHardRelationShipCost() -
getNumViolations
public int getNumViolations() -
createZeroItem
-
createHardItem
An item of a violated relation: one violation with the given hard cost.
-