Class DtoInsufficientMaterialJobDisqualification
java.lang.Object
com.vernaio.kayros.engine.v2.api.dto.DtoInsufficientMaterialJobDisqualification
- All Implemented Interfaces:
IDtoAbstractJobDisqualification,IDtoInsufficientMaterialJobDisqualification
public class DtoInsufficientMaterialJobDisqualification
extends Object
implements IDtoInsufficientMaterialJobDisqualification
(has to be decided in engine) This Disqualification triggers if a productionJob cannot be produced because it consumes materials that are not available or produced in sufficient quantity
-
Field Summary
Fields inherited from interface com.vernaio.kayros.engine.v2.api.dto.IDtoInsufficientMaterialJobDisqualification
_DISCRIMINATOR_TYPE_NAME -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDtoInsufficientMaterialJobDisqualification(String[] productionJobs, String material) -
Method Summary
Modifier and TypeMethodDescriptionbooleanthe problematic material.String[]The ids of the disqualified jobs.getType()Type discriminatorinthashCode()voidsetMaterial(String material) the problematic material.voidsetProductionJobs(String[] productionJobs) The ids of the disqualified jobs.withMaterial(String material) the problematic material.withProductionJobs(String[] productionJobs) The ids of the disqualified jobs.
-
Constructor Details
-
DtoInsufficientMaterialJobDisqualification
protected DtoInsufficientMaterialJobDisqualification() -
DtoInsufficientMaterialJobDisqualification
-
-
Method Details
-
getType
Type discriminator- Specified by:
getTypein interfaceIDtoAbstractJobDisqualification- Specified by:
getTypein interfaceIDtoInsufficientMaterialJobDisqualification
-
getProductionJobs
The ids of the disqualified jobs. There will be no result allocation(s) for these.- Specified by:
getProductionJobsin interfaceIDtoAbstractJobDisqualification- Specified by:
getProductionJobsin interfaceIDtoInsufficientMaterialJobDisqualification
-
setProductionJobs
The ids of the disqualified jobs. There will be no result allocation(s) for these.- Specified by:
setProductionJobsin interfaceIDtoAbstractJobDisqualification- Specified by:
setProductionJobsin interfaceIDtoInsufficientMaterialJobDisqualification
-
getMaterial
the problematic material. if a job consumes more than one problematic material only the first tested will be given here. Materials are tested in a topolgical order of the job-material-graph- Specified by:
getMaterialin interfaceIDtoInsufficientMaterialJobDisqualification
-
setMaterial
the problematic material. if a job consumes more than one problematic material only the first tested will be given here. Materials are tested in a topolgical order of the job-material-graph- Specified by:
setMaterialin interfaceIDtoInsufficientMaterialJobDisqualification
-
withProductionJobs
The ids of the disqualified jobs. There will be no result allocation(s) for these. -
withMaterial
the problematic material. if a job consumes more than one problematic material only the first tested will be given here. Materials are tested in a topolgical order of the job-material-graph -
equals
-
hashCode
public int hashCode()
-