Class ContractMinutesViolation
- java.lang.Object
-
- org.optaweb.employeerostering.domain.violation.ContractMinutesViolation
-
- All Implemented Interfaces:
ConstraintMatchView
public class ContractMinutesViolation extends Object implements ConstraintMatchView
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classContractMinutesViolation.Type
-
Constructor Summary
Constructors Constructor Description ContractMinutesViolation()ContractMinutesViolation(Employee employee, ContractMinutesViolation.Type type, Long minutesWorked, org.optaplanner.core.api.score.buildin.hardmediumsoftlong.HardMediumSoftLongScore score)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EmployeegetEmployee()IntegergetMaximumMinutesWorked()LonggetMinutesWorked()org.optaplanner.core.api.score.buildin.hardmediumsoftlong.HardMediumSoftLongScoregetScore()ContractMinutesViolation.TypegetType()voidsetEmployee(Employee employee)voidsetMinutesWorked(Long minutesWorked)voidsetScore(org.optaplanner.core.api.score.buildin.hardmediumsoftlong.HardMediumSoftLongScore score)voidsetType(ContractMinutesViolation.Type type)
-
-
-
Constructor Detail
-
ContractMinutesViolation
public ContractMinutesViolation()
-
ContractMinutesViolation
public ContractMinutesViolation(Employee employee, ContractMinutesViolation.Type type, Long minutesWorked, org.optaplanner.core.api.score.buildin.hardmediumsoftlong.HardMediumSoftLongScore score)
-
-
Method Detail
-
getEmployee
public Employee getEmployee()
-
setEmployee
public void setEmployee(Employee employee)
-
getType
public ContractMinutesViolation.Type getType()
-
setType
public void setType(ContractMinutesViolation.Type type)
-
getMinutesWorked
public Long getMinutesWorked()
-
setMinutesWorked
public void setMinutesWorked(Long minutesWorked)
-
getMaximumMinutesWorked
public Integer getMaximumMinutesWorked()
-
getScore
public org.optaplanner.core.api.score.buildin.hardmediumsoftlong.HardMediumSoftLongScore getScore()
- Specified by:
getScorein interfaceConstraintMatchView
-
setScore
public void setScore(org.optaplanner.core.api.score.buildin.hardmediumsoftlong.HardMediumSoftLongScore score)
-
-