Corridor Domain

The corridor domain exposes each corridor’s 3D path (the smoothed path when the scenario enables smoothing) and its current operational state. IDs are semantic corridor_id values from the network file.

Baseline and Override

Closures, speed restrictions, capacity, and tactical rules may have an operation-strategy or internal-model baseline and an ACI override. Retrieval methods report the effective value and its source where applicable.

open(corridorID) is an explicit ACI open override. It differs from clearClosureOverride(corridorID), which removes ACI’s opinion and restores the current internal/XML closure state. The same clear-to-baseline principle applies to restrictions, capacity, and tactical rules.

Retrieve Information

Information Python method
Corridor IDs aci.corridor.getIDList()
Corridor count aci.corridor.getCount()
Complete JSON-compatible state aci.corridor.getSnapshot(corridorID)
3D path length aci.corridor.getLength(corridorID)
3D waypoint shape aci.corridor.getShape3D(corridorID)
Start element aci.corridor.getFromElementID(corridorID)
End element aci.corridor.getToElementID(corridorID)
Vehicles currently on the corridor aci.corridor.getVehicleIDs(corridorID)
Number of vehicles currently on the corridor aci.corridor.getOccupancy(corridorID)
Current density, occupancy / length (vehicle/km) aci.corridor.getDensity(corridorID)
Entry flow over the last 300 s (vehicle/hour) aci.corridor.getFlow(corridorID)
Effective speed limit aci.corridor.getSpeedLimit(corridorID)
Speed-limit source aci.corridor.getSpeedLimitSource(corridorID)
Active ACI overrides on this corridor (see below) aci.corridor.getEffectiveRestriction(corridorID)
Effective capacity (vehicle/hour) aci.corridor.getCapacity(corridorID)
Capacity source aci.corridor.getCapacitySource(corridorID)
Effective closure: closed, closed_until, reason, and source aci.corridor.getClosure(corridorID)
Closure source only aci.corridor.getClosureSource(corridorID)
Effective tactical rule aci.corridor.getTacticalRule(corridorID)
Tactical-rule source aci.corridor.getTacticalRuleSource(corridorID)
All property sources aci.corridor.getControlSources(corridorID)
Aggregate source (mixed when they differ) aci.corridor.getControlSource(corridorID)

The 3D shape is the flight path used by vehicle execution. Vertical motion is derived from this geometry; it is not inferred from any special corridor tag.

getControlSources() returns separate entries for closure, speed_limit, capacity, and tactical_rule. Changing one property through ACI does not change the reported source of the other properties. Because these properties normally come from different sources (for example default, network_representation, derived and operation_strategy), the aggregate getControlSource() is usually mixed even before any ACI command. To detect ACI involvement, check for "aci" in getControlSources(corridorID).values() or read getEffectiveRestriction().

getClosure() returns {"closed": ..., "closed_until": ..., "reason": ..., "source": ...}; closed_until is 0.0 while the corridor is open.

getOccupancy() and getDensity() are live: they count the same vehicles as getVehicleIDs() at the same instant. getFlow() is the entry flow over the last 300 s, scaled to vehicles per hour. It is taken from the element-state monitor, which refreshes once per second of simulation time, so it can be up to 1 s old.

getEffectiveRestriction() returns only the overrides ACI has active on the corridor, as a dictionary with any of the keys closure_state ("closed" or "open"), closed_until, closure_reason, speed_limit, capacity and tactical_rule. It is {} when ACI has no override on the corridor. It does not report an internal or XML closure, the baseline speed limit or the strategy capacity. Read the effective values, whatever their source, with getClosure(), getSpeedLimit(), getCapacity() and getTacticalRule().

Not every strategic model reads a corridor capacity. A capacity override takes effect only under element_centric_dcb, or under capacity_limited_departure with capacity_scope set to route_bottleneck or resource_path. Under any other setup the override is recorded and reported, by getCapacity() with source aci, but nothing meters on it. That covers running with no strategic model, the route and origin meter scopes, and the 4d_volume, 4d_volume_opt and element_centric_dcb_opt preflight models. setCapacity() returns consumed (True or False) to say whether the active model reads the value, and the corridor snapshot carries the same flag as capacity_consumed.

Change State

Command Python method
Set an ACI closed override aci.corridor.close(corridorID, *, duration=None, reason="aci")
Set an ACI open override aci.corridor.open(corridorID, *, reason="aci")
Return to baseline closure state aci.corridor.clearClosureOverride(corridorID)
Set a speed restriction aci.corridor.setSpeedRestriction(corridorID, speed)
Return to baseline speed restriction aci.corridor.clearSpeedRestriction(corridorID)
Override capacity (vehicle/hour) aci.corridor.setCapacity(corridorID, capacity_veh_per_hour)
Return to baseline capacity aci.corridor.clearCapacity(corridorID)
Override the local tactical rule aci.corridor.setTacticalRule(corridorID, rule)
Return to the operation-strategy/internal rule aci.corridor.clearTacticalRule(corridorID)

Typed methods make the scope, units, validation, and clearing behavior explicit. There is no generic corridor parameter store in the public ACI.

duration=None closes the corridor for the rest of the run, the final step included, until clearClosureOverride(); getClosure()["closed_until"] reports the run end time. A finite positive duration expires automatically and reveals the latest internal closure state. An automatic expiry is not a controller command: it is not added to the intervention log and does not count in aci.simulation.getStatistics()["aci_interventions"]. open() likewise remains an ACI open override until it is cleared. Closure durations, speed restrictions, and capacity overrides must be finite and greater than zero. Tactical rule is one of newell, idm, or constant_speed; hard separation remains active for every rule.

Successful state-changing calls return a dictionary containing at least ok, action, target_id, and time, plus command-specific effective values. Invalid IDs, values, or rules raise ACIException without partially changing the target.