Class StorageBinService

java.lang.Object
cielsachen.mco1.service.StorageBinService

public class StorageBinService extends Object
  • Constructor Details

    • StorageBinService

      public StorageBinService(List<StorageBin> storageBins)
  • Method Details

    • addStorageBin

      public void addStorageBin(StorageBin storage)
    • getStorageBins

      public List<StorageBin> getStorageBins()
    • getStorageBinsByIngredient

      public List<StorageBin> getStorageBinsByIngredient(Ingredient ingredient)
    • decreaseCapacityByTruck

      public boolean decreaseCapacityByTruck(Truck truck, Ingredient ingredient, double amount)
    • getStorageBinsById

      public Optional<StorageBin> getStorageBinsById(int id, Truck truck)
    • getStorageBinsByTruck

      public List<StorageBin> getStorageBinsByTruck(Truck truck, Ingredient ingredient)
    • getStorageBinsByTruck

      public List<StorageBin> getStorageBinsByTruck(Truck truck)
    • getTotalCapacityByTruck

      public double getTotalCapacityByTruck(Truck truck, Ingredient ingredient)
    • truckHasIngredient

      public boolean truckHasIngredient(Truck truck, Ingredient... ingredients)
    • truckHasSyrupAddOns

      public boolean truckHasSyrupAddOns(Truck truck)