Public Member Functions | Protected Attributes
towr::PhaseDurationsObserver Class Reference

Base class to receive up-to-date values of the ContactSchedule. More...

#include <phase_durations_observer.h>

Inheritance diagram for towr::PhaseDurationsObserver:
Inheritance graph
[legend]

List of all members.

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_

Detailed Description

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.


Constructor & Destructor Documentation

towr::PhaseDurationsObserver::PhaseDurationsObserver ( PhaseDurationsSubjectPtr  phase_durations)

Registers this observer with the subject class to receive updates.

Parameters:
phase_durationsA pointer to the hase durations subject.

Definition at line 37 of file phase_durations_observer.cc.


Member Function Documentation

Callback method called every time the subject changes.

Implemented in towr::PhaseSpline.


Member Data Documentation

PhaseDurationsSubjectPtr towr::PhaseDurationsObserver::phase_durations_ [protected]

Definition at line 69 of file phase_durations_observer.h.


The documentation for this class was generated from the following files:


towr
Author(s): Alexander W. Winkler
autogenerated on Mon Apr 15 2019 02:42:32