Class DtoProductionJob
java.lang.Object
com.vernaio.kayros.engine.v2.api.dto.DtoProductionJob
- All Implemented Interfaces:
IDtoAbstractJob,IDtoProductionJob
A production job that runs some task and may depend on other jobs. It will lead to one disqualifiedJob (if it could not be produced) or one allocation (containing the chosen time, device etc.) in result.
-
Field Summary
Fields inherited from interface com.vernaio.kayros.engine.v2.api.dto.IDtoProductionJob
_DISCRIMINATOR_TYPE_NAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanThe capacity that this job blocks (if the device has a capacity).Quantities of materials that are consumed by this job.getId()Unique identifier among all DtoAbstractJobs.Quantities of materials that are generated by this job.getTask()Details about the task that must be run to complete this job.Constraints on some times inside this job, like an earliest start time or a latest end time.getType()Type discriminatorinthashCode()voidsetCapacityRequirement(IDtoCapacityRequirement capacityRequirement) The capacity that this job blocks (if the device has a capacity).voidsetConsumedMaterials(IDtoMaterialConsumption[] consumedMaterials) Quantities of materials that are consumed by this job.voidUnique identifier among all DtoAbstractJobs.voidsetProducedMaterials(IDtoMaterialProduction[] producedMaterials) Quantities of materials that are generated by this job.voidsetTask(IDtoTaskRequirement task) Details about the task that must be run to complete this job.voidsetTimeBoundaries(IDtoTimeBoundary[] timeBoundaries) Constraints on some times inside this job, like an earliest start time or a latest end time.withCapacityRequirement(IDtoCapacityRequirement capacityRequirement) The capacity that this job blocks (if the device has a capacity).withConsumedMaterials(IDtoMaterialConsumption[] consumedMaterials) Quantities of materials that are consumed by this job.Unique identifier among all DtoAbstractJobs.withProducedMaterials(IDtoMaterialProduction[] producedMaterials) Quantities of materials that are generated by this job.withTask(IDtoTaskRequirement task) Details about the task that must be run to complete this job.withTimeBoundaries(IDtoTimeBoundary[] timeBoundaries) Constraints on some times inside this job, like an earliest start time or a latest end time.
-
Constructor Details
-
DtoProductionJob
protected DtoProductionJob() -
DtoProductionJob
-
-
Method Details
-
getType
Type discriminator- Specified by:
getTypein interfaceIDtoAbstractJob- Specified by:
getTypein interfaceIDtoProductionJob
-
getId
Unique identifier among all DtoAbstractJobs.- Specified by:
getIdin interfaceIDtoAbstractJob- Specified by:
getIdin interfaceIDtoProductionJob
-
setId
Unique identifier among all DtoAbstractJobs.- Specified by:
setIdin interfaceIDtoAbstractJob- Specified by:
setIdin interfaceIDtoProductionJob
-
getTask
Details about the task that must be run to complete this job.- Specified by:
getTaskin interfaceIDtoProductionJob
-
setTask
Details about the task that must be run to complete this job.- Specified by:
setTaskin interfaceIDtoProductionJob
-
getCapacityRequirement
The capacity that this job blocks (if the device has a capacity). If nil, the whole device is blocked.- Specified by:
getCapacityRequirementin interfaceIDtoProductionJob
-
setCapacityRequirement
The capacity that this job blocks (if the device has a capacity). If nil, the whole device is blocked.- Specified by:
setCapacityRequirementin interfaceIDtoProductionJob
-
getTimeBoundaries
Constraints on some times inside this job, like an earliest start time or a latest end time.- Specified by:
getTimeBoundariesin interfaceIDtoProductionJob
-
setTimeBoundaries
Constraints on some times inside this job, like an earliest start time or a latest end time.- Specified by:
setTimeBoundariesin interfaceIDtoProductionJob
-
getProducedMaterials
Quantities of materials that are generated by this job.- Specified by:
getProducedMaterialsin interfaceIDtoProductionJob
-
setProducedMaterials
Quantities of materials that are generated by this job.- Specified by:
setProducedMaterialsin interfaceIDtoProductionJob
-
getConsumedMaterials
Quantities of materials that are consumed by this job.- Specified by:
getConsumedMaterialsin interfaceIDtoProductionJob
-
setConsumedMaterials
Quantities of materials that are consumed by this job.- Specified by:
setConsumedMaterialsin interfaceIDtoProductionJob
-
equals
-
hashCode
public int hashCode() -
withId
Unique identifier among all DtoAbstractJobs. -
withTask
Details about the task that must be run to complete this job. -
withCapacityRequirement
The capacity that this job blocks (if the device has a capacity). If nil, the whole device is blocked. -
withTimeBoundaries
Constraints on some times inside this job, like an earliest start time or a latest end time. -
withProducedMaterials
Quantities of materials that are generated by this job. -
withConsumedMaterials
Quantities of materials that are consumed by this job.
-