Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
eclipse
GitHub Repository: eclipse/sumo
Path: blob/main/tests/complex/traci/trafficlight/constraints/testsuite.complex
169689 views
# Tests the constraint API
getConstraints

# Tests the constraint API
getConstraints_types

# reverse constraint-based train order and adapt other constraints to avoid deadlock
swapConstraints

# reverse constraint-based train order and adapt other constraints to avoid deadlock.
# loadState before swap and then swap again
swapConstraints_loadState
removeConstraints_all
removeConstraints_signalId
removeConstraints_tripId
removeConstraints_foeId
removeConstraints_foeSignal

# update constraints after route change (remove unfulfillable)
updateConstraints

# adding a constraint
addConstraint

# tests for automatic deadlock-avoidance after swapConstraints
swap