A train in the
LoadingRack model aggregates the characteristics of its assigned wagons. Train-level methods provide the total capacity, loading level, fill ratio, wagon count, and timing information required to evaluate railway loading operations and train loading performance. These aggregated values describe the train's loading progress, capacity utilization, and operational status during railway loading. Train and wagon characteristics provide the data required to apply
different LoadingRack scheduling strategies, from detailed train loading to simplified product flow.
The main train characteristics include:
Wagon count — the number of wagons assigned to the train.
Total capacity — the combined capacity of all assigned wagons, in tons.
Total fill level — the total amount of product currently loaded into the train.
Total fill ratio — the proportion of total train capacity that has been loaded.
Product-specific capacity and fill level — aggregated values used to track petroleum product loading for a specified product.
Arrival and departure information — planned arrival, actual arrival, expected loading duration, and remaining time until departure.
Train-level characteristics provide the operational data required by LoadingRack control logic to manage active trains, planned operations, loading progress, and departure conditions
The corresponding API methods provide direct access to these characteristics and support train loading simulation and railway loading analysis.
getWagonCount() returns the number of active wagons, while
getTotalCapacity() returns their combined capacity in tons.
getTotalFillLevel() provides the current total loaded amount, and
getTotalFillRatio() expresses loading progress as a ratio of total capacity. In railway wagon loading simulation, train departure can be driven either by the loading schedule or by loading completion; this behavior is explained in
LoadingPriorityOverSchedule in LoadingRack: Scheduling and Departure Logic