bloqade.lanes.bytecode.encoding.LaneAddress
← Module overview
class
property
sourceproperty
sourceproperty
sourceproperty
sourceproperty
sourceproperty
sourcemethod
method
sourcemethod
source
classLaneAddress¶source
bloqade.lanes.bytecode.encoding.LaneAddress
Bases: KirinRustWrapper[_RustLaneAddress]
Address identifying a transport lane.
Signature
class LaneAddress(move_type: MoveType, word_id: int, site_id: int, bus_id: int, direction: Direction = Direction.FORWARD, zone_id: int = 0)Parameters
| Name | Type | Default | Description |
|---|---|---|---|
move_type | MoveType | required | |
word_id | int | required | |
site_id | int | required | |
bus_id | int | required | |
direction | Direction | Direction.FORWARD | |
zone_id | int | 0 |
propertymove_type¶source
bloqade.lanes.bytecode.encoding.LaneAddress.move_type
move_type: MoveTypepropertyzone_id¶source
bloqade.lanes.bytecode.encoding.LaneAddress.zone_id
zone_id: intpropertyword_id¶source
bloqade.lanes.bytecode.encoding.LaneAddress.word_id
word_id: intpropertysite_id¶source
bloqade.lanes.bytecode.encoding.LaneAddress.site_id
site_id: intpropertybus_id¶source
bloqade.lanes.bytecode.encoding.LaneAddress.bus_id
bus_id: intpropertydirection¶source
bloqade.lanes.bytecode.encoding.LaneAddress.direction
direction: Directionmethodreverse¶source
bloqade.lanes.bytecode.encoding.LaneAddress.reverse
methodsrc_site¶source
bloqade.lanes.bytecode.encoding.LaneAddress.src_site
def src_site() -> LocationAddressGet the source site as a LocationAddress.
Returns
LocationAddress
methodreplace¶source
bloqade.lanes.bytecode.encoding.LaneAddress.replace
Signature
def replace(*, move_type: MoveType | None = None, word_id: int | None = None, site_id: int | None = None, bus_id: int | None = None, direction: Direction | None = None, zone_id: int | None = None) -> SelfReturn a copy, optionally replacing fields.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
move_type | MoveType | None | None | |
word_id | int | None | None | |
site_id | int | None | None | |
bus_id | int | None | None | |
direction | Direction | None | None | |
zone_id | int | None | None |
Returns
Self