Public Member Functions | List of all members
FunctionObject Class Reference

FunctionObject class is used to specify the function setting when using a function for the condition setting.
The class can be called from FunctionObjectFactory class.
. More...

Public Member Functions

void AddFunction (FunctionObject *function)
 Adds a new function to the composite function. More...
 
FunctionObjectGetFunction (int i)
 Returns the type of the function in the composite function. More...
 
Variant GetParameters ()
 Returns the property name of the function as a string list. More...
 
String GetParameterTable ()
 Returns the property name and value of the function as a string. More...
 
String GetPropertyHelp (String &propName)
 Returns the help of the properties as a string. More...
 
String GetType ()
 Returns the type of the function as a string. More...
 
double GetValue (String &propName)
 Returns the value of properties as a real number. More...
 
bool IsValid ()
 Returns True if an object is valid. More...
 
int NumFunctions ()
 functions for composite function More...
 
void RemoveFunction (int index)
 Deletes a function from the composite function. More...
 
void SetFlagByName (String &propName, String &scriptKeyName)
 Specifies the value of flag property for the specified name. More...
 
void SetTable (String array &list)
 Specifies a definition table for each higher harmonics. More...
 
void SetTableProperty (String &propName, DataSet *set)
 Specifies a table for the specified properties. More...
 
void SetValue (String &propName, Variant &value)
 Returns the value of properties as a real number. More...
 
void SetValueWithUnit (String &propName, Variant &value, String &unitName)
 Specifies the value of the specified property. More...
 

Detailed Description

FunctionObject class is used to specify the function setting when using a function for the condition setting.
The class can be called from FunctionObjectFactory class.
.

Example of calling the class object:

app.FunctionFactory().Constant(1.0)

For information about the property name that can be specified for the argument of a function, see Settings for Functions .

Member Function Documentation

void FunctionObject::AddFunction ( FunctionObject function)

Adds a new function to the composite function.

Parameters
functionFunctionObject object
FunctionObject * FunctionObject::GetFunction ( int  i)

Returns the type of the function in the composite function.

Parameters
iFunction ID
Returns
FunctionObject object
Variant FunctionObject::GetParameters ( )

Returns the property name of the function as a string list.

Returns
Property name and value of the function
String FunctionObject::GetParameterTable ( )

Returns the property name and value of the function as a string.

Returns
Property name of the function
String FunctionObject::GetPropertyHelp ( String &  propName)

Returns the help of the properties as a string.

Parameters
propNameProperty name
Returns
Help of the properties
String FunctionObject::GetType ( )

Returns the type of the function as a string.

Returns
Function type name
double FunctionObject::GetValue ( String &  propName)

Returns the value of properties as a real number.

Parameters
Argumentname
Returns
Property value
bool FunctionObject::IsValid ( )

Returns True if an object is valid.

Returns
Whether or not the FunctionObject objects in the list are valid
int FunctionObject::NumFunctions ( )

functions for composite function

Returns the number of functions in the composite function.

Returns
Number of functions
void FunctionObject::RemoveFunction ( int  index)

Deletes a function from the composite function.

Parameters
indexFunction ID
void FunctionObject::SetFlagByName ( String &  propName,
String &  scriptKeyName 
)

Specifies the value of flag property for the specified name.

Parameters
propNameProperty name
scriptKeyNameFlag name
void FunctionObject::SetTable ( String array &  list)

Specifies a definition table for each higher harmonics.

Parameters
listMultidimensional array
void FunctionObject::SetTableProperty ( String &  propName,
DataSet set 
)

Specifies a table for the specified properties.

Parameters
propNameProperty name
setDataSet (table)
void FunctionObject::SetValue ( String &  propName,
Variant &  value 
)

Returns the value of properties as a real number.

Parameters
propNameProperty name
valueProperty value

For information about the condition type name that can be specified as propName, see Function Settings .

void FunctionObject::SetValueWithUnit ( String &  propName,
Variant &  value,
String &  unitName 
)

Specifies the value of the specified property.

Parameters
propNameProperty name
valueProperty value
unitNameUnit

For information about the condition type name that can be specified as propName , see Function Settings .