OpenSim::StepFunction Class Reference
A class for representing a StepFunction.
More...
#include <StepFunction.h>
List of all members.
Detailed Description
A class for representing a StepFunction.
{ start_value, t <= start_time f(t) = { S-plolynomial(t), start_time < t < end_time { end_value, t >= end_time
This class inherits from Function and so can be used as input to any class requiring a Fuction as input.
- Author:
- Ajay Seth
- Version:
- 1.0
Constructor & Destructor Documentation
StepFunction::StepFunction |
( |
|
) |
|
StepFunction::StepFunction |
( |
double |
startTime, |
|
|
double |
endTime, |
|
|
double |
startValue = 0.0 , |
|
|
double |
endValue = 1.0 | |
|
) |
| | |
StepFunction::StepFunction |
( |
const StepFunction & |
aStepFunction |
) |
|
Copy constructor.
All data members of the specified StepFunction are copied.
- Parameters:
-
StepFunction::~StepFunction |
( |
|
) |
[virtual] |
Member Function Documentation
Object * StepFunction::copy |
( |
|
) |
const [virtual] |
Copy this object.
- Returns:
- Pointer to a copy of this object.
Implements OpenSim::Function.
SimTK::Function * StepFunction::createSimTKFunction |
( |
|
) |
const [virtual] |
double OpenSim::StepFunction::getEndTime |
( |
|
) |
const [inline] |
Get step transition time.
double OpenSim::StepFunction::getEndValue |
( |
|
) |
const [inline] |
Get end value before step.
double OpenSim::StepFunction::getStartTime |
( |
|
) |
const [inline] |
Get step transition time.
double OpenSim::StepFunction::getStartValue |
( |
|
) |
const [inline] |
Get start value before step.
Assignment operator.
Note that data members of the base class are also assigned.
- Parameters:
-
- Returns:
- Reference to this object.
Reimplemented from OpenSim::Function.
void OpenSim::StepFunction::setEndTime |
( |
double |
time |
) |
[inline] |
Set step transition end time.
void OpenSim::StepFunction::setEndValue |
( |
double |
end |
) |
[inline] |
Set end value before step.
void OpenSim::StepFunction::setStartTime |
( |
double |
time |
) |
[inline] |
Set step transition start time.
void OpenSim::StepFunction::setStartValue |
( |
double |
start |
) |
[inline] |
Set start value before step.
Member Data Documentation
The documentation for this class was generated from the following files:
- OpenSim/Common/StepFunction.h
- OpenSim/Common/StepFunction.cpp