Overview

Summary

ContactDonateImprint


Appendix E-23: CREWED FLIGHT (UI prompt)


CrewedFlightMissionModuleSpaceX

Properties (4)

PropertyTypeEntityReferenceModule
(1) DestinationSTRINGCrewedFlight
(2) DurationDaysSTRINGCrewedFlight
(3) MissionINTCrewedFlightMissionMissionModule
(4) NotesSTRINGCrewedFlight


Module Interfaces (7)

Remote MethodLocal MethodModuleHTTP-MethodReferences
(1) /crewedflight/{id}updateCrewedFlightById(crewedflight)MissionModulePUTCrewedFlight
(2) /crewedflight/{id}deleteCrewedFlightById(id)MissionModuleDELETECrewedFlight
(3) /crewedflight/mission/{id}findAllCrewedFlightOfMission(id)MissionModuleGETMission CrewedFlight
(4) /crewedflight/{id}findCrewedFlightById(id)MissionModuleGETCrewedFlight
(5) /crewedflightinsertCrewedFlight(crewedflight)MissionModulePOSTCrewedFlight
(6) /crewedflightfindAllCrewedFlight()MissionModuleGETCrewedFlight
(7) /crewassignment/crewedflight/{id}findAllCrewAssignmentOfCrewedFlight(id)PersonModuleGETCrewedFlight CrewAssignment





Example:

final CrewedFlight crewedflight = (CrewedFlight) invokeModule(MISSION_MODULE + "/crewedflight/" + id, CrewedFlight.class);
if (crewedflight != null) {
    final Mission mission1 = (Mission) invokeModule(MISSION_MODULE + "/mission/" + crewedflight.getMission().getId(), Mission.class);
    if (mission1 != null) {
        final Spacecraft spacecraft2 = (Spacecraft) invokeModule(MISSION_MODULE + "/spacecraft/" + mission1.getSpacecraft().getId(), Spacecraft.class);
        if (spacecraft2 != null) {
            final Company company3 = (Company) invokeModule(COMPANY_MODULE + "/company/" + spacecraft2.getCompany().getId(), Company.class);
            if (company3 != null) {
            }
        }
        final Contract contract4 = (Contract) invokeModule(COMPANY_MODULE + "/contract/" + mission1.getContract().getId(), Contract.class);
        if (contract4 != null) {
            final Program program5 = (Program) invokeModule(COMPANY_MODULE + "/program/" + contract4.getProgram().getId(), Program.class);
            if (program5 != null) {
                final Company company6 = (Company) invokeModule(COMPANY_MODULE + "/company/" + program5.getCompany().getId(), Company.class);
                if (company6 != null) {
                }
            }
            final Company company7 = (Company) invokeModule(COMPANY_MODULE + "/company/" + contract4.getCompany().getId(), Company.class);
            if (company7 != null) {
            }
            final Customer customer8 = (Customer) invokeModule(CUSTOMER_MODULE + "/customer/" + contract4.getCustomer().getId(), Customer.class);
            if (customer8 != null) {
            }
        }
        final Customer customer9 = (Customer) invokeModule(CUSTOMER_MODULE + "/customer/" + mission1.getCustomer().getId(), Customer.class);
        if (customer9 != null) {
        }
        final Company company10 = (Company) invokeModule(COMPANY_MODULE + "/company/" + mission1.getCompany().getId(), Company.class);
        if (company10 != null) {
        }
        final LaunchVehicle launchvehicle11 = (LaunchVehicle) invokeModule(LAUNCH_VEHICLE_MODULE + "/launchvehicle/" + mission1.getLaunchVehicle().getId(), LaunchVehicle.class);
        if (launchvehicle11 != null) {
            final Company company12 = (Company) invokeModule(COMPANY_MODULE + "/company/" + launchvehicle11.getCompany().getId(), Company.class);
            if (company12 != null) {
            }
        }
        final LandingSite landingsite13 = (LandingSite) invokeModule(MISSION_MODULE + "/landingsite/" + mission1.getLandingSite().getId(), LandingSite.class);
        if (landingsite13 != null) {
            final Facility facility14 = (Facility) invokeModule(FACILITY_MODULE + "/facility/" + landingsite13.getFacility().getId(), Facility.class);
            if (facility14 != null) {
                final Company company15 = (Company) invokeModule(COMPANY_MODULE + "/company/" + facility14.getCompany().getId(), Company.class);
                if (company15 != null) {
                }
            }
        }
        final Program program16 = (Program) invokeModule(COMPANY_MODULE + "/program/" + mission1.getProgram().getId(), Program.class);
        if (program16 != null) {
            final Company company17 = (Company) invokeModule(COMPANY_MODULE + "/company/" + program16.getCompany().getId(), Company.class);
            if (company17 != null) {
            }
        }
        final MissionType missiontype18 = (MissionType) invokeModule(MISSION_MODULE + "/missiontype/" + mission1.getMissionType().getId(), MissionType.class);
        if (missiontype18 != null) {
        }
        final Orbit orbit19 = (Orbit) invokeModule(MISSION_MODULE + "/orbit/" + mission1.getOrbit().getId(), Orbit.class);
        if (orbit19 != null) {
        }
        final LaunchSite launchsite20 = (LaunchSite) invokeModule(FACILITY_MODULE + "/launchsite/" + mission1.getLaunchSite().getId(), LaunchSite.class);
        if (launchsite20 != null) {
            final Facility facility21 = (Facility) invokeModule(FACILITY_MODULE + "/facility/" + launchsite20.getFacility().getId(), Facility.class);
            if (facility21 != null) {
                final Company company22 = (Company) invokeModule(COMPANY_MODULE + "/company/" + facility21.getCompany().getId(), Company.class);
                if (company22 != null) {
                }
            }
        }
    }
}
return crewedflight;


Overview

Summary

ContactDonateImprint