TabularData carCheaperThan(Float price)
This operation
returns a TabularData of type tabularTypeListOfCars representing cars of
setOfCars whose price is less than <price>.
Boolean addCar(compositeTypeCar car)
This operation adds the
CompositeData car to the setOfCars TabularData object and increments by
one the nbAvailableCars attribute.
Boolean addCar(String maker, String model, Integer red, Integer green,
Integer blue, Float price)
This operation adds the car represented
by its maker, model, color and price to the setOfCars TabularData object
and increments by one the nbAvailableCars attribute.
Boolean removeCar(String maker, String model)
This operation
removes the car represented by its maker and model from the setOfCars TabularData
object and decrements by one the nbAvailableCars attribute.
TabularData returnAvailableColors(String maker, String model)
This operation returns a TabularData representing the list of available
colors for the car represented by its maker and model.
Void addNewColor(String maker, String model,Integer red, Integer green, Integer blue)
This operation adds a color to the TabularData
representing the list of available colors for the car represented by maker
and model.
TabularData returnByMaker(String maker)
This operation returns
a TabularData representing all cars whose maker is <maker>.
CompositeData getCarByMakerAndModel(String Maker, String Model)
This operation returns a CompositeData representing the car whose maker
is <maker> and model <model>.