Contents Menu Expand Light mode Dark mode Auto light/dark, in light mode Auto light/dark, in dark mode Skip to content
UXsim++: Traffic Simulation for Python v0 documentation
UXsim++: Traffic Simulation for Python v0 documentation

Contents:

  • uxsimpp
  • Technical Reference
    • uxsimpp.World
    • uxsimpp.Node
    • uxsimpp.Link
    • uxsimpp.Vehicle
    • uxsimpp.trafficppy.World
    • uxsimpp.trafficppy.Node
    • uxsimpp.trafficppy.Link
    • uxsimpp.trafficppy.Vehicle
Back to top
View this page

uxsimpp.trafficppy.Link¶

class uxsimpp.trafficppy.Link(self: uxsimpp.trafficppy.Link, world: uxsimpp.trafficppy.World, link_name: str, start_node_name: str, end_node_name: str, vmax: float, kappa: float, length: float, merge_priority: float, capacity_out: float)¶

Bases: pybind11_object

Create a new Link

__init__(self: uxsimpp.trafficppy.Link, world: uxsimpp.trafficppy.World, link_name: str, start_node_name: str, end_node_name: str, vmax: float, kappa: float, length: float, merge_priority: float, capacity_out: float) → None¶

Create a new Link

Methods

__init__(self, world, link_name, ...)

Create a new Link

inflow(t1, t2)

outflow(t1, t2)

set_travel_time(self)

Set travel time

update(self)

Update link state

Attributes

W

Reference to World

arrival_curve

Arrival curve

capacity

Link capacity

capacity_out

Output capacity

cum_arrival

Cumulative arrival (alias)

cum_departure

Cumulative departure (alias)

delta

Platoon spacing

departure_curve

Departure curve

end_node

End node

id

Link ID

kappa

Jam density

length

Link length

merge_priority

Merge priority

name

Link name

signal_group

Signal group

start_node

Start node

tau

Reaction time

traveltime_instant

Instantaneous travel time

traveltime_real

Real travel time

u

Maximum speed (alias)

vehicles

Vehicles on link

vmax

Maximum speed

w

Backward wave speed

property W¶

Reference to World

__init__(self: uxsimpp.trafficppy.Link, world: uxsimpp.trafficppy.World, link_name: str, start_node_name: str, end_node_name: str, vmax: float, kappa: float, length: float, merge_priority: float, capacity_out: float) → None¶

Create a new Link

property arrival_curve¶

Arrival curve

property capacity¶

Link capacity

property capacity_out¶

Output capacity

property cum_arrival¶

Cumulative arrival (alias)

property cum_departure¶

Cumulative departure (alias)

property delta¶

Platoon spacing

property departure_curve¶

Departure curve

property end_node¶

End node

property id¶

Link ID

inflow(t1, t2)¶
property kappa¶

Jam density

property length¶

Link length

property merge_priority¶

Merge priority

property name¶

Link name

outflow(t1, t2)¶
set_travel_time(self: uxsimpp.trafficppy.Link) → None¶

Set travel time

property signal_group¶

Signal group

property start_node¶

Start node

property tau¶

Reaction time

property traveltime_instant¶

Instantaneous travel time

property traveltime_real¶

Real travel time

property u¶

Maximum speed (alias)

update(self: uxsimpp.trafficppy.Link) → None¶

Update link state

property vehicles¶

Vehicles on link

property vmax¶

Maximum speed

property w¶

Backward wave speed

Next
uxsimpp.trafficppy.Vehicle
Previous
uxsimpp.trafficppy.Node
Copyright © 2025 Toru Seo
Made with Sphinx and @pradyunsg's Furo
On this page
  • uxsimpp.trafficppy.Link
    • Link
      • Link.__init__()
      • Link.W
      • Link.__init__()
      • Link.arrival_curve
      • Link.capacity
      • Link.capacity_out
      • Link.cum_arrival
      • Link.cum_departure
      • Link.delta
      • Link.departure_curve
      • Link.end_node
      • Link.id
      • Link.inflow()
      • Link.kappa
      • Link.length
      • Link.merge_priority
      • Link.name
      • Link.outflow()
      • Link.set_travel_time()
      • Link.signal_group
      • Link.start_node
      • Link.tau
      • Link.traveltime_instant
      • Link.traveltime_real
      • Link.u
      • Link.update()
      • Link.vehicles
      • Link.vmax
      • Link.w