NTRT Simulator  Version: Master
 All Classes Namespaces Files Functions Variables Typedefs Friends Pages
VerticalSpinePassiveController Class Reference

#include <VerticalSpinePassiveController.h>

Inheritance diagram for VerticalSpinePassiveController:
Collaboration diagram for VerticalSpinePassiveController:

Public Member Functions

 VerticalSpinePassiveController ()
 
virtual ~VerticalSpinePassiveController ()
 
virtual void onSetup (VerticalSpineModel &subject)
 
virtual void onStep (VerticalSpineModel &subject, double dt)
 
virtual void onAttach (VerticalSpineModel &subject)
 
virtual void onTeardown (VerticalSpineModel &subject)
 
void attach (tgObserver< VerticalSpinePassiveController > *pObserver)
 
void notifyStep (double dt)
 
void notifySetup ()
 
void notifyTeardown ()
 

Detailed Description

A controller that does nothing but log data.

Definition at line 44 of file VerticalSpinePassiveController.h.

Constructor & Destructor Documentation

VerticalSpinePassiveController::VerticalSpinePassiveController ( )

Construct a VerticalSpinePassiveController. No inputs, since this controller doesn't move the spine.

Definition at line 42 of file VerticalSpinePassiveController.cpp.

virtual VerticalSpinePassiveController::~VerticalSpinePassiveController ( )
inlinevirtual

Nothing to delete, destructor must be virtual

Definition at line 57 of file VerticalSpinePassiveController.h.

Member Function Documentation

Attach an observer to the subject of the observer.

Parameters
[in,out]pObservera pointer to an observer for the subject; do nothing if the pointer is NULL
void tgSubject< VerticalSpinePassiveController >::notifySetup ( )
inherited

Call tgObserver<T>::onSetup() on all observers in the order in which they were attached.

void tgSubject< VerticalSpinePassiveController >::notifyStep ( double  dt)
inherited

Call tgObserver<T>::onStep() on all observers in the order in which they were attached.

Parameters
[in]dtthe number of seconds since the previous call; do nothing if not positive

Here is the caller graph for this function:

void tgSubject< VerticalSpinePassiveController >::notifyTeardown ( )
inherited

Call tgObserver<T>::onTeardown() on all observers in the order in which they were attached.

virtual void tgObserver< VerticalSpineModel >::onAttach ( VerticalSpineModel subject)
inlinevirtualinherited

Notify the observers when an attach action has occurred. Will only occur once, typically before setup

Parameters
[in,out]subjectthe subject being observed

Definition at line 55 of file tgObserver.h.

void VerticalSpinePassiveController::onSetup ( VerticalSpineModel subject)
virtual

Apply the Bending controller. On setup, adjust the cable lengths one time.

Parameters
[in]subject- the SpineModel that is being controlled. Must have a list of allMuscles populated

Reimplemented from tgObserver< VerticalSpineModel >.

Definition at line 48 of file VerticalSpinePassiveController.cpp.

Here is the call graph for this function:

void VerticalSpinePassiveController::onStep ( VerticalSpineModel subject,
double  dt 
)
virtual

The onStep method is empty for this controller.

Parameters
[in]subject- the SpineModel that is being controlled. Must have a list of allMuscles populated
[in]dt,currenttimestep must be positive

Implements tgObserver< VerticalSpineModel >.

Definition at line 59 of file VerticalSpinePassiveController.cpp.

Here is the call graph for this function:

virtual void tgObserver< VerticalSpineModel >::onTeardown ( VerticalSpineModel subject)
inlinevirtualinherited

Notify the observers when a teardown action has occurred.

Parameters
[in,out]subjectthe subject being observed

Definition at line 67 of file tgObserver.h.


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