@PHXClassDecorator(PHXTException_Decorator)
class PHXDoubleArray(PHXSimpleArray)
Class wraps an array ofPHXDouble variables for the ScriptWrapper utility.
def __init__(self, varName)
@param varName: the name of the variable already declared in the wrapper to reference@type varName: string@rtype: void
def fromString(self, arg1, arg2=False)
Sets the value of a single element based on string input. Data is converted as appropriate.
- NOTE: if only one argument is provided, then the
fromString()fromPHXSimpleArrayis used. @param arg1: Index to which element to set.@type arg1: string (as a comma-separated list of indices), int[], or int@param arg2: The new value.@type arg2: string@rtype: void
def toString(self, index="-1")
def getValue(self, index)
Gets an element as a double
@param index: The array index@type index: string (as a comma-separated list of indices), int[], or int@rtype: double
def setValue(self, index, val)
sets an element as a double
@param index: The array index@type index: string (as a comma-separated list of indices), int[], or int@param val: value to set@type val: double@rtype: void
def getDoubleValue(self, index)
Gets an element as a double
@param index: The array index@type index: string (as a comma-separated list of indices), int[], or int@rtype: double
def getEnumAliases(self)
Gets the enumeration aliases list
@rtype: string[]
def setEnumAliases(self, aliases)
Sets the enumeration aliases list
@param aliases: An array of strings@type aliases: string (as a comma-separated list) or string[]@rtype: void
def getEnumValues(self)
Gets the enumeration values list
@rtype: double[]
def setEnumValues(self, values)
Sets the enumeration values list
@param values: Either a comma-separated list of values or an array of values@type values: string (as a comma-separated list) or double[]@rtype: void
def getFormat(self)
retrieves the format of the variable
@rtype: string
def setFormat(self, format)
sets the format options
@param format: the new format@type format: string@rtype: void
def getHasLowerBound(self)
retrieves the hasLowerBound flag
@rtype: boolean
def setHasLowerBound(self, value)
sets the lower bound. The hasLowerBound value is set to true
@type value: boolean@rtype: void
def getHasUpperBound(self)
retrieves the hasUpperBound flag
@rtype: boolean
def setHasUpperBound(self, value)
sets the hasUpperBound flag
@type value: boolean@rtype: void
def getLowerBound(self)
retrieves the current lower bound value
@rtype: double
def setLowerBound(self, value)
sets the lower bound. The hasLowerBound value is set to true
@param value: the lower bound@type value: double@rtype: void
def getUpperBound(self)
retrieves the current upper bound value
@rtype: double
def setUpperBound(self, value)
sets the upper bound. The hasUpperBound value is set to true
@param value: the upper bound@type value: double@rtype: void