#Makers/week1 #Makers/Weekend_Challenge
The challenge this weekend was to create a program that simulates an Airport. Planes would be coming (landing) and going (taking off) from the Airport. Weather also plays a part, as an Airport will only allow a Plane to take off or land if the conditions are right i.e. Sunny. Sometimes the Weather will be stormy and so the Airport will instruct planes that they cannot take off.
As an air traffic controller So I can get passengers to a destination I want to instruct a plane to land at an airport
As an air traffic controller So I can get passengers on the way to their destination I want to instruct a plane to take off from an airport and confirm that it is no longer in the airport
Airport | Collaborators |
---|---|
Can receive planes | Plane, Airport |
Can release planes | Plane, Airport |
Can count planes |
Plane | Collaborators |
---|---|
Can take off | Airport |
Can Land | Airport |
As an air traffic controller To ensure safety I want to prevent takeoff when weather is stormy
As an air traffic controller To ensure safety I want to prevent landing when weather is stormy
Weather | Collaborators |
---|---|
Can be Sunny | Airport |
Can Be Stormy | Airport |
As an air traffic controller To ensure safety I want to prevent landing when the airport is full
As the system designer So that the software can be used for many different airports I would like a default airport capacity that can be overridden as appropriate
Airport
- Has a Default Capacity
- Knows when capacity is full
- Capacity can be changed
An “edge case” is an exception to a rule, or a situation that requires additional or special handling.
Edge Cases that will arise from this program:
- Planes can only take off from airports they are in.
- Planes that are already flying cannot take off and/or be in an airport.
- planes that are landed cannot land again and must be in an airport