Simulation Architecture
Framework Overview
LOFT-Sim separates scenario structure from operational behavior, then couples network-level resource management to vehicle-level execution. The digital airspace network defines the reusable elements and their baseline properties; demand, operation-strategy modules, and environment/support conditions are independent inputs.
During a run, the network operation layer monitors and manages airspace elements. The vehicle execution layer realizes assignments and local rules as vehicle motion, then reports vehicle states back to the network layer. Both layers write histories used for safety, efficiency, resilience, and external-impact evaluation.
Scenario Input Contracts
| Input | Current scenario source | Responsibility |
|---|---|---|
| Digital airspace network | network/airspace_network.osm |
Element identity/class, geometry, topology, direction, altitude, nominal speed, static capacity/eligibility, and control/geofence geometry |
| Demand | config/demand_config.xml |
OD or route requests, arrival process/rate, vehicle type, service and priority classes |
| Operation-strategy modules | config/operation_strategy.xml |
Strategic, tactical, and contingency model selection; class defaults and element_id rule overrides |
| Operating environment/support | Environment, uncertainty, and scenario settings connected through simulation_config.xml |
Wind, atmosphere/weather, CNS quality, and traffic-awareness support assumptions |
simulation_config.xml wires these inputs together and supplies run time,
vehicle, environment, physical, and output settings. The network-strategy boundary is
intentional: the network defines what and where the resources are; the
strategy defines how they are managed. See
Operation Strategy Configuration.
Coupled Layer Roles
| Layer | Main responsibility | Examples |
|---|---|---|
| Network operation | Maintain monitored element state and apply operation-strategy decisions to shared resources and flight assignments | Occupancy/flow monitoring, admission, route assignment, metering, ground hold, closures, local rule updates |
| Vehicle execution | Turn the assigned route and active-element rules into realized motion under sensing, guidance, vehicle, and environment constraints | Traffic awareness, following/queueing, protected-node access, motion intent, envelope filtering, tracking, dynamics, estimation |
The interface is bidirectional:
network operation -> assignment, holding/routing, active-element rules
vehicle execution -> reported vehicle states
One Fast-Time Step
The current runtime performs the coupled loop in this order:
- Advance time and collect demand requests due in this interval.
- Add newly due demand to the request ledger and build an operation context from the latest published element-state snapshot, demand summary, network, and environment/support model.
- Evaluate registered strategic, network-tactical, and contingency modules; apply element decisions and realize flight release/hold/reject decisions.
- Resolve internal decisions and ACI overrides, then realize eligible request release/hold/decline transitions.
- Update each active vehicle through tactical decisions, guidance, performance filtering, tracking, dynamics, estimation, and traffic awareness.
- Aggregate the newly reported vehicle states into the next monitored element-state snapshot.
- Write enabled vehicle, element, summary, and risk/queueing outputs.
The policy cycle intentionally reads the most recently published monitored state. Because monitoring has its own interval, a policy observation can lag the current vehicle state by up to one monitoring period; that lag is part of the simulated information boundary rather than an accidental direct-state read.
Network Operation Layer
The layer treats corridors, controlled nodes, and vertiports as managed resources rather than passive geometry.
State monitoring
The element-state monitor aggregates reported vehicle information and authoritative element events into records such as:
- corridor occupancy, reported count and mean speed, density, entry/exit flow, and closure status;
- controlled-node queue length, occupancy, closure status, and reason;
- vertiport queue/pad usage and closure status.
These records are exposed through the typed ACI element domains and can be written
with output.element_output so element histories complement vehicle FCD and
trip histories.
Policy manager
Policy modules consume a read-only context and return explicit decision records; they do not mutate simulation state directly. The element operations manager is the single mutation point for resource decisions, and the simulation demand executor realizes flight release/hold/reject decisions.
Within one internal operation cycle, decisions are evaluated in this order:
strategic -> network tactical -> contingency
Later internal decisions win when they affect the same baseline operation, so a same-cycle contingency closure supersedes a routine internal release. The active typed ACI override is resolved after that internal baseline; hard physical and safety constraints are resolved last. Applied decisions retain time, target, parameters, and issuing-model provenance in the bounded runtime decision log.
Current dynamic modules include:
- Element-centric DCB as a strategic policy. It projects a request’s entry times over every route element, checks time-bucket capacity envelopes, and returns release, hold, or reject decisions. Monitored closures and realized entry flow feed back into admission.
- Threshold closure as a contingency policy. After consecutive degraded environment/CNS samples, it closes the affected corridor, controlled node, or vertiport for a configured duration.
Declarative class/element tactical rules from operation_strategy.xml are bound
when the scenario loads. The policy manager also provides the network-tactical
slot for runtime rule changes as that catalog grows.
Element operations and execution interface
The element operations manager applies closures and other resource operations, records corridor entry/exit events, and owns the authoritative element-facing mutation path. The operation-to-execution interface gives vehicle and strategic modules stable access to route availability, active rules, queues, and resource status without reaching into lower-level objects directly.
Strategic Operation Models
The strategic layer can be changed without replacing the network or vehicle execution model. The built-in models, and what each one manages, are listed under Strategic Models in the Default Model Library, together with their parameters. With no strategic model there is no admission operation, and demand still arrives from its configured process.
Poisson is a demand-arrival process, not a strategic operation model. ACI is a
runtime override layer, not a strategic model. sim_config_preflight.xml is
a separate ready-to-run 4D example; 4D reservation is not an assumption of
every LOFT-Sim run.
Static Network Loading And Policy Binding
The canonical network is an OSM file, drawn in JOSM with LOFT-Edit, loaded through
AirspaceNetwork.load_osm. The loader reads directed corridor ways, explicit
altitude-tagged 3D waypoint paths, airspace nodes, and ordered route relations.
Each element carries its semantic ID tag (node_id, corridor_id, route_id),
which is the identity used everywhere downstream. LOFT-Edit’s Auto-Split
Corridors sidebar action splits corridor ways at topology boundaries and
assigns a stable corridor_id to every resulting way, so each way is one
independent corridor and an operation-strategy element_id override targets
exactly one element. Networks with unsplit interior junctions are
auto-split at load time (the first segment keeps the original ID, later
segments get derived __sN IDs); run Auto-Split Corridors (or the one-time
scripts/migrate_legacy_network.py converter for old maps) when downstream
configs need a stable ID in the file for every segment. JSON and custom-XML network load/save
interfaces are not part of the maintained runtime contract.
Network tags carry stable properties such as way_type, waypoint altitude,
nominal_speed, vehicle_access, geofencing_buffer,
and vertiport pad_count. Following/headway/queue rules, reservation buffers,
sequencing, node timing, and contingency thresholds live in the independent
XML operation-strategy file. OSM policy tags and legacy runtime-geometry flags are
ignored with one warning per element, and their values are never applied.
Use scripts/migrate_legacy_network.py once to convert an older map and extract
supported policy values before loading it.
Optional post-load smoothing, configured with input.additional_file, replaces
runtime/visualized path points without changing the OSM source file. Its
strict method vocabulary, shared with LOFT-Edit, is catmull_rom, bspline,
nurbs, and chaikin.
Airspace Units And Tactic Dispatch
Each corridor carries spatial intervals labelled by the governing unit type. When zones overlap, dispatch priority is:
INTERSECTION > VERTIPORT_TERMINAL > CORRIDOR
| Unit | Current tactical choices |
|---|---|
| Corridor | newell, idm, or constant_speed longitudinal behavior |
| Intersection / merging point | fcfs protected-node access or uncontrolled |
| Derived vertiport terminal zone | Corridor following plus Vertiport node pad_count admission, release, sequencing, and queueing |
Departure and arrival terminal zones are derived at route-connected vertiport
endpoints from the corridor’s 3D geometry and configurable distance, travel-time,
and clearance-altitude extents. They are not whole-corridor classifications and
do not require the user to draw a separate interface corridor. The only
explicit way classification is way_type=vertiport_terminal (a vertiport
interface leg drawn as its own way); the retired corridor_type label is warned about
and ignored, and neither controls climb or descent. Preflight reservation, DCB, mission
execution, and pad queues consume the same derived zones and Vertiport node
resources.
The operation strategy selects tactic and rule values. IntersectionTactic is
composed as an overlay so protected-node access can constrain a vehicle
approaching the node while its primary corridor tactic remains active.
Vehicle Execution Layer
The closed-loop execution stream is:
estimated ego state + surrounding traffic awareness + active-element rules
-> tactical decision and motion intent / guidance
-> performance-aware reference filter
-> low-level tracking with actuator uncertainty
-> true-state dynamics under wind
-> observations and reported state
Motion intent, performance, and dynamics
Guidance converts the assigned route, active unit, onboard state estimate, tactical decision, and local environment sample into a geometric motion target. Following, queueing, yielding, and FCFS access remain tactical decisions rather than hidden guidance behavior.
Vehicles follow the local tangent of the corridor’s 3D path (the drawn
waypoints, or the smoothed path when smoothing is enabled). The
planned phase (climb, cruise, or descend) is derived from local path slope;
the realized flight phase is classified separately from estimated vertical
speed using a configurable threshold and hysteresis. Corridor type and terminal
resource classification do not determine either vertical command or realized
flight mode.
The performance-aware filter clips air-relative speed, vertical speed,
acceleration/deceleration, and turn rate to the selected vehicle profile before
tracking. The reduced-order 6-DOF shell propagates position/velocity,
roll-pitch-yaw, body rates, wind response, command response, and energy.
Built-in profiles are quadrotor, fixed_wing, and hybrid; a <vType> row
in demand_config.xml overrides a built-in profile’s fields or registers a new
type.
Estimation and traffic awareness
The estimator maintains the vehicle’s noisy ego-state belief. Surrounding traffic awareness is a separate vehicle service that can combine onboard, communication-supported, and infrastructure-surveillance tracks subject to the configured range, latency, loss, detection, and error assumptions. Tactical rules use the ego estimate and acquired tracks, not unrestricted access to every neighbor’s true state.
Environment and CNS
The environment model supplies wind, density/temperature, navigation quality, and communication quality. These fields affect dynamics, estimation, traffic awareness, and contingency evaluation. Infrastructure-support labels written on the network remain scenario metadata unless a runtime model explicitly maps them to environment/awareness parameters.
Programmable ACI Override Interface
External experiments use Python ACI to query JSON-compatible state, submit demand requests, override individual request decisions, apply typed vehicle or resource changes, and advance the simulation explicitly.
This programmable interface is distinct from the declarative
operation_strategy.xml file. The XML file establishes the loaded baseline
profile; an ACI controller can observe and intervene during execution. ACI is
never declared as a strategic model. Both
paths share the same network parser, network-operation layer, vehicle model, and
outputs. The ACI Reference describes the interface.
Runtime Inputs
The sample scenario, example/scenarios/sample_demo/, supplies each input
above. Scenario Files lists its files,
including the optional CNS infrastructure layer, the shared background map
and the additional file, and what each one carries.