Order (ElevatorProject v0.1.0)

Defines the order struct.

Link to this section Summary

Functions

Creates an order with given button_type and floor. The owner is set to nil.

Link to this section Functions

Link to this function

new(button_type, floor)

Creates an order with given button_type and floor. The owner is set to nil.

Parameters

  • button_type: Button type of the order. Can be :cab, :hall_up or :hall_down :: atom()
  • floor: Floor of the order :: integer()

    Return

  • The created order :: %Order{}