Drools Planner distribution 6.0.0.Alpha9

org.drools.planner.examples.machinereassignment.domain.solver
Class MrMachineUsage

java.lang.Object
  extended by org.drools.planner.examples.machinereassignment.domain.solver.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)
           
 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)
Specified by:
compareTo in interface Comparable<MrMachineUsage>

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

Drools Planner distribution 6.0.0.Alpha9

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