Demand Configuration
config/demand_config.xml contains vehicle-type definitions and one list of
demand flows. It does not use the retired <traffic> or <demand_defaults>
singleton blocks.
<demand_config>
<vTypes>
<vType vehicle_type="quadrotor" />
<vType vehicle_type="fixed_wing" />
<vType vehicle_type="hybrid" />
</vTypes>
<flows>
<flow flow_id="medical_outbound" route="r0"
arrival_model="poisson" arrival_rate_per_hour="24"
vehicle_type="hybrid" />
<flow flow_id="campus_shuttle" origin="n0" destination="n2"
arrival_model="poisson" arrival_rate_per_hour="33"
vehicle_type="quadrotor" />
</flows>
</demand_config>
Flow Identity and Path
flow_id identifies one stream. It is optional; LOFT-Edit generates f0,
f1, and so on in document order when it is omitted.
A flow declares exactly one path form:
| Form | Required attributes | Meaning |
|---|---|---|
| Route flow | route |
References a relation whose route_id has the same value. |
| OD flow | origin, destination |
References node IDs and lets LOFT-Sim resolve the path. |
The flow attribute is route, not route_id. route_id remains the identity
tag on the OSM relation.
OD flows may also use routing_mode, routes, or route_distribution when the
chosen routing behavior needs them.
Arrival Process
Every flow supplies exactly one arrival value:
| Attribute | Unit | Meaning |
|---|---|---|
arrival_rate |
vehicles/second | Arrival rate. |
arrival_rate_per_hour |
vehicles/hour | Arrival rate expressed per hour. |
period |
seconds | Headway between arrivals: fixed for uniform, the mean for poisson. |
probability |
dimensionless | Probability of one arrival in each second. |
count |
vehicles | Fixed number of generated vehicles. |
arrival_model accepts poisson, uniform, probability, or count. The
selected model and arrival value must be compatible: poisson and uniform
both take a rate or a period. The simulator’s
Demand Configuration
page lists which values each model accepts.
Optional Flow Attributes
| Attribute | Meaning |
|---|---|
begin, end |
Active simulation time window in seconds. |
vehicle_type |
References a <vType vehicle_type="..."/> row in this document. |
priority_class |
Allocation priority group. |
priority_rank |
Numeric order within the class. |
service_class |
Optional mission or service category. |
Unset optional values use simulator defaults. LOFT-Edit does not write those defaults into every flow.
Vehicle Types
Vehicle types are defined in the same demand document as the flows that
reference them, under <vTypes>. They are not defined in additional.xml or a separate
vehicle_profiles.json file.
Where to Edit Flows
- Demand Panel > Add creates route or OD flows.
- Selecting a saved flow displays its fields in Tags/Memberships.
- Double-clicking a field there edits the XML through the schema-aware writer.
- Delete removes the selected flow.
Edit a flow’s fields in Tags/Memberships, which keeps JOSM undo, validation, and multi-select behavior.
See Demand Panel for the UI steps.