Interface IWastebin
- All Superinterfaces:
ILocationObject
- All Known Implementing Classes:
Wastebin
(Knowledge about) a waste bin.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Test is the waste is in the waste bin.int
Get the capacity of this Wastebin.getId()
Get the id (or name) of this object.Get the location of this object.getWaste
(int idx) Get an wastes of this Wastebin.IWaste[]
Get the wastes of this Wastebin.boolean
isFull()
Test is the wastebin is full.
-
Method Details
-
getId
String getId()Get the id (or name) of this object.- Specified by:
getId
in interfaceILocationObject
- Returns:
- The id.
-
getLocation
ILocation getLocation()Get the location of this object.- Specified by:
getLocation
in interfaceILocationObject
- Returns:
- The location of the object.
-
getWastes
IWaste[] getWastes()Get the wastes of this Wastebin.- Returns:
- wastes
-
getWaste
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
Test is the waste is in the waste bin.- Returns:
- True, when wastebin contains the waste.
-