Class ClockState3

Inheritance Relationships

Base Type

Class Documentation

class ClockState3 : public lupnt::State

Public Functions

inline ClockState3()

Construct a zero-initialized 3-state clock state (bias, drift, drift-rate), in frame MOON_CI.

inline ClockState3(int rows, int cols)

Construct a zero-initialized 3-state clock state of the given shape; cols must be 1 (see State(int, int)).

inline ClockState3(const State &x)

Reinterpret a generic State as a ClockState3, checking its size. Used by Clock::SetState/Clock::GetState and ClockDynamics::Propagate as the receiver/transmitter clock state for a Device.

Parameters:

x – 3-element state [b, d, dr].

inline ClockState3 &operator=(const State &x)

Assign from a generic State, checking its size and copying the first 3 elements.

inline Real &b()

Mutable reference to the clock bias.

Returns:

Clock bias [s].

inline Real &d()

Mutable reference to the clock drift.

Returns:

Clock drift [s/s].

inline Real &dr()

Mutable reference to the clock drift-rate.

Returns:

Clock drift-rate [s/s^2].

inline Real b() const

Clock bias.

Returns:

Clock bias [s].

inline Real d() const

Clock drift.

Returns:

Clock drift [s/s].

inline Real dr() const

Clock drift-rate.

Returns:

Clock drift-rate [s/s^2].