Junction Domain
The junction domain represents controlled crossing, merging, and diverging points. The public term is junction; the broader internal network-node type is not exposed as an ACI domain.
Retrieve Information
| Information | Python method |
|---|---|
| Junction IDs | aci.junction.getIDList() |
| Junction count | aci.junction.getCount() |
| Complete JSON-compatible state | aci.junction.getSnapshot(junctionID) |
| Junction type | aci.junction.getType(junctionID) |
| 3D position | aci.junction.getPosition3D(junctionID) |
| Incoming corridors | aci.junction.getIncomingCorridorIDs(junctionID) |
| Outgoing corridors | aci.junction.getOutgoingCorridorIDs(junctionID) |
| Vehicle holding the junction access grant (at most one) | aci.junction.getVehicleIDs(junctionID) |
| Vehicles registered for access at the stop line, in FCFS order | aci.junction.getQueue(junctionID) |
| Whether a vehicle holds the access grant | aci.junction.getOccupancy(junctionID) |
Effective closure: closed, closed_until, reason, and source |
aci.junction.getClosure(junctionID) |
| Closure source only | aci.junction.getClosureSource(junctionID) |
| Effective tactical rule | aci.junction.getTacticalRule(junctionID) |
| Tactical-rule source | aci.junction.getTacticalRuleSource(junctionID) |
| All property sources | aci.junction.getControlSources(junctionID) |
Aggregate source (mixed when they differ) |
aci.junction.getControlSource(junctionID) |
Change State
| Command | Python method |
|---|---|
| Set an ACI closed override | aci.junction.close(junctionID, *, duration=None, reason="aci") |
| Set an ACI open override | aci.junction.open(junctionID, *, reason="aci") |
| Return to baseline closure state | aci.junction.clearClosureOverride(junctionID) |
| Override the local tactical rule | aci.junction.setTacticalRule(junctionID, rule) |
| Return to the operation-strategy/internal rule | aci.junction.clearTacticalRule(junctionID) |
getVehicleIDs() lists the vehicle that currently holds the junction’s
access grant, not every vehicle inside the intersection zone. The grant is
released 25 m past the junction (protected_exit_distance), while the
intersection zone extends 40 m. Under uncontrolled, the grant is taken at
braking distance, before the vehicle enters the zone. getQueue() lists
only the vehicles registered for access at the stop line. Vehicles stopped
behind them are still on the incoming corridors: read them with
aci.corridor.getVehicleIDs() on getIncomingCorridorIDs(), and check their
state with aci.vehicle.getEffectiveHold().
As with corridors, open() creates an explicit open override;
clearClosureOverride() restores the current baseline.
duration=None keeps a closure override active until it is cleared, through
the final step of the run; a finite positive duration expires automatically
(an expiry is not logged as an ACI intervention), and a zero, negative, or
non-finite duration is rejected. Tactical rule is either
fcfs or uncontrolled. The uncontrolled baseline removes ordinary FCFS
sequencing but retains the non-bypassable hard node-conflict guard.
The property-source map has separate closure and tactical_rule entries, so
a tactical-rule override never makes an internal closure appear to come from
ACI. The two normally come from different sources, so the aggregate
getControlSource() is usually mixed even before any ACI command; check for
"aci" in getControlSources(junctionID).values() instead.
getOccupancy() is a bool here, unlike the corridor domain’s vehicle count.
Successful commands return ok, action, target_id, and time together
with command-specific values. Invalid commands raise ACIException without a
partial state change.