hpp::manipulation::graph::GraphComponent Class Referenceabstract

Define common methods of the graph components. More...

#include <hpp/manipulation/graph/graph-component.hh>

Inheritance diagram for hpp::manipulation::graph::GraphComponent:
[legend]
Collaboration diagram for hpp::manipulation::graph::GraphComponent:
[legend]

Public Member Functions

virtual ~GraphComponent ()
 
const std::string & name () const
 Get the component name. More...
 
const std::size_t & id () const
 Return the component id. More...
 
virtual void addNumericalConstraint (const ImplicitPtr_t &numConstraint, const segments_t &passiveDofs=segments_t())
 Add Implicit to the component. More...
 
virtual void addNumericalConstraint (const DifferentiableFunctionPtr_t &function, const ComparisonTypes_t &ineq) HPP_MANIPULATION_DEPRECATED
 Add core::DifferentiableFunction to the component. More...
 
virtual void resetNumericalConstraints ()
 Reset the numerical constraints stored in the component. More...
 
virtual void addLockedJointConstraint (const LockedJointPtr_t &constraint)
 Add core::LockedJoint constraint to the component. More...
 
virtual void resetLockedJoints ()
 Reset the locked joint in the component. More...
 
bool insertNumericalConstraints (ConfigProjectorPtr_t &proj) const
 Insert the numerical constraints in a ConfigProjector. More...
 
bool insertLockedJoints (ConfigProjectorPtr_t &cs) const
 Insert the LockedJoint constraints in a ConstraintSet. More...
 
const NumericalConstraints_tnumericalConstraints () const
 Get a reference to the NumericalConstraints_t. More...
 
const IntervalsContainer_tpassiveDofs () const
 Get a reference to the NumericalConstraints_t. More...
 
const LockedJoints_tlockedJoints () const
 Get a reference to the LockedJoints_t. More...
 
void parentGraph (const GraphWkPtr_t &parent)
 Set the parent graph. More...
 
GraphPtr_t parentGraph () const
 Set the parent graph. More...
 
virtual std::ostream & dotPrint (std::ostream &os, dot::DrawingAttributes da=dot::DrawingAttributes()) const
 Print the component in DOT language. More...
 
void setDirty ()
 Declare a component as dirty. More...
 

Protected Member Functions

void init (const GraphComponentWkPtr_t &weak)
 Initialize the component. More...
 
 GraphComponent (const std::string &name)
 
void throwIfNotInitialized () const
 
virtual std::ostream & print (std::ostream &os) const
 Print the object in a stream. More...
 
virtual void populateTooltip (dot::Tooltip &tp) const
 Populate DrawingAttributes tooltip. More...
 
virtual void initialize ()=0
 

Protected Attributes

NumericalConstraints_t numericalConstraints_
 Stores the numerical constraints. More...
 
IntervalsContainer_t passiveDofs_
 Stores the passive dofs for each numerical constraints. More...
 
LockedJoints_t lockedJoints_
 List of LockedJoint constraints. More...
 
GraphWkPtr_t graph_
 A weak pointer to the parent graph. More...
 
bool isInit_
 

Friends

class Graph
 
std::ostream & operator<< (std::ostream &, const GraphComponent &)
 

Detailed Description

Define common methods of the graph components.

Constructor & Destructor Documentation

virtual hpp::manipulation::graph::GraphComponent::~GraphComponent ( )
inlinevirtual
hpp::manipulation::graph::GraphComponent::GraphComponent ( const std::string &  name)
inlineprotected

Member Function Documentation

virtual void hpp::manipulation::graph::GraphComponent::addLockedJointConstraint ( const LockedJointPtr_t constraint)
virtual

Add core::LockedJoint constraint to the component.

virtual void hpp::manipulation::graph::GraphComponent::addNumericalConstraint ( const ImplicitPtr_t numConstraint,
const segments_t passiveDofs = segments_t() 
)
virtual

Add Implicit to the component.

Parameters
passiveDofssee ConfigProjector::addNumericalConstraint

Reimplemented in hpp::manipulation::graph::StateSelector.

virtual void hpp::manipulation::graph::GraphComponent::addNumericalConstraint ( const DifferentiableFunctionPtr_t function,
const ComparisonTypes_t ineq 
)
virtual

Add core::DifferentiableFunction to the component.

virtual std::ostream& hpp::manipulation::graph::GraphComponent::dotPrint ( std::ostream &  os,
dot::DrawingAttributes  da = dot::DrawingAttributes() 
) const
virtual
const std::size_t& hpp::manipulation::graph::GraphComponent::id ( ) const
inline

Return the component id.

References init().

void hpp::manipulation::graph::GraphComponent::init ( const GraphComponentWkPtr_t &  weak)
protected

Initialize the component.

virtual void hpp::manipulation::graph::GraphComponent::initialize ( )
protectedpure virtual
bool hpp::manipulation::graph::GraphComponent::insertLockedJoints ( ConfigProjectorPtr_t cs) const

Insert the LockedJoint constraints in a ConstraintSet.

Returns
true is at least one LockedJointPtr_t was inserted.
bool hpp::manipulation::graph::GraphComponent::insertNumericalConstraints ( ConfigProjectorPtr_t proj) const

Insert the numerical constraints in a ConfigProjector.

Returns
true is at least one ImplicitPtr_t was inserted.
const LockedJoints_t& hpp::manipulation::graph::GraphComponent::lockedJoints ( ) const

Get a reference to the LockedJoints_t.

const std::string& hpp::manipulation::graph::GraphComponent::name ( ) const

Get the component name.

const NumericalConstraints_t& hpp::manipulation::graph::GraphComponent::numericalConstraints ( ) const

Get a reference to the NumericalConstraints_t.

void hpp::manipulation::graph::GraphComponent::parentGraph ( const GraphWkPtr_t &  parent)

Set the parent graph.

GraphPtr_t hpp::manipulation::graph::GraphComponent::parentGraph ( ) const

Set the parent graph.

const IntervalsContainer_t& hpp::manipulation::graph::GraphComponent::passiveDofs ( ) const

Get a reference to the NumericalConstraints_t.

virtual void hpp::manipulation::graph::GraphComponent::populateTooltip ( dot::Tooltip tp) const
protectedvirtual

Populate DrawingAttributes tooltip.

Reimplemented in hpp::manipulation::graph::LevelSetEdge, and hpp::manipulation::graph::State.

virtual std::ostream& hpp::manipulation::graph::GraphComponent::print ( std::ostream &  os) const
protectedvirtual
virtual void hpp::manipulation::graph::GraphComponent::resetLockedJoints ( )
virtual

Reset the locked joint in the component.

virtual void hpp::manipulation::graph::GraphComponent::resetNumericalConstraints ( )
virtual

Reset the numerical constraints stored in the component.

void hpp::manipulation::graph::GraphComponent::setDirty ( )

Declare a component as dirty.

void hpp::manipulation::graph::GraphComponent::throwIfNotInitialized ( ) const
protected

Friends And Related Function Documentation

friend class Graph
friend
std::ostream& operator<< ( std::ostream &  ,
const GraphComponent  
)
friend

Member Data Documentation

GraphWkPtr_t hpp::manipulation::graph::GraphComponent::graph_
protected

A weak pointer to the parent graph.

bool hpp::manipulation::graph::GraphComponent::isInit_
protected
LockedJoints_t hpp::manipulation::graph::GraphComponent::lockedJoints_
protected

List of LockedJoint constraints.

NumericalConstraints_t hpp::manipulation::graph::GraphComponent::numericalConstraints_
protected

Stores the numerical constraints.

IntervalsContainer_t hpp::manipulation::graph::GraphComponent::passiveDofs_
protected

Stores the passive dofs for each numerical constraints.