MULTIBODY SIMULATION SOFTWARE - API documentation
Public Member Functions
chrono::ChFunction_Jscript Class Reference

#include <CHfunctionJS.h>

Inheritance diagram for chrono::ChFunction_Jscript:
Inheritance graph
[legend]
Collaboration diagram for chrono::ChFunction_Jscript:
Collaboration graph
[legend]

List of all members.

Public Member Functions

void Copy (ChFunction_Jscript *source)
ChFunctionnew_Duplicate ()
void Set_Command (char *m_command)
char * Get_Command ()
void Set_Variable (char *variablename, double value)
int Get_js_error ()
double Get_y (double x)
int Get_Type ()
void StreamOUT (ChStreamOutAscii &mstream)
void StreamIN (ChStreamInBinary &mstream)
void StreamOUT (ChStreamOutBinary &mstream)

Detailed Description

JAVASCRIPT FUNCTION: y = javascript evaluation of function y=f(x)


Member Function Documentation

int chrono::ChFunction_Jscript::Get_Type ( ) [virtual]

Each class inherited from the ChFunction class must return an unique integer identifier with the virtual function Get_type(). This is useful for fast run-time downcasting etc.

Reimplemented from chrono::ChFunction.

double chrono::ChFunction_Jscript::Get_y ( double  x) [virtual]

Returns the y value of the function, at position x. (For this base class, it will be a constant value y=C).

Implements chrono::ChFunction.

void chrono::ChFunction_Jscript::StreamIN ( ChStreamInBinary mstream) [virtual]

Method to allow deserializing a persistent binary archive (ex: a file) into transient data.

Reimplemented from chrono::ChFunction.

void chrono::ChFunction_Jscript::StreamOUT ( ChStreamOutAscii mstream) [virtual]

Method to allow serialization of transient data in ascii, as a readable item, for example "chrono::GetLog() << myobject;"

Reimplemented from chrono::ChFunction.

void chrono::ChFunction_Jscript::StreamOUT ( ChStreamOutBinary mstream) [virtual]

Method to allow serializing transient data into a persistent binary archive (ex: a file).

Reimplemented from chrono::ChFunction.


CHRONO::ENGINE
C++ library for multibody simulation, (C) Alessandro Tasora
This API documentation has been generated on Tue Jul 10 2012 by Doxygen