Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create new route providers and use them in the demo scheduler #257

Open
Random-Ranger opened this issue Nov 30, 2020 · 0 comments
Open

Create new route providers and use them in the demo scheduler #257

Random-Ranger opened this issue Nov 30, 2020 · 0 comments
Labels
epic-Schedules new-feature A new feature (not an enhancement to an existing one)
Milestone

Comments

@Random-Ranger
Copy link
Contributor

Random-Ranger commented Nov 30, 2020

Some thoughts for future development [from #247 ] :

Don't you think the routes should be loaded by the scheduler

Probably yes. In the next steps, we can make the scheduler pick selected routes out of all the routes available from one or more providers. The routes can be selected incrementally:

  1. When the user starts a flight at an airport - load routes for the departure airport
  2. When the user files a flight plan - load routes for the destination airport and for the en-route
  3. When the user diverts to an alternative airport ...
  4. etc

We should have providers for the different operations types

  • Airlines (static or online based on user preference)
  • Cargo ?
  • GA (random based on supported aircraft ranges)

I think that every provider can provide multiple operation types. For example, if a provider implements integration with an online service that provides data for airlines, GA aircraft, and gliders, then such categorization wouldn't be helpful.

Instead, we can add an operation type parameter to the abstract query function. And according to the algorithm you describe below, at each step, we query every provider passing it the operation type that corresponds to the step.

Route providers should only provide routes for supported aircraft

I think you implemented this - you already limit the retrieval of the routes to B738?

  • The scheduler could then work that way :

    • List for each operation type the gates available at the current airport

    • Load route providers for supported operations types

    • Then for each supported operation type and until there are no more routes or the load factor is reached:

      • pick a route
      • generate a flight plan/pilot/aircraft
      • choose a gates that matches the flight plan

I can file an issue if you think that's a good enough basis for discussion.

Yes, sure. Let's track it.

Originally posted by @felix-b in #247 (comment)

@crankywright crankywright added this to the backlog milestone Dec 1, 2020
@crankywright crankywright added new-feature A new feature (not an enhancement to an existing one) epic-Schedules labels Dec 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
epic-Schedules new-feature A new feature (not an enhancement to an existing one)
Projects
None yet
Development

No branches or pull requests

2 participants