Gadget
Public Member Functions | List of all members
StraightSelectFunc Class Reference

This is the class used to calculate the selection level based on a linear function of length. More...

#include <selectfunc.h>

Inheritance diagram for StraightSelectFunc:
Inheritance graph
Collaboration diagram for StraightSelectFunc:
Collaboration graph

Public Member Functions

 StraightSelectFunc ()
 This is the StraightSelectFunc constructor. More...
 
virtual ~StraightSelectFunc ()
 This is the default StraightSelectFunc destructor. More...
 
virtual double calculate (double len)
 This will return the selection level that has been calculated. More...
 
- Public Member Functions inherited from SelectFunc
 SelectFunc (const char *givenname)
 This is the default SelectFunc constructor. More...
 
virtual ~SelectFunc ()
 This is the default SelectFunc destructor. More...
 
void readConstants (CommentStream &infile, const TimeClass *const TimeInfo, Keeper *const keeper)
 This function will read the value of the selection function parameters from file. More...
 
void updateConstants (const TimeClass *const TimeInfo)
 This function will update the selection function parameters. More...
 
int didChange (const TimeClass *const TimeInfo)
 This function will check to see if the selection function parameters have changed. More...
 
int numConstants ()
 This will return the number of constants used to calculate the selection value. More...
 
- Public Member Functions inherited from HasName
 HasName ()
 This is the default HasName constructor. More...
 
virtual ~HasName ()
 This is the default HasName destructor. More...
 
 HasName (const char *givenname)
 This is the HasName constructor for a specified name. More...
 
const char * getName () const
 This will return a null terminated text string containing the name of the object. More...
 

Additional Inherited Members

- Protected Attributes inherited from SelectFunc
ModelVariableVector coeff
 This is the ModelVariableVector of the selection function constants. More...
 

Detailed Description

This is the class used to calculate the selection level based on a linear function of length.

Constructor & Destructor Documentation

◆ StraightSelectFunc()

StraightSelectFunc::StraightSelectFunc ( )

This is the StraightSelectFunc constructor.

◆ ~StraightSelectFunc()

virtual StraightSelectFunc::~StraightSelectFunc ( )
inlinevirtual

This is the default StraightSelectFunc destructor.

Member Function Documentation

◆ calculate()

double StraightSelectFunc::calculate ( double  len)
virtual

This will return the selection level that has been calculated.

Parameters
lenis the length of the length class that is selected
Returns
selection level

Implements SelectFunc.


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