Class MrBalancePenalty
- java.lang.Object
-
- org.optaplanner.examples.common.domain.AbstractPersistableJackson
-
- org.optaplanner.examples.machinereassignment.domain.MrBalancePenalty
-
public class MrBalancePenalty extends AbstractPersistableJackson
-
-
Field Summary
-
Fields inherited from class org.optaplanner.examples.common.domain.AbstractPersistableJackson
id
-
-
Constructor Summary
Constructors Constructor Description MrBalancePenalty(long id, MrResource originResource, MrResource targetResource, int multiplicand, int weight)MrBalancePenalty(MrResource originResource, MrResource targetResource, int multiplicand, int weight)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetMultiplicand()MrResourcegetOriginResource()MrResourcegetTargetResource()intgetWeight()voidsetWeight(int weight)-
Methods inherited from class org.optaplanner.examples.common.domain.AbstractPersistableJackson
getId, toString
-
-
-
-
Constructor Detail
-
MrBalancePenalty
public MrBalancePenalty(MrResource originResource, MrResource targetResource, int multiplicand, int weight)
-
MrBalancePenalty
public MrBalancePenalty(long id, MrResource originResource, MrResource targetResource, int multiplicand, int weight)
-
-
Method Detail
-
getOriginResource
public MrResource getOriginResource()
-
getTargetResource
public MrResource getTargetResource()
-
getMultiplicand
public int getMultiplicand()
-
getWeight
public int getWeight()
-
setWeight
public void setWeight(int weight)
-
-