Base class to receive up-to-date values of the ContactSchedule. More...
#include <phase_durations_observer.h>
Public Types | |
using | PhaseDurationsSubjectPtr = PhaseDurations * |
Public Member Functions | |
PhaseDurationsObserver ()=default | |
PhaseDurationsObserver (PhaseDurationsSubjectPtr phase_durations) | |
Registers this observer with the subject class to receive updates. More... | |
virtual void | UpdatePolynomialDurations ()=0 |
Callback method called every time the subject changes. More... | |
virtual | ~PhaseDurationsObserver ()=default |
Protected Attributes | |
PhaseDurationsSubjectPtr | phase_durations_ |
Base class to receive up-to-date values of the ContactSchedule.
This class registers with the contact schedule and everytime those durations change, the contact schedule updates this class by calling the UpdatePhaseDurations() method.
Used by spline.h
This class implements the observer pattern: https://sourcemaking.com/design_patterns/observer
Definition at line 50 of file phase_durations_observer.h.
Definition at line 52 of file phase_durations_observer.h.
|
default |
towr::PhaseDurationsObserver::PhaseDurationsObserver | ( | PhaseDurationsSubjectPtr | phase_durations | ) |
Registers this observer with the subject class to receive updates.
phase_durations | A pointer to the hase durations subject. |
Definition at line 37 of file phase_durations_observer.cc.
|
virtualdefault |
|
pure virtual |
Callback method called every time the subject changes.
Implemented in towr::PhaseSpline.
|
protected |
Definition at line 69 of file phase_durations_observer.h.