OpenSim::ControlLinearNode Class Reference

#include <ControlLinearNode.h>

Inheritance diagram for OpenSim::ControlLinearNode:
OpenSim::Object

List of all members.

Public Member Functions

 ControlLinearNode (double aT=0.0, double aValue=0.0)
 Default constructor.
 ControlLinearNode (const ControlLinearNode &aNode)
 Copy constructor.
virtual Objectcopy () const
 Construct and return a copy of this object.
virtual ~ControlLinearNode ()
ControlLinearNodeoperator= (const ControlLinearNode &aControl)
 Assignment operator.
bool operator== (const ControlLinearNode &aControl) const
 Equality operator.
bool operator< (const ControlLinearNode &aControl) const
 Less than operator.
void setTime (double aT)
 Set the tolerance for determining equality of nodes.
double getTime () const
 Get the time at which this control node occurs.
void setValue (double aValue)
 Set the value of this control node.
double getValue () const
 Get the value of this control node.
char * toString ()
 Convert the node to a string representation.

Protected Attributes

PropertyDbl _propT
 Equality tolerance.
PropertyDbl _propValue
 Value of the node (may represent control value or min or max bounds, depending on which curve it's in).
double & _t
 Reference to the value of the T property.
double & _value
 Reference to the value of the X property.

Friends

std::ostream & operator<< (std::ostream &aOut, const ControlLinearNode &aControlLinearNode)

Constructor & Destructor Documentation

ControlLinearNode::ControlLinearNode ( double  aT = 0.0,
double  aValue = 0.0 
)

Default constructor.

Parameters:
aT Time.
aX Control value.
aMin Minimum allowed control value.
aMax Maximum allowed control value.
ControlLinearNode::ControlLinearNode ( const ControlLinearNode aControl  ) 

Copy constructor.

Parameters:
aControl Control to copy.
ControlLinearNode::~ControlLinearNode (  )  [virtual]

Member Function Documentation

Object * ControlLinearNode::copy (  )  const [virtual]

Construct and return a copy of this object.

The object is allocated using the new operator, so the caller is responsible for deleting the returned object.

Returns:
Copy of this object.

Reimplemented from OpenSim::Object.

double ControlLinearNode::getTime (  )  const

Get the time at which this control node occurs.

Returns:
Time at which this control node occurs.
double ControlLinearNode::getValue (  )  const

Get the value of this control node.

Returns:
Value of this control node.
bool ControlLinearNode::operator< ( const ControlLinearNode aNode  )  const [virtual]

Less than operator.

Parameters:
aNode Node with which to evaluate less than.
Returns:
True if the time of this node is less than the time of aNode.

Reimplemented from OpenSim::Object.

ControlLinearNode & ControlLinearNode::operator= ( const ControlLinearNode aNode  ) 

Assignment operator.

Returns:
Reference to the altered object.

Reimplemented from OpenSim::Object.

bool ControlLinearNode::operator== ( const ControlLinearNode aNode  )  const [virtual]

Equality operator.

Equality of nodes is dertermined by comparing the time member varaibles. If two nodes have the same value for time within the set equality tolerance, the two nodes are considered equal:

Parameters:
aNode Node with which to evaluate equality.
Returns:
True if the times are equal, false otherwise.

Reimplemented from OpenSim::Object.

void ControlLinearNode::setTime ( double  aTime  ) 

Set the tolerance for determining equality of nodes.

Equality of nodes is dertermined by comparing the time member varaibles. If two nodes have the same value for time within the set equality tolerance, the two nodes are considered equal.

Note that the member variable _EqualityTolerance and this method are static. So, the specified equality tolerance affects all nodes.

Parameters:
aTol Equality tolerance. The equality tolerance must be 0.0 or positive. If a negative tolerance is sent in, the equality tolerance is set to 0.0.
See also:
==

void ControlLinearNode:: SetEqualityTolerance(double aTol) { _EqualityTolerance = aTol; if(_EqualityTolerance<0.0) _EqualityTolerance = 0.0; } _____________________________________________________________________________ /** Get the tolerance for determining equality of nodes.

Equality of nodes is dertermined by comparing _time member varaibles. If two nodes have the same value for _time within the set equality tolerance, the two nodes are considered equal.

Note that the member variable _EqualityTolerance and this method are static. So, the specified equality tolerance affects all nodes.

Returns:
Equality tolerance.
See also:
==

double ControlLinearNode:: GetEqualityTolerance() { return(_EqualityTolerance); }

----------------------------------------------------------------------------- TIME ----------------------------------------------------------------------------- _____________________________________________________________________________ /** Set the time at which this control node occurs.

Parameters:
aTime Time at which this control node occurs.
void ControlLinearNode::setValue ( double  aValue  ) 

Set the value of this control node.

Parameters:
aValue Value of this control node.
char * ControlLinearNode::toString (  ) 

Convert the node to a string representation.

The caller is responsible for deleting the returned string.

Returns:
String representation of the node.

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  aOut,
const ControlLinearNode aControlLinearNode 
) [friend]

Reimplemented from OpenSim::Object.


Member Data Documentation

Equality tolerance.

Time at which the node occurs.

Value of the node (may represent control value or min or max bounds, depending on which curve it's in).

double& OpenSim::ControlLinearNode::_t [protected]

Reference to the value of the T property.

Reference to the value of the X property.


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

Generated on Sun Sep 25 00:19:54 2011 for OpenSim by  doxygen 1.6.1