Class MrProcessAssignment
java.lang.Object
org.optaplanner.examples.common.domain.AbstractPersistable
org.optaplanner.examples.machinereassignment.domain.MrProcessAssignment
-
Field Summary
Fields inherited from class org.optaplanner.examples.common.domain.AbstractPersistable
id
-
Constructor Summary
ConstructorsConstructorDescriptionMrProcessAssignment
(long id, MrProcess process) MrProcessAssignment
(long id, MrProcess process, MrMachine originalMachine, MrMachine machine) -
Method Summary
Modifier and TypeMethodDescriptiongetLabel()
int
int
long
getUsage
(MrResource resource) boolean
isMoved()
void
setMachine
(MrMachine machine) void
setOriginalMachine
(MrMachine originalMachine) toString()
static MrProcessAssignment
withOriginalMachine
(long id, MrProcess process, MrMachine originalMachine) static MrProcessAssignment
withTargetMachine
(long id, MrProcess process, MrMachine targetMachine) Methods inherited from class org.optaplanner.examples.common.domain.AbstractPersistable
getId, setId
-
Constructor Details
-
MrProcessAssignment
-
MrProcessAssignment
-
-
Method Details
-
withOriginalMachine
public static MrProcessAssignment withOriginalMachine(long id, MrProcess process, MrMachine originalMachine) -
withTargetMachine
public static MrProcessAssignment withTargetMachine(long id, MrProcess process, MrMachine targetMachine) -
getProcess
-
getOriginalMachine
-
setOriginalMachine
-
getMachine
-
setMachine
-
getService
-
isMoved
public boolean isMoved() -
getProcessMoveCost
public int getProcessMoveCost() -
getMachineMoveCost
public int getMachineMoveCost() -
getNeighborhood
-
getLocation
-
getUsage
-
getLabel
-
toString
- Overrides:
toString
in classAbstractPersistable
-