Skip to content

Build Legs based on the actual request information, and not the PlanRequest #20

Description

@SantiagoAOM

def __init__(self, status:VRL_STATES, destination_pos:tuple, rq_dict:tp.Dict[tp.Any, RequestBase], power:float=0.0, duration:float=None, route:tp.List[int]=[], locked:bool=False,

In theory, the VehicleRouteLeg constructor is loading the rq_dict of type RequestBase. However, rq_dict has PlanRequest type as it comes from boarding_dict (in FleetControlBase.py), which originates from self.rq_dict : Dict[Any, PlanRequest] = {}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions