Class MrBalancePenalty
- java.lang.Object
-
- org.optaplanner.examples.common.domain.AbstractPersistable
-
- org.optaplanner.examples.machinereassignment.domain.MrBalancePenalty
-
public class MrBalancePenalty extends AbstractPersistable
-
-
Field Summary
-
Fields inherited from class org.optaplanner.examples.common.domain.AbstractPersistable
id
-
-
Constructor Summary
Constructors Constructor Description MrBalancePenalty()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()voidsetMultiplicand(int multiplicand)voidsetOriginResource(MrResource originResource)voidsetTargetResource(MrResource targetResource)voidsetWeight(int weight)-
Methods inherited from class org.optaplanner.examples.common.domain.AbstractPersistable
getId, setId, toString
-
-
-
-
Constructor Detail
-
MrBalancePenalty
public MrBalancePenalty()
-
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()
-
setOriginResource
public void setOriginResource(MrResource originResource)
-
getTargetResource
public MrResource getTargetResource()
-
setTargetResource
public void setTargetResource(MrResource targetResource)
-
getMultiplicand
public int getMultiplicand()
-
setMultiplicand
public void setMultiplicand(int multiplicand)
-
getWeight
public int getWeight()
-
setWeight
public void setWeight(int weight)
-
-