Crew context model
1. Overview
Manages crew members, schedules, and transit times in the flight recovery scheduling system, providing crew data required for feasibility checking and cost calculation in bunch generation.
1. Dependent Contexts
- task (Flight Task)
- infrastructure (Infrastructure)
2. Concepts / Entities
1. Crew Member (CrewMember)
A crew member with identity information, divided into pilots and non-pilots.
2. Pilot (CrewPilotMember)
A crew member who is a pilot, delegating identity fields to the underlying Pilot.
PilotRank).
Pilot object of pilot
3. Crew
A crew assigned to a flight task, composed of pilot and non-pilot members.
4. Crew Schedule (CrewSchedule)
A crew member's schedule mapping flight tasks to their assigned rank.
5. Transit Time (TransitTime)
Transit time scenario and its required duration based on aircraft and airport relationships.
3. Variables
The crew context does not directly define optimization variables; its data serves as input parameters for bunch generation.
4. Predicates
1. Crew Member Type
isPilot : Crew member CrewPilotMember).
isNotPilot : Crew member CrewNotPilotMember).
2. Transit Time Scene
isSameAircraft : Previous and next tasks use the same aircraft.
isDomesticNotSameAircraft : Different aircraft but domestic airport.
isInternationalNotSameAircraft : Different aircraft and international airport.
5. Sets
1. Crews
2. Crew Members
3. Schedules
4. Transit Times
6. Intermediate Values
1. Transit Time Lookup
Description: Transit time for given consecutive flight tasks.
7. Assertions
1. Crew Member Completeness
Description: Every crew must contain at least one member.
2. Schedule Continuity
Description: In a crew member's schedule, the arrival airport of a consecutive flight task must match the departure airport of the next task.
8. Constraints
The crew context does not directly define optimization constraints; its data indirectly affects bunch generation feasibility via
ConnectionTimeCalculatorandRuleChecker.
9. Objective Function (if applicable)
The crew context does not directly define an objective function.
10. Algorithm References
No independent algorithm references in this context.
11. Ubiquitous Language
| Term | Symbol | Definition |
|---|---|---|
| Crew | A set of crew members assigned to a flight task | |
| Crew Member | A crew member with identity information | |
| Pilot | A crew member who operates the aircraft | |
| Schedule | Flight task assignments for a crew member | |
| Transit Time | Required interval between consecutive flights |
12. Design Decisions
| Decision | Alternatives | Rationale | Date |
|---|---|---|---|
| Separate pilot/non-pilot modeling | Unified CrewMember type | Different rank systems; separation is clearer | - |
| Enumerate transit time scenes | Continuous function modeling | Limited number of scenes; enumeration is more intuitive | - |
13. Change Log
| Version | Change | Reason |
|---|---|---|
| v1 | Initial implementation | Basic crew domain modeling |