Interface IDtoTool
- All Known Implementing Classes:
DtoTool
public interface 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.
-
Method Summary
Modifier and TypeMethodDescriptionWhen 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.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.
-
Method Details
-
getId
String getId()Unique identifier among all DtoTool. -
setId
Unique identifier among all DtoTool. -
getKind
String 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
IDtoToolAvailability[] 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. -
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. -
getReservations
IDtoToolReservation[] 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. -
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.
-