Class NodeColorCapacityItem

java.lang.Object
com.dna.jopt.member.unit.color.NodeColorCapacityItem

public class NodeColorCapacityItem extends Object
This class allows to limit the number of Nodes of specific INodeColor that a Resource is giving service to. This way can be made sure that Nodes with a certain Color are not over-represented and can be used for white space generation.
Since:
23/09/2019
Version:
23/09/2019
Author:
DNA
  • Constructor Details

    • NodeColorCapacityItem

      public NodeColorCapacityItem(INodeColor color, double maxJoinableUsagePercent)
  • Method Details

    • getColorCode

      public int getColorCode()
    • getColor

      public INodeColor getColor()
    • getMaxJoinableUsage

      public double getMaxJoinableUsage()
    • setMaxJoinableUsage

      public void setMaxJoinableUsage(double maxJoinableUsagePercent)
    • toString

      public String toString()
      Overrides:
      toString in class Object