SOFA API  c76874b7
Open source framework for multi-physics simuation
sofa::simulation::SolveVisitor Class Reference

#include <SolveVisitor.h>

Inheritance diagram for sofa::simulation::SolveVisitor:

Detailed Description

Used by the animation loop: send the solve signal to the others solvers

Protected Attributes

SReal dt
 
sofa::core::MultiVecCoordId x
 
sofa::core::MultiVecDerivId v
 
- Protected Attributes inherited from sofa::simulation::Visitor
const core::ExecParamsparams
 

Public Member Functions

 SolveVisitor (const sofa::core::ExecParams *params, SReal _dt)
 
 SolveVisitor (const sofa::core::ExecParams *params, SReal _dt, bool free)
 
 SolveVisitor (const sofa::core::ExecParams *params, SReal _dt, sofa::core::MultiVecCoordId X, sofa::core::MultiVecDerivId V)
 
virtual void processSolver (simulation::Node *node, core::behavior::OdeSolver *b)
 
Result processNodeTopDown (simulation::Node *node) override
 Callback method called when decending to a new node. Recursion will stop if this method returns RESULT_PRUNE. More...
 
bool isThreadSafe () const override
 Specify whether this action can be parallelized. More...
 
const char * getCategoryName () const override
 
const char * getClassName () const override
 
void setDt (SReal _dt)
 
SReal getDt ()
 
- Public Member Functions inherited from sofa::simulation::Visitor
 Visitor (const core::ExecParams *params)
 
virtual ~Visitor ()
 
const core::ExecParamsexecParams () const
 
virtual void processNodeBottomUp (simulation::Node *)
 Callback method called after child node have been processed and before going back to the parent node. More...
 
virtual bool childOrderReversed (simulation::Node *)
 Return true to reverse the order of traversal of child nodes. More...
 
virtual bool treeTraversal (TreeTraversalRepetition &repeat)
 
virtual std::string getInfos () const
 
void debug_write_state_before (core::objectmodel::BaseObject *)
 
void debug_write_state_after (core::objectmodel::BaseObject *)
 
template<class Visit , class VContext , class Container , class Object >
void for_each (Visit *visitor, VContext *ctx, const Container &list, void(Visit::*fn)(VContext *, Object *))
 Helper method to enumerate objects in the given list. The callback gets the pointer to node. More...
 
template<class Visit , class VContext , class Container , class Object >
Visitor::Result for_each_r (Visit *visitor, VContext *ctx, const Container &list, Visitor::Result(Visit::*fn)(VContext *, Object *))
 Helper method to enumerate objects in the given list. The callback gets the pointer to node. More...
 
bool testTags (core::objectmodel::BaseObject *obj)
 
virtual void execute (core::objectmodel::BaseContext *node, bool precomputedOrder=false)
 Alias for context->executeVisitor(this) More...
 
virtual ctime_t begin (simulation::Node *node, core::objectmodel::BaseObject *obj, const std::string &typeInfo=std::string("type"))
 
virtual void end (simulation::Node *node, core::objectmodel::BaseObject *obj, ctime_t t0)
 
ctime_t begin (simulation::Visitor::VisitorContext *node, core::objectmodel::BaseObject *obj, const std::string &typeInfo=std::string("type"))
 
void end (simulation::Visitor::VisitorContext *node, core::objectmodel::BaseObject *obj, ctime_t t0)
 
virtual Result processNodeTopDown (simulation::Node *node, LocalStorage *)
 
virtual void processNodeBottomUp (simulation::Node *node, LocalStorage *)
 
VisitorsetTags (const TagSet &t)
 
VisitoraddTag (Tag t)
 
VisitorremoveTag (Tag t)
 

Additional Inherited Members

- Public Attributes inherited from sofa::simulation::Visitor
TagSet subsetsToManage
 list of the subsets More...
 
bool canAccessSleepingNode
 Can the visitor access sleeping nodes? More...
 

Attribute details

SReal sofa::simulation::SolveVisitor::dt
protected
sofa::core::MultiVecDerivId sofa::simulation::SolveVisitor::v
protected
sofa::core::MultiVecCoordId sofa::simulation::SolveVisitor::x
protected

Constructor details

sofa::simulation::SolveVisitor::SolveVisitor ( const sofa::core::ExecParams params,
SReal  _dt 
)
inline
sofa::simulation::SolveVisitor::SolveVisitor ( const sofa::core::ExecParams params,
SReal  _dt,
bool  free 
)
inline
sofa::simulation::SolveVisitor::SolveVisitor ( const sofa::core::ExecParams params,
SReal  _dt,
sofa::core::MultiVecCoordId  X,
sofa::core::MultiVecDerivId  V 
)
inline

Function details

const char* sofa::simulation::SolveVisitor::getCategoryName ( ) const
inlineoverridevirtual

Return a category name for this action. Only used for debugging / profiling purposes

Reimplemented from sofa::simulation::Visitor.

const char* sofa::simulation::SolveVisitor::getClassName ( ) const
inlineoverridevirtual

Return a class name for this visitor Only used for debugging / profiling purposes

Reimplemented from sofa::simulation::Visitor.

SReal sofa::simulation::SolveVisitor::getDt ( )
inline
bool sofa::simulation::SolveVisitor::isThreadSafe ( ) const
inlineoverridevirtual

Specify whether this action can be parallelized.

Reimplemented from sofa::simulation::Visitor.

Visitor::Result sofa::simulation::SolveVisitor::processNodeTopDown ( simulation::Node )
overridevirtual

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

Reimplemented from sofa::simulation::Visitor.

void sofa::simulation::SolveVisitor::processSolver ( simulation::Node node,
core::behavior::OdeSolver b 
)
virtual
void sofa::simulation::SolveVisitor::setDt ( SReal  _dt)
inline