Class MrMachine
- java.lang.Object
-
- org.optaplanner.examples.common.domain.AbstractPersistable
-
- org.optaplanner.examples.machinereassignment.domain.MrMachine
-
- All Implemented Interfaces:
Labeled
public class MrMachine extends AbstractPersistable implements Labeled
-
-
Field Summary
-
Fields inherited from class org.optaplanner.examples.common.domain.AbstractPersistable
id
-
-
Constructor Summary
Constructors Constructor Description MrMachine()MrMachine(long id)MrMachine(long id, MrLocation location)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetLabel()MrLocationgetLocation()MrMachineCapacitygetMachineCapacity(MrResource resource)List<MrMachineCapacity>getMachineCapacityList()Map<MrMachine,Integer>getMachineMoveCostMap()intgetMoveCostTo(MrMachine toMachine)MrNeighborhoodgetNeighborhood()voidsetLocation(MrLocation location)voidsetMachineCapacityList(List<MrMachineCapacity> machineCapacityList)voidsetMachineMoveCostMap(Map<MrMachine,Integer> machineMoveCostMap)voidsetNeighborhood(MrNeighborhood neighborhood)-
Methods inherited from class org.optaplanner.examples.common.domain.AbstractPersistable
getId, setId, toString
-
-
-
-
Constructor Detail
-
MrMachine
public MrMachine()
-
MrMachine
public MrMachine(long id)
-
MrMachine
public MrMachine(long id, MrLocation location)
-
-
Method Detail
-
getNeighborhood
public MrNeighborhood getNeighborhood()
-
setNeighborhood
public void setNeighborhood(MrNeighborhood neighborhood)
-
getLocation
public MrLocation getLocation()
-
setLocation
public void setLocation(MrLocation location)
-
getMachineCapacityList
public List<MrMachineCapacity> getMachineCapacityList()
-
setMachineCapacityList
public void setMachineCapacityList(List<MrMachineCapacity> machineCapacityList)
-
getMachineCapacity
public MrMachineCapacity getMachineCapacity(MrResource resource)
-
setMachineMoveCostMap
public void setMachineMoveCostMap(Map<MrMachine,Integer> machineMoveCostMap)
-
getMoveCostTo
public int getMoveCostTo(MrMachine toMachine)
-
-