Class RelationShipCostItem

java.lang.Object
com.dna.jopt.member.bucket.entity.controller.relationship.RelationShipCostItem

public final class RelationShipCostItem extends Object
  • 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

      public static RelationShipCostItem createZeroItem()
    • createHardItem

      public static RelationShipCostItem createHardItem(double hardCost)
      An item of a violated relation: one violation with the given hard cost.