Class DtoTool
java.lang.Object
com.vernaio.kayros.engine.v2.api.dto.DtoTool
- All Implemented Interfaces:
IDtoTool
Initial availabilities (positive list) and reservations (negative list) of a tool. At every time, the required quantity on some tool kind may not exceed the total available quantity of tools with this kind.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanWhen are how many of this tool available.getId()Unique identifier among all DtoTool.getKind()The kind of this tool.When are how many of this tool NOT available.inthashCode()voidsetAvailabilities(IDtoToolAvailability[] availabilities) When are how many of this tool available.voidUnique identifier among all DtoTool.voidThe kind of this tool.voidsetReservations(IDtoToolReservation[] reservations) When are how many of this tool NOT available.withAvailabilities(IDtoToolAvailability[] availabilities) When are how many of this tool available.Unique identifier among all DtoTool.The kind of this tool.withReservations(IDtoToolReservation[] reservations) When are how many of this tool NOT available.
-
Constructor Details
-
DtoTool
protected DtoTool() -
DtoTool
-
-
Method Details
-
getId
Unique identifier among all DtoTool. -
setId
Unique identifier among all DtoTool. -
getKind
The kind of this tool. Tools are always required via their kind. -
setKind
The kind of this tool. Tools are always required via their kind. -
getAvailabilities
When are how many of this tool available. Quantities of intersecting availabilities are added up. If set to null, one of this tool is available always.- Specified by:
getAvailabilitiesin interfaceIDtoTool
-
setAvailabilities
When are how many of this tool available. Quantities of intersecting availabilities are added up. If set to null, one of this tool is available always.- Specified by:
setAvailabilitiesin interfaceIDtoTool
-
getReservations
When are how many of this tool NOT available. Reserved quantities are subtracted from the available quantities at all affected times. Negative total tool quantites are interpreted as 0.- Specified by:
getReservationsin interfaceIDtoTool
-
setReservations
When are how many of this tool NOT available. Reserved quantities are subtracted from the available quantities at all affected times. Negative total tool quantites are interpreted as 0.- Specified by:
setReservationsin interfaceIDtoTool
-
equals
-
hashCode
public int hashCode() -
withId
Unique identifier among all DtoTool. -
withKind
The kind of this tool. Tools are always required via their kind. -
withAvailabilities
When are how many of this tool available. Quantities of intersecting availabilities are added up. If set to null, one of this tool is available always. -
withReservations
When are how many of this tool NOT available. Reserved quantities are subtracted from the available quantities at all affected times. Negative total tool quantites are interpreted as 0.
-