public class MrMachineUsage extends Object implements Serializable, Comparable<MrMachineUsage>
Constructor and Description |
---|
MrMachineUsage(MrMachineCapacity machineCapacity,
long usage) |
Modifier and Type | Method and Description |
---|---|
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() |
public MrMachineUsage(MrMachineCapacity machineCapacity, long usage)
public MrMachineCapacity getMachineCapacity()
public long getUsage()
public int compareTo(MrMachineUsage other)
ConstraintMatch
list
by ConstraintMatch.getJustificationList()
.compareTo
in interface Comparable<MrMachineUsage>
other
- never nullpublic MrMachine getMachine()
public MrResource getResource()
public boolean isTransientlyConsumed()
public long getLoadCostWeight()
public long getMaximumAvailable()
public long getSafetyAvailable()
Copyright © 2006–2019 JBoss by Red Hat. All rights reserved.