elevator v1.0.0 CostFunction View Source

A module for calculating the cost of taking a new order.

Link to this section Summary

Functions

Calculates the cost of taking a new order (as button press) given the current queue of orders.

Link to this section Functions

Link to this function

calculate(arg, orderQueue, floor, availability)

View Source

Calculates the cost of taking a new order (as button press) given the current queue of orders.