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, int usage)
           
 
Method Summary
 int compareTo(MrMachineUsage other)
           
 boolean equals(Object o)
           
 int getLoadCostWeight()
           
 MrMachine getMachine()
           
 MrMachineCapacity getMachineCapacity()
           
 int getMaximumAvailable()
           
 MrResource getResource()
           
 int getSafetyAvailable()
           
 int 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,
                      int usage)
Method Detail

getMachineCapacity

public MrMachineCapacity getMachineCapacity()

getUsage

public int 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 int getLoadCostWeight()

getMaximumAvailable

public int getMaximumAvailable()

getSafetyAvailable

public int getSafetyAvailable()

toString

public String toString()
Overrides:
toString in class Object


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