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

Add Runway Example to Tutorial #44

Merged
merged 1 commit into from
Jul 19, 2024
Merged

Add Runway Example to Tutorial #44

merged 1 commit into from
Jul 19, 2024

Conversation

elaustell
Copy link
Collaborator

This is a more complicated example of something proven in CN that Benjamin and I thought might be useful.

@elaustell elaustell requested a review from bcpierce00 July 16, 2024 16:57
@elaustell elaustell force-pushed the austell_runway_example branch from 19430c7 to 2a2a737 Compare July 17, 2024 13:49
@elaustell elaustell force-pushed the austell_runway_example branch from 2a2a737 to 20aef3c Compare July 17, 2024 14:08
Copy link
Collaborator

@thatplguy thatplguy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a great example 🙂


4. Let’s say it takes 5 minutes for a plane to arrive or depart. During these 5 minutes, no other plane may use the runway. We can keep track of how long a plane has been on the runway with the `Runway_Counter`. If the `Runway_Counter` is at 0, then there is currently no plane using the runway, and it is clear for another plane to begin arriving or departing. Once the `Runway_Counter` reaches 5, we can reset it at the next clock tick. One clock tick represents 1 minute.

5. If there is at least one plane waiting to depart and no cars waiting to arrive, then the runway is set to departure mode (and vice versa for arrivals).
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
5. If there is at least one plane waiting to depart and no cars waiting to arrive, then the runway is set to departure mode (and vice versa for arrivals).
5. If there is at least one plane waiting to depart and no planes waiting to arrive, then the runway is set to departure mode (and vice versa for arrivals).

@cp526 cp526 merged commit 49898b0 into main Jul 19, 2024
1 check passed
@elaustell elaustell deleted the austell_runway_example branch July 23, 2024 14:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants