OptaPlanner distribution 6.0.1.Final

org.optaplanner.examples.machinereassignment.solver.drools
Class MrMachineUsage

java.lang.Object
  extended by org.optaplanner.examples.machinereassignment.solver.drools.MrMachineUsage
All Implemented Interfaces:
Serializable, Comparable<MrMachineUsage>

public class MrMachineUsage
extends Object
implements Serializable, Comparable<MrMachineUsage>

See Also:
Serialized Form

Constructor Summary
MrMachineUsage(MrMachineCapacity machineCapacity, long usage)
           
 
Method Summary
 int compareTo(MrMachineUsage other)
          Used by the GUI to sort the ConstraintMatch list by ConstraintMatch.getJustificationList().
 boolean equals(Object o)
           
 long getLoadCostWeight()
           
 MrMachine getMachine()
           
 MrMachineCapacity getMachineCapacity()
           
 long getMaximumAvailable()
           
 MrResource getResource()
           
 long getSafetyAvailable()
           
 long getUsage()
           
 int hashCode()
           
 boolean isTransientlyConsumed()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MrMachineUsage

public MrMachineUsage(MrMachineCapacity machineCapacity,
                      long usage)
Method Detail

getMachineCapacity

public MrMachineCapacity getMachineCapacity()

getUsage

public long getUsage()

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

compareTo

public int compareTo(MrMachineUsage other)
Used by the GUI to sort the ConstraintMatch list by ConstraintMatch.getJustificationList().

Specified by:
compareTo in interface Comparable<MrMachineUsage>
Parameters:
other - never null
Returns:
comparison

getMachine

public MrMachine getMachine()

getResource

public MrResource getResource()

isTransientlyConsumed

public boolean isTransientlyConsumed()

getLoadCostWeight

public long getLoadCostWeight()

getMaximumAvailable

public long getMaximumAvailable()

getSafetyAvailable

public long getSafetyAvailable()

toString

public String toString()
Overrides:
toString in class Object

OptaPlanner distribution 6.0.1.Final

Copyright © 2006-2013 JBoss by Red Hat. All Rights Reserved.