void AdaptiveStepSizeIntegrator<DifferentialEquation>::Instance::WriteToMessage( not_null<serialization::IntegratorInstance*> message) const { Integrator<ODE>::Instance::WriteToMessage(message); auto* const extension = message->MutableExtension( serialization::AdaptiveStepSizeIntegratorInstance::extension); adaptive_step_size_.WriteToMessage(extension->mutable_adaptive_step_size()); integrator().WriteToMessage(extension->mutable_integrator()); }
void RotatingBody<Frame>::WriteToMessage( not_null<serialization::MassiveBody*> const message) const { MassiveBody::WriteToMessage(message); not_null<serialization::RotatingBody*> const rotating_body = message->MutableExtension(serialization::RotatingBody::extension); Frame::WriteToMessage(rotating_body->mutable_frame()); parameters_.reference_angle_.WriteToMessage( rotating_body->mutable_reference_angle()); parameters_.reference_instant_.WriteToMessage( rotating_body->mutable_reference_instant()); parameters_.angular_velocity_.WriteToMessage( rotating_body->mutable_angular_velocity()); }
void BodyCentredNonRotatingDynamicFrame<InertialFrame, ThisFrame>:: WriteToMessage(not_null<serialization::DynamicFrame*> const message) const { message->MutableExtension( serialization::BodyCentredNonRotatingDynamicFrame::extension)->set_centre( ephemeris_->serialization_index_for_body(centre_)); }
void Identity<FromFrame, ToFrame>::WriteToMessage( not_null<serialization::LinearMap*> const message) const { LinearMap<FromFrame, ToFrame>::WriteToMessage(message); WriteToMessage(message->MutableExtension(serialization::Identity::identity)); }
void Permutation<FromFrame, ToFrame>::WriteToMessage( not_null<serialization::LinearMap*> const message) const { LinearMap<FromFrame, ToFrame>::WriteToMessage(message); WriteToMessage( message->MutableExtension(serialization::Permutation::extension)); }