Class Machine
- java.lang.Object
-
- org.optaplanner.examples.common.domain.AbstractPersistable
-
- org.optaplanner.examples.cheaptime.domain.Machine
-
- All Implemented Interfaces:
Serializable
public class Machine extends AbstractPersistable
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.optaplanner.examples.common.domain.AbstractPersistable
id
-
-
Constructor Summary
Constructors Constructor Description Machine()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetIndex()StringgetLabel()MachineCapacitygetMachineCapacity(Resource resource)List<MachineCapacity>getMachineCapacityList()longgetPowerConsumptionMicros()longgetSpinUpDownCostMicros()voidsetIndex(int index)voidsetMachineCapacityList(List<MachineCapacity> machineCapacityList)voidsetPowerConsumptionMicros(long powerConsumptionMicros)voidsetSpinUpDownCostMicros(long spinUpDownCostMicros)-
Methods inherited from class org.optaplanner.examples.common.domain.AbstractPersistable
getId, setId, toString
-
-
-
-
Method Detail
-
getIndex
public int getIndex()
-
setIndex
public void setIndex(int index)
-
getPowerConsumptionMicros
public long getPowerConsumptionMicros()
-
setPowerConsumptionMicros
public void setPowerConsumptionMicros(long powerConsumptionMicros)
-
getSpinUpDownCostMicros
public long getSpinUpDownCostMicros()
-
setSpinUpDownCostMicros
public void setSpinUpDownCostMicros(long spinUpDownCostMicros)
-
getMachineCapacityList
public List<MachineCapacity> getMachineCapacityList()
-
setMachineCapacityList
public void setMachineCapacityList(List<MachineCapacity> machineCapacityList)
-
getMachineCapacity
public MachineCapacity getMachineCapacity(Resource resource)
-
getLabel
public String getLabel()
-
-