NTRT Simulator
 All Classes Files Functions Variables Typedefs Friends Pages
PretensionController Class Reference
Inheritance diagram for PretensionController:
Collaboration diagram for PretensionController:

Public Member Functions

 PretensionController (double tensionPct=.01)
 
virtual void onStep (tgLinearString &subject, double dt)
 
virtual void onAttach (tgLinearString &subject)
 
virtual void onSetup (tgLinearString &subject)
 
virtual void onTeardown (tgLinearString &subject)
 

Detailed Description

Definition at line 35 of file PretensionController.h.

Member Function Documentation

virtual void tgObserver< tgLinearString >::onAttach ( tgLinearString 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

Reimplemented in tgCPGStringControl.

Definition at line 54 of file tgObserver.h.

virtual void tgObserver< tgLinearString >::onSetup ( tgLinearString subject)
inlinevirtualinherited

Notify the observers when a setup action has occurred.

Parameters
[in,out]subjectthe subject being observed

Definition at line 60 of file tgObserver.h.

void PretensionController::onStep ( tgLinearString subject,
double  dt 
)
virtual

Notify the observers when a step action has occurred.

Parameters
[in,out]subjectthe subject being observed
[in]thenumber of seconds since the previous call; must be positive

Implements tgObserver< tgLinearString >.

Definition at line 44 of file PretensionController.cpp.

Here is the call graph for this function:

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

Notify the observers when a teardown action has occurred.

Parameters
[in,out]subjectthe subject being observed

Definition at line 66 of file tgObserver.h.


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