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 Details

    • getId

      String getId()
      Unique identifier among all DtoTool.
    • setId

      void setId(String id)
      Unique identifier among all DtoTool.
    • getKind

      String getKind()
      The kind of this tool. Tools are always required via their kind.
    • setKind

      void setKind(String kind)
      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

      void setAvailabilities(IDtoToolAvailability[] availabilities)
      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

      void setReservations(IDtoToolReservation[] reservations)
      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.