DblPend
Loading...
Searching...
No Matches
DblPend.InputParameters Class Reference

Static Public Member Functions

static Object[] get_input (String filename) throws FileNotFoundException
 Reads input from a file with the given file name.
static void input_constraints (double L_1, double L_2, double m_1, double m_2)
 Verifies that input values satisfy the physical constraints.

Member Function Documentation

◆ get_input()

Object[] DblPend.InputParameters.get_input ( String filename) throws FileNotFoundException
static

Reads input from a file with the given file name.

Parameters
filenamename of the input file
Returns
array containing the following values:
length of the first rod (m)
length of the second rod (m)
mass of the first object (kg)
mass of the second object (kg)

◆ input_constraints()

void DblPend.InputParameters.input_constraints ( double L_1,
double L_2,
double m_1,
double m_2 )
static

Verifies that input values satisfy the physical constraints.

Parameters
L_1length of the first rod (m)
L_2length of the second rod (m)
m_1mass of the first object (kg)
m_2mass of the second object (kg)

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