Class Machine
- java.lang.Object
-
- org.optaplanner.examples.common.domain.AbstractPersistable
-
- org.optaplanner.examples.cheaptime.domain.Machine
-
public class Machine extends AbstractPersistable
-
-
Field Summary
-
Fields inherited from class org.optaplanner.examples.common.domain.AbstractPersistable
id
-
-
Constructor Summary
Constructors Constructor Description Machine()Machine(int index, long powerConsumptionMicros, long spinUpDownCostMicros, MachineCapacity... machineCapacities)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetCapacity(Resource resource)intgetIndex()StringgetLabel()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
-
-
-
-
Constructor Detail
-
Machine
public Machine()
-
Machine
public Machine(int index, long powerConsumptionMicros, long spinUpDownCostMicros, MachineCapacity... machineCapacities)
-
-
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)
-
getCapacity
public int getCapacity(Resource resource)
-
getLabel
public String getLabel()
-
-