Base class to receive up-to-date values of the ContactSchedule. More...
#include <phase_durations_observer.h>
Public Member Functions | |
PhaseDurationsObserver () | |
PhaseDurationsObserver (PhaseDurationsSubjectPtr phase_durations) | |
Registers this observer with the subject class to receive updates. | |
virtual void | UpdatePolynomialDurations ()=0 |
Callback method called every time the subject changes. | |
virtual | ~PhaseDurationsObserver () |
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.
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.
virtual towr::PhaseDurationsObserver::~PhaseDurationsObserver | ( | ) | [virtual] |
virtual void towr::PhaseDurationsObserver::UpdatePolynomialDurations | ( | ) | [pure virtual] |
Callback method called every time the subject changes.
Implemented in towr::PhaseSpline.
PhaseDurationsSubjectPtr towr::PhaseDurationsObserver::phase_durations_ [protected] |
Definition at line 69 of file phase_durations_observer.h.