Skip to content

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

Open

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] = {}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions