Interface IWastebin
- 
- All Superinterfaces:
- ILocationObject
 
 public interface IWastebin extends ILocationObject (Knowledge about) a waste bin.
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancontains(IWaste waste)Test is the waste is in the waste bin.intgetCapacity()Get the capacity of this Wastebin.java.lang.StringgetId()Get the id (or name) of this object.ILocationgetLocation()Get the location of this object.IWastegetWaste(int idx)Get an wastes of this Wastebin.IWaste[]getWastes()Get the wastes of this Wastebin.booleanisFull()Test is the wastebin is full.
 
- 
- 
- 
Method Detail- 
getIdjava.lang.String getId() Get the id (or name) of this object.- Specified by:
- getIdin interface- ILocationObject
- Returns:
- The id.
 
 - 
getLocationILocation getLocation() Get the location of this object.- Specified by:
- getLocationin interface- ILocationObject
- Returns:
- The location of the object.
 
 - 
getWastesIWaste[] getWastes() Get the wastes of this Wastebin.- Returns:
- wastes
 
 - 
getWasteIWaste getWaste(int idx) Get an wastes of this Wastebin.- Parameters:
- idx- The index.
- Returns:
- wastes
 
 - 
getCapacityint getCapacity() Get the capacity of this Wastebin.- Returns:
- The maximum number of waste objects to fit in this waste bin.
 
 - 
isFullboolean isFull() Test is the wastebin is full.- Returns:
- True, when wastebin is full.
 
 - 
containsboolean contains(IWaste waste) Test is the waste is in the waste bin.- Returns:
- True, when wastebin contains the waste.
 
 
- 
 
-