Class MrMachine
- java.lang.Object
-
- org.optaplanner.examples.common.domain.AbstractPersistable
-
- org.optaplanner.examples.machinereassignment.domain.MrMachine
-
- All Implemented Interfaces:
Serializable
,Labeled
public class MrMachine extends AbstractPersistable implements Labeled
- See Also:
- Serialized Form
-
-
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 String
getLabel()
MrLocation
getLocation()
MrMachineCapacity
getMachineCapacity(MrResource resource)
List<MrMachineCapacity>
getMachineCapacityList()
Map<MrMachine,Integer>
getMachineMoveCostMap()
int
getMoveCostTo(MrMachine toMachine)
MrNeighborhood
getNeighborhood()
void
setLocation(MrLocation location)
void
setMachineCapacityList(List<MrMachineCapacity> machineCapacityList)
void
setMachineMoveCostMap(Map<MrMachine,Integer> machineMoveCostMap)
void
setNeighborhood(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)
-
-