def __init__(self, propagation_params, opm_params, targeting_params):
     AdamObject.__init__(self)
     # NOTE 1: the end date in propagation_params should be shortly before the
     # targeted perigee (recommended ~30 days before).
     # NOTE 2: the step size in propagation_params is currently ignored.
     self._propagation_params = propagation_params
     self._opm_params = opm_params
     self._targeting_params = targeting_params
     self._ephemeris = None
     self._maneuver = None
Exemplo n.º 2
0
 def __init__(self, propagation_params, opm_params):
     AdamObject.__init__(self)
     self._propagation_params = propagation_params
     self._opm_params = opm_params
     self._summary = None
Exemplo n.º 3
0
 def __init__(self, propagation_params, opm_params):
     AdamObject.__init__(self)
     self._propagation_params = propagation_params
     self._opm_params = opm_params
     self._ephemeris = None
     self._final_state_vector = None
Exemplo n.º 4
0
    def test_get_and_set_methods(self):
        adam_object = AdamObject()
        self.assertIsNone(adam_object.get_uuid())
        self.assertIsNone(adam_object.get_runnable_state())
        self.assertIsNone(adam_object.get_children())

        adam_object.set_uuid('uuid')
        self.assertEqual('uuid', adam_object.get_uuid())

        adam_object.set_runnable_state({'whatever': 5})
        self.assertEqual({'whatever': 5}, adam_object.get_runnable_state())

        adam_object.set_children(['what', 'ever'])
        self.assertEqual(['what', 'ever'], adam_object.get_children())