Unit SCUxSizeUnit

Description

Provides tools for calculating and managing cargo crates divided by size.

Currently, the sizes available in SCU are: 32, 24, 16, 8, 4, 2, 1.

(SCU - Standard Cargo Unit)

1 SCU ≡ 1.25m x 1.25m x 1.25m = 1.953125m3

Overview

Classes, Interfaces, Objects and Records

Name Description
Record TSCUxSizeRecord Record to keep track of the number of boxes for each SCU size.
Record TSCUxSizeRecordHelper  

Types

TSCU = Double;
TSCUSize = (...);
TSCUSizeArray = array[TSCUSize] of Integer;
TSCUSizeIntArray = array[0..6] of Integer;

Constants

SCU = 1.25 * 1.25 * 1.25;
SCUSizeArray: TSCUSizeArray = (32, 24, 16, 8, 4, 2, 1);
SCUSizeIntArray: TSCUSizeIntArray = (32, 24, 16, 8, 4, 2, 1);
SCUSizeDefault: TSCUSize = eSCUSize32;
SCUSizeIntDefault: Integer = 32;

Description

Types

TSCU = Double;

Type alias for representing sizes in Standard Cargo Units (SCU).

TSCUSize = (...);

Enumeration for the size of Cargo Crates.

Values
  • eSCUSize32
  • eSCUSize24
  • eSCUSize16
  • eSCUSize08
  • eSCUSize04
  • eSCUSize02
  • eSCUSize01
TSCUSizeArray = array[TSCUSize] of Integer;

Type of utility for the constant SCUSizeArray.

TSCUSizeIntArray = array[0..6] of Integer;

Type of utility for the constant SCUSizeIntArray.

Constants

SCU = 1.25 * 1.25 * 1.25;

Constant used in calculations relating to the dimensions of crates.

SCUSizeArray: TSCUSizeArray = (32, 24, 16, 8, 4, 2, 1);

Array that maps TSCUSize enumeration values to their corresponding size in SCU.

SCUSizeIntArray: TSCUSizeIntArray = (32, 24, 16, 8, 4, 2, 1);

Constant used in calculations relating to the dimensions of crates.

SCUSizeDefault: TSCUSize = eSCUSize32;

Maximum size limit for crates.

SCUSizeIntDefault: Integer = 32;

Maximum size limit for crates.