Exemple #1
0
 def get_not_working_crew(self, datetime_object):
     '''Returns a list of instances of the crew that
      is not working on a specific day.'''
     return CrewLL().getNotWorkingCrew(datetime_object)
Exemple #2
0
 def get_work_schedule(self, start_date, end_date, crew_id):
     '''Returns a list of instances of the voyages that a 
     specific crew member is working in
     for an inputted date.'''
     return CrewLL().getWorkSchedule(start_date, end_date, crew_id)
Exemple #3
0
 def get_flight_att(self):
     '''Returns a list of instances of all flight attendants.'''
     return CrewLL().getFlightAtt()
Exemple #4
0
 def get_working_crew(self, datetime_object):
     '''Returns a formatted string of crew that are
      working at an inputted time'''
     return CrewLL().getWorkingCrew(datetime_object)
Exemple #5
0
 def get_crew(self):
     ''' Fetches all crew members and returns a list of instances.'''
     return CrewLL().getCrew()
Exemple #6
0
 def get_pilots(self):
     ''' Fetches all pilots and returns a list of instances.'''
     return CrewLL().getPilots()
Exemple #7
0
 def getQualifiedCrew(self, depart_time, plane_insignia):
     '''Returns a list of instances of crew that can fly a 
     specific plane at a specific time'''
     return CrewLL().getQualifiedCrew(depart_time, plane_insignia)
Exemple #8
0
 def doesIDExist(self, crew_id):
     '''Checks if a crew member already has inputted ID'''
     return CrewLL().doesIDExist(crew_id)
Exemple #9
0
 def changeCrewInfo(self, employee):
     '''Adds changed info of an existing employee chosen by user to file.'''
     return CrewLL().ChangeCrewInfo(employee)
Exemple #10
0
 def addCrew(self, info_list):
     '''Takes a list of information for a specific
     crew member and adds them to file.'''
     return CrewLL().addCrew(info_list)
Exemple #11
0
 def sortPilotsByLicense(self):
     '''Returns a list of class instances of all pilots, 
     sorted by their licenses.'''
     return CrewLL().sortPilotsByLicense()
Exemple #12
0
 def get_licensed_pilots(self, pilot_license):
     '''Returns a list of class instances of the pilots
      that have the inputted license.'''
     return CrewLL().getLicensedPilots(pilot_license)
Exemple #13
0
 def get_crew_member_by_id(self, crew_id):
     '''Returns the class instance for the crew member that
      has the inputted crew id.'''
     return CrewLL().getOneCrewMember(crew_id)