Class TimeFixedJump

Inheritance Relationships

Base Type

Derived Type

Class Documentation

class TimeFixedJump : public otyca::ScheduledJump

Represents a jump that occurs at a fixed point in time.

This class implements a scheduled jump that occurs at a predetermined time tau. It inherits from the ScheduledJump base class and overrides the methods for computing the effective jump time.

Subclassed by otyca::TimeFixedBimodalGaussian

Public Functions

inline TimeFixedJump()

Default constructor.

Initializes the jump time _tau to 0.

inline TimeFixedJump(double t)

Constructor with a specified time.

Parameters:

t – The fixed time at which the jump occurs.

inline virtual double effective_time() const override

Get the effective time of the jump.

Returns:

The fixed time _tau at which the jump occurs.

inline virtual double effective_time_end() const override

Get the effective end time of the jump.

Since this is a fixed-time jump, the end time is the same as the start time.

Returns:

The fixed time _tau.

inline virtual bool before_or_at(double t) const

Check if the jump occurs before or at a given time.

Parameters:

t – The time to compare with _tau.

Returns:

True if _tau <= t, false otherwise.

inline virtual bool after(double t) const

Check if the jump occurs after a given time.

Parameters:

t – The time to compare with _tau.

Returns:

True if _tau > t, false otherwise.

inline double get_tau() const

Get the value of _tau.

Returns:

The fixed time _tau.

inline void set_tau(double tau)

Set the value of _tau.

Parameters:

tau – The new fixed time value.