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

#include <T6TensionController.h>

Inheritance diagram for T6TensionController:
Collaboration diagram for T6TensionController:

Public Member Functions

 T6TensionController (const double tension=.01)
 
virtual ~T6TensionController ()
 
virtual void onSetup (T6Model &subject)
 
virtual void onStep (T6Model &subject, double dt)
 
virtual void onAttach (T6Model &subject)
 
virtual void onTeardown (T6Model &subject)
 

Detailed Description

A controller to apply uniform tension to a T6Model. Iterates through all tgLinearString members and calls tensionMinLengthController

Definition at line 44 of file T6TensionController.h.

Constructor & Destructor Documentation

T6TensionController::T6TensionController ( const double  tension = .01)

Construct a T6TensionController.

Parameters
[in]tension,adouble specifying the desired tension throughougt structure. Must be non-negitive

Definition at line 37 of file T6TensionController.cpp.

T6TensionController::~T6TensionController ( )
virtual

Nothing to delete, destructor must be virtual

Definition at line 46 of file T6TensionController.cpp.

Member Function Documentation

virtual void tgObserver< T6Model >::onAttach ( T6Model 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 T6TensionController::onSetup ( T6Model subject)
virtual

Notify the observers when a setup action has occurred.

Parameters
[in,out]subjectthe subject being observed

Reimplemented from tgObserver< T6Model >.

Definition at line 56 of file T6TensionController.cpp.

Here is the call graph for this function:

void T6TensionController::onStep ( T6Model subject,
double  dt 
)
virtual

Apply the tension controller. Called my notifyStep(dt) of its subject. The tgLinearStrings will update using their tensionMinLengthController each step

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

Implements tgObserver< T6Model >.

Definition at line 69 of file T6TensionController.cpp.

virtual void tgObserver< T6Model >::onTeardown ( T6Model 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: