Interface IWastebin

    • Method Detail

      • getId

        java.lang.String getId()
        Get the id (or name) of this object.
        Specified by:
        getId in interface ILocationObject
        Returns:
        The id.
      • getWastes

        IWaste[] getWastes()
        Get the wastes of this Wastebin.
        Returns:
        wastes
      • getWaste

        IWaste getWaste​(int idx)
        Get an wastes of this Wastebin.
        Parameters:
        idx - The index.
        Returns:
        wastes
      • getCapacity

        int getCapacity()
        Get the capacity of this Wastebin.
        Returns:
        The maximum number of waste objects to fit in this waste bin.
      • isFull

        boolean isFull()
        Test is the wastebin is full.
        Returns:
        True, when wastebin is full.
      • contains

        boolean contains​(IWaste waste)
        Test is the waste is in the waste bin.
        Returns:
        True, when wastebin contains the waste.