Module Expr Str Assign NameStore Str Import alias ImportFrom alias identifier ImportFrom alias identifier ImportFrom alias identifier ImportFrom alias identifier ImportFrom alias identifier ImportFrom alias identifier ImportFrom alias identifier ImportFrom alias identifier ImportFrom alias identifier ImportFrom alias identifier FunctionDef arguments args NameParam defaults kwarg body Expr Str If AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad If BoolOpOr UnaryOpNot NameLoad UnaryOpNot AttributeLoad AttributeLoad NameLoad attr attr body Raise Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign NameStore ListComp NameLoad comprehension NameStore NameLoad CompareNotIn NameLoad NameLoad Return Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list Call AttributeLoad NameLoad attr keyword Str keyword ListLoad Str keyword AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults kwarg body Expr Str If AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad If BoolOpOr UnaryOpNot NameLoad UnaryOpNot AttributeLoad AttributeLoad NameLoad attr attr body Raise Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword NameLoad Assign NameStore ListLoad AttributeLoad NameLoad attr For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body AugAssignAdd NameStore ListLoad Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Return NameLoad decorator_list Call AttributeLoad NameLoad attr keyword Str keyword ListLoad Str keyword AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam defaults kwarg body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad If BoolOpOr UnaryOpNot NameLoad UnaryOpNot AttributeLoad AttributeLoad NameLoad attr attr body Raise Call AttributeLoad NameLoad attr If UnaryOpNot NameLoad body Raise Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Return NameLoad decorator_list Call AttributeLoad NameLoad attr keyword Str keyword ListLoad Str Str keyword AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam defaults kwarg body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad If BoolOpOr UnaryOpNot NameLoad UnaryOpNot AttributeLoad AttributeLoad NameLoad attr attr body Raise Call AttributeLoad NameLoad attr If UnaryOpNot NameLoad body Return Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Return NameLoad decorator_list Call AttributeLoad NameLoad attr keyword Str keyword ListLoad Str Str keyword AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad NameLoad decorator_list Call AttributeLoad NameLoad attr keyword Str keyword ListLoad Str Str keyword AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad NameLoad decorator_list Call AttributeLoad NameLoad attr keyword Str keyword ListLoad Str Str keyword AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Expr Str Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad Return Dict AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad decorator_list Call AttributeLoad NameLoad attr keyword Str keyword ListLoad Str Str Str Str Str keyword AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore AttributeLoad AttributeLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad Return NameLoad decorator_list Call AttributeLoad NameLoad attr keyword Str keyword ListLoad Str Str keyword AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Expr Str Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad Return Dict AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad decorator_list Call AttributeLoad NameLoad attr keyword Str keyword ListLoad Str Str Str Str Str keyword AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword NameLoad Return Call AttributeLoad NameLoad attr NameLoad decorator_list Call AttributeLoad NameLoad attr keyword Str keyword ListLoad Str keyword AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword NameLoad If UnaryOpNot NameLoad body Raise Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr keyword SubscriptLoad NameLoad Index Num keyword SubscriptLoad NameLoad Index Num keyword SubscriptLoad NameLoad Index Num Return AttributeLoad NameLoad attr decorator_list Call AttributeLoad NameLoad attr keyword Str keyword ListLoad Str Str keyword AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword NameLoad Assign NameStore ListLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword AttributeLoad NameLoad attr For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore ListLoad For NameStore NameLoad body AugAssignAdd NameStore Call AttributeLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword NameLoad attr keyword Call AttributeLoad AttributeLoad NameLoad attr attr Return Call AttributeLoad NameLoad attr NameLoad decorator_list Call AttributeLoad NameLoad attr keyword Str keyword ListLoad Str keyword AttributeLoad NameLoad attr
N/A N/A 
   Copyright 2013, 2014 Ricardo Tubio-Pardavila

   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.
 N/A __author__ rtubiopa@calpoly.edu N/A rpc4django django.core exceptions django_ex services.configuration.models segments segment_models services.leop push launch_push services.leop utils launch_utils services.leop.models launch launch_models services.leop.models ufos ufo_models services.leop.jrpc.serializers launch launch_serial services.simulation.models passes pass_models services.simulation.jrpc.serializers passes pass_serializers website settings satnet_settings list_groundstations N/A N/A launch_id N/A kwargs N/A N/A JRPC method (LEOP service).
    Returns the list of groundstations available for creating this LEOP
    system. In case a Ground Station is already in use for this system, it will
    not be listed.

    # user must be obtained from the request, since this has already been
    # validated by the authentication backend

    :param launch_id: Identifier of the LEOP cluster.
    :param kwargs: Dictionary with additional variables like the HTTP request
                    itself (defined by RPC4Django).
    :return: List of the identifiers of the available groundstations.
     N/A N/A satnet_settings JRPC_PERMISSIONS N/A N/A http_request N/A N/A kwargs get request None N/A N/A N/A http_request N/A N/A N/A http_request user is_staff N/A N/A N/A N/A django_ex PermissionDenied N/A leop_cluster N/A N/A N/A N/A launch_models Launch objects get identifier launch_id N/A u_gs N/A N/A N/A leop_cluster groundstations all N/A all_gs N/A N/A N/A N/A segment_models GroundStation objects all N/A a_gs N/A item N/A item all_gs N/A item u_gs N/A N/A N/A launch_serial serialize_gs_lists a_gs u_gs N/A N/A N/A rpc4django rpcmethod name leop.gs.list signature N/A String login_required N/A satnet_settings JRPC_LOGIN_REQUIRED list_spacecraft N/A N/A launch_id N/A kwargs N/A N/A JRPC method
    Returns the list of spacecraft registered for this launch.
    system.
    :param launch_id: Identifier of the LEOP cluster.
    :param kwargs: Dictionary with additional variables like the HTTP request
                    itself (defined by RPC4Django).
    :return: List of the identifiers of the spacecraft associated with the
    launch
     N/A N/A satnet_settings JRPC_PERMISSIONS N/A N/A http_request N/A N/A kwargs get request None N/A N/A N/A http_request N/A N/A N/A http_request user is_staff N/A N/A N/A N/A django_ex PermissionDenied N/A launch N/A N/A N/A N/A launch_models Launch objects get identifier launch_id N/A scs N/A N/A launch cluster_spacecraft_id N/A identified_o N/A N/A N/A launch identified_objects all N/A N/A scs N/A N/A N/A launch_utils generate_object_sc_identifier launch_id N/A identified_o identifier N/A scs N/A N/A N/A rpc4django rpcmethod name leop.sc.list signature N/A String login_required N/A satnet_settings JRPC_LOGIN_REQUIRED add_groundstations N/A N/A launch_id groundstations N/A kwargs N/A N/A JRPC method
    Adds the array of GroundStations to the LEOP cluster. If any of the given
    GroundStation identifiers does not exist, the operation is cancelled and
    an 'ObjectDoesNotExist' exception is raised.

    :param launch_id: Identifier of the LEOP cluster
    :param groundstations: List with the GroundStations to be added
    :param kwargs: Additional JRPC parameters dictionary
    :return: Identifier of the just-updated LEOP cluster
     N/A http_request N/A N/A kwargs get request None N/A N/A N/A http_request N/A N/A N/A http_request user is_staff N/A N/A N/A N/A django_ex PermissionDenied N/A N/A groundstations N/A N/A N/A Exception No groundstations provided N/A result N/A N/A launch_serial serialize_leop_id N/A N/A N/A N/A launch_models Launch objects add_ground_stations launch_id groundstations N/A N/A N/A N/A launch_push LaunchPush trigger_gss_assigned launch_id groundstations N/A result N/A N/A N/A rpc4django rpcmethod name leop.gs.add signature N/A String Object login_required N/A satnet_settings JRPC_LOGIN_REQUIRED remove_groundstations N/A N/A launch_id groundstations N/A kwargs N/A N/A JRPC method
    Removes the array of GroundStations from the LEOP cluster. If any of the
    given GroundStation identifiers does not exist, the operation is
    cancelled and an 'ObjectDoesNotExist' exception is raised.

    :param launch_id: Identifier of the LEOP cluster
    :param groundstations: List with the GroundStations to be added
    :param kwargs: Additional JRPC parameters dictionary
    :return: True if the operation was succesfully completed
     N/A http_request N/A N/A kwargs get request None N/A N/A N/A http_request N/A N/A N/A http_request user is_staff N/A N/A N/A N/A django_ex PermissionDenied N/A N/A groundstations N/A N/A N/A N/A launch_serial serialize_leop_id launch_id N/A N/A N/A N/A N/A launch_models Launch objects remove_groundstations launch_id groundstations N/A N/A N/A N/A launch_push LaunchPush trigger_gss_released launch_id groundstations N/A True N/A N/A N/A rpc4django rpcmethod name leop.gs.remove signature N/A String Object login_required N/A satnet_settings JRPC_LOGIN_REQUIRED add_unknown N/A N/A launch_id object_id N/A N/A N/A JRPC method
    Adds a new unknown object to the list.
    :param launch_id: Identifier of the Launch
    :param object_id: Identifier for the unknown object
    :return: Identifier for the unknown object (int)
     N/A N/A N/A N/A N/A launch_models Launch objects add_unknown launch_id object_id N/A N/A N/A rpc4django rpcmethod name leop.launch.addUnknown signature N/A String int login_required N/A satnet_settings JRPC_LOGIN_REQUIRED remove_unknown N/A N/A launch_id object_id N/A N/A N/A JRPC method
    Removes an unknown object from the list
    :param launch_id: Identifier of the Launch
    :param object_id: Identifier for the unknown object
    :return: True if the operation was succesful
     N/A N/A N/A N/A N/A launch_models Launch objects remove_unknown launch_id object_id N/A N/A N/A rpc4django rpcmethod name leop.launch.removeUnknown signature N/A String int login_required N/A satnet_settings JRPC_LOGIN_REQUIRED identify N/A N/A launch_id object_id callsign tle_l1 tle_l2 N/A N/A N/A JRPC method
    Identifies an UFO object and promotes it to an identified one.
    :param launch_id: Identifier of the Launch
    :param object_id: Identifier for the unknown object
    :param callsign: Callsign for the identified object
    :param tle_l1: First line of the TLE associated to the object
    :param tle_l2: Second line of the TLE associated to the object
    :return: Identifier of the promoted object
     N/A N/A object_id spacecraft_id N/A N/A N/A N/A launch_models Launch objects identify launch_id object_id callsign tle_l1 tle_l2 N/A N/A N/A N/A launch_push LaunchPush trigger_ufo_identified launch_id object_id spacecraft_id N/A N/A N/A launch_serial JRPC_K_OBJECT_ID N/A launch_serial JRPC_K_SC_ID object_id spacecraft_id N/A N/A N/A rpc4django rpcmethod name leop.launch.identify signature N/A String int String String String login_required N/A satnet_settings JRPC_LOGIN_REQUIRED forget N/A N/A launch_id object_id N/A N/A N/A JRPC method
    Forgets an identified object and promotes it back to the unknown state.
    :param launch_id: Identifier of the Launch
    :param object_id: Identifier for the unknown object
    :return: True if the operation was succesful
     N/A spacecraft_id N/A N/A N/A N/A N/A N/A ufo_models IdentifiedObject objects get identifier object_id spacecraft identifier N/A result N/A N/A N/A N/A launch_models Launch objects forget launch_id object_id N/A N/A N/A N/A launch_push LaunchPush trigger_ufo_forgotten launch_id object_id spacecraft_id N/A result N/A N/A N/A rpc4django rpcmethod name leop.launch.forget signature N/A String int login_required N/A satnet_settings JRPC_LOGIN_REQUIRED update N/A N/A launch_id object_id callsign tle_l1 tle_l2 N/A N/A N/A JRPC method
    Updates the configuration for a given object.
    :param launch_id: Identifier of the Launch
    :param object_id: Identifier for the unknown object
    :param callsign: Callsign for the identified object
    :param tle_l1: First line of the TLE associated to the object
    :param tle_l2: Second line of the TLE associated to the object
    :return: Identifier of the updated object
     N/A N/A object_id spacecraft_id N/A N/A N/A N/A launch_models Launch objects update_identified launch_id object_id callsign tle_l1 tle_l2 N/A N/A N/A N/A launch_push LaunchPush trigger_ufo_updated launch_id object_id spacecraft_id N/A N/A N/A launch_serial JRPC_K_OBJECT_ID N/A launch_serial JRPC_K_SC_ID object_id spacecraft_id N/A N/A N/A rpc4django rpcmethod name leop.launch.update signature N/A String int String String String login_required N/A satnet_settings JRPC_LOGIN_REQUIRED get_configuration N/A N/A launch_id N/A N/A N/A JRPC method
    Serializes the configuration for the requested LEOP cluster and returns it.
    :param launch_id: The identifier of the LEOP cluster
    :return: JSON-like serialized structure
     N/A launch N/A N/A N/A N/A launch_models Launch objects get identifier launch_id N/A N/A N/A launch_serial serialize_launch launch N/A N/A N/A rpc4django rpcmethod name leop.getConfiguration signature N/A String login_required N/A satnet_settings JRPC_LOGIN_REQUIRED set_configuration N/A N/A launch_id configuration N/A N/A N/A JRPC method
    Updates the configuration for a given LAUNCH cluster using the given
    configuration object.
    :param launch_id: Identifier of the launch object
    :param configuration: The new configuration for the launch object
    :return: The identifier of the launch
     N/A launch N/A N/A N/A N/A launch_models Launch objects get identifier launch_id N/A N/A configuration N/A N/A N/A Exception Wrong <configuration> object N/A cfg_params N/A N/A launch_serial deserialize_launch configuration N/A N/A N/A launch update date N/A cfg_params N/A 0 tle_l1 N/A cfg_params N/A 1 tle_l2 N/A cfg_params N/A 2 N/A N/A launch identifier N/A N/A N/A rpc4django rpcmethod name leop.setConfiguration signature N/A String Object login_required N/A satnet_settings JRPC_LOGIN_REQUIRED get_pass_slots N/A N/A launch_id N/A N/A N/A JRPC method
    Retrieves the passes for the objects involved in a launch (groundstations,
    cluster and objects).
    :param launch_id: Identifier of the launch
    :return: Array with the following objects:
    {
        gs_id: $(groundstation),
        sc_id: $(spacecraft),
        start: $(start_date_isoformat),
        end: $(end_date_isoformat)
    }
     N/A launch N/A N/A N/A N/A launch_models Launch objects get identifier launch_id N/A scs N/A N/A N/A N/A N/A segment_models Spacecraft objects get identifier N/A launch cluster_spacecraft_id N/A i_object N/A N/A N/A launch identified_objects all N/A N/A N/A N/A scs append N/A i_object spacecraft N/A slots N/A N/A sc scs N/A N/A slots N/A N/A N/A N/A N/A N/A pass_models PassSlots objects filter spacecraft sc filter groundstation__in N/A N/A N/A launch groundstations all N/A N/A N/A pass_serializers serialize_pass_slots slots N/A N/A N/A rpc4django rpcmethod name leop.getPasses signature N/A String login_required N/A satnet_settings JRPC_LOGIN_REQUIRED