Class MrMachineUsage
- java.lang.Object
-
- org.optaplanner.examples.machinereassignment.optional.score.drools.MrMachineUsage
-
- All Implemented Interfaces:
Comparable<MrMachineUsage>
public class MrMachineUsage extends Object implements Comparable<MrMachineUsage>
-
-
Constructor Summary
Constructors Constructor Description MrMachineUsage(MrMachineCapacity machineCapacity, long usage)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(MrMachineUsage o)booleanequals(Object o)longgetLoadCostWeight()MrMachinegetMachine()MrMachineCapacitygetMachineCapacity()longgetMaximumAvailable()MrResourcegetResource()longgetSafetyAvailable()longgetUsage()inthashCode()booleanisTransientlyConsumed()StringtoString()
-
-
-
Constructor Detail
-
MrMachineUsage
public MrMachineUsage(MrMachineCapacity machineCapacity, long usage)
-
-
Method Detail
-
getMachineCapacity
public MrMachineCapacity getMachineCapacity()
-
getUsage
public long getUsage()
-
getMachine
public MrMachine getMachine()
-
getResource
public MrResource getResource()
-
isTransientlyConsumed
public boolean isTransientlyConsumed()
-
getLoadCostWeight
public long getLoadCostWeight()
-
getMaximumAvailable
public long getMaximumAvailable()
-
getSafetyAvailable
public long getSafetyAvailable()
-
compareTo
public int compareTo(MrMachineUsage o)
- Specified by:
compareToin interfaceComparable<MrMachineUsage>
-
-