Template Class ConstantProfileGenerator#

Inheritance Relationships#

Base Type#

Class Documentation#

template<typename T>
class ConstantProfileGenerator : public Karana::Models::ProfileGenerator<T>#

A simple constant profile generator.

Template Parameters:

T – The type of object to generate a profile for.

Public Functions

inline ConstantProfileGenerator(std::string_view name, const T &q)#

ConstantProfileGenerator constructor. The constructor is not meant to be called directly. Please use the create(…) method instead to create an instance.

Parameters:
inline virtual const T &getQ(const Karana::Math::Ktime &t) override#

Get the constant profile coordinate; ignores the time argument.

Parameters:

t – The current time (not used).

Returns:

The constant profile coordinate.

inline virtual const T &getU(const Karana::Math::Ktime &t) override#

Get the profile velocity for the provided time.

Parameters:

t – The current time

Returns:

The profile velocity at the provided time.

inline virtual const T &getUdot(const Karana::Math::Ktime &t) override#

Get the profile acceleration for the provided time.

Parameters:

t – The current time

Returns:

The profile acceleration at the provided time.

Public Members

T q#

The coordinate for constant interpolation.

Public Static Functions

static inline Karana::Core::ks_ptr<ConstantProfileGenerator> create(std::string_view name, const T &q)#

ConstantProfileGenerator constructor.

Parameters:
Returns:

A pointer to the newly created instance of ConstantProfileGenerator.

Protected Attributes

T _u#

The profile velocity (always zero).