Example #1
0
def get_info_aircraft(operator, model, registration, cn_ln):
	a1 = Aircraft.Aircraft(operator, model, registration, cn_ln)
	a1.to_string()
	a1.get_type()
	a1.get_company()
	a1.get_cn()
	a1.get_fl()
	print("\n\t\033[1;32;40m Writing object in a file\033[0m\n")
	Aircraft.obj_to_json(a1)
Example #2
0
def get_info_victims(location, operator, flight_num, model, registration, cn_ln, aboard, fatalities, ground):
	a1 = Aircraft.Aircraft(operator, model, registration, cn_ln)
	c1 = Crash.Crash(a1, location, flight_num)
	v1 = Victims.Victims(c1, aboard, fatalities,ground)
	v1.to_string(c1)
	v1.victims_role()
	v1.alive_passengers()
	v1.alive_crew()
	print("\n\t\033[1;32;40m Writing object in a file\033[0m\n")
	Victims.obj_to_json(v1)
Example #3
0
def get_info_crash(location, operator, model, flight_num, cn_ln):
	a1 = Aircraft.Aircraft(operator, model, flight_num, cn_ln)
	c1 = Crash.Crash(a1, location, flight_num)
	c1.to_string(a1)
	print("\n\t\033[1;32;40m Writing object in a file\033[0m\n")
	Crash.obj_to_json(c1)