+
Point of view
All features
class LEVEL
Summary
Direct parents
Insert list: ANY
Class invariant
Overview
Creation features
{ANY}
Features
{ANY}
Modifications:
{ANY}
{}
occupied_slot_count: INTEGER_32
writable attribute
{ANY}
Total count of occupied places in the Current level.
free_slot_count: INTEGER_32
effective function
{ANY}
Total count of free places in the Current level.
capacity: INTEGER_32
effective function
{ANY}
Of the level.
is_full: BOOLEAN
effective function
{ANY}
Is this level full?
make (max_cars: INTEGER_32)
effective procedure
{ANY}
require
  • max_cars > 0
ensure
arrival (car: CAR)
effective procedure
{ANY}
require ensure
departure (car_number: INTEGER_32, departure_time: DATE, hour_price: REAL_64): REAL_64
effective function
{ANY}
Gives price to pay or -1 when car is not at this level.
require
  • car_number > 0
car_slots: ARRAY[CAR]
writable attribute
{}
Memory of occupied slots of this level.