sofa::simulation::SolveVisitor Class Reference

Used by the master solver: send the solve signal to the others solvers. More...

#include <SolveVisitor.h>

Inheritance diagram for sofa::simulation::SolveVisitor:

Inheritance graph
[legend]
Collaboration diagram for sofa::simulation::SolveVisitor:

Collaboration graph
[legend]

Public Member Functions

 SolveVisitor (double _dt)
void processSolver (simulation::Node *node, core::componentmodel::behavior::OdeSolver *b)
virtual Result processNodeTopDown (simulation::Node *node)
 Callback method called when decending to a new node. Recursion will stop if this method returns RESULT_PRUNE.
virtual bool isThreadSafe () const
 Specify whether this action can be parallelized.
virtual const char * getCategoryName () const
 Return a category name for this action.
void setDt (double _dt)
double getDt ()

Protected Attributes

double dt

Detailed Description

Used by the master solver: send the solve signal to the others solvers.

Definition at line 44 of file SolveVisitor.h.


Constructor & Destructor Documentation

sofa::simulation::SolveVisitor::SolveVisitor ( double  _dt  )  [inline]

Definition at line 48 of file SolveVisitor.h.


Member Function Documentation

virtual const char* sofa::simulation::SolveVisitor::getCategoryName (  )  const [inline, virtual]

Return a category name for this action.

Only used for debugging / profiling purposes

Reimplemented from sofa::simulation::Visitor.

Definition at line 57 of file SolveVisitor.h.

double sofa::simulation::SolveVisitor::getDt (  )  [inline]

Definition at line 60 of file SolveVisitor.h.

References dt.

virtual bool sofa::simulation::SolveVisitor::isThreadSafe (  )  const [inline, virtual]

Specify whether this action can be parallelized.

Reimplemented from sofa::simulation::Visitor.

Definition at line 53 of file SolveVisitor.h.

Visitor::Result sofa::simulation::SolveVisitor::processNodeTopDown ( simulation::Node *   )  [virtual]

Callback method called when decending to a new node. Recursion will stop if this method returns RESULT_PRUNE.

Reimplemented from sofa::simulation::Visitor.

Definition at line 38 of file SolveVisitor.cpp.

References sofa::simulation::Visitor::for_each(), processSolver(), sofa::simulation::Visitor::RESULT_CONTINUE, and sofa::simulation::Node::solver.

void sofa::simulation::SolveVisitor::processSolver ( simulation::Node *  node,
core::componentmodel::behavior::OdeSolver *  b 
)

Definition at line 33 of file SolveVisitor.cpp.

References dt, and sofa::core::componentmodel::behavior::OdeSolver::solve().

Referenced by processNodeTopDown().

void sofa::simulation::SolveVisitor::setDt ( double  _dt  )  [inline]

Definition at line 59 of file SolveVisitor.h.

References dt.


Field Documentation

Definition at line 62 of file SolveVisitor.h.

Referenced by getDt(), processSolver(), and setDt().


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

Generated on Sun Nov 23 04:24:33 2008 for Sofa by  doxygen 1.5.7.1