DoubleVariable
Last update: 18.06.2026public class DoubleVariable : Variable
A variable type class for ModelCenter
Author
Woyak, 10/2001
Functions
| Name | Summary |
|---|---|
| clearLowerBound | public clearLowerBound() clears the lower bound |
| clearUpperBound | public clearUpperBound() clears the upper bound |
| dependentLinks | public dependentLinks(): VariableLinks Returns a list of links that immediately depend on the value of this variable. |
| disableGC | public disableGC(gc: Boolean) If true, prevents releaseObjects from doing anything. |
| fromFormattedString | public fromFormattedString(str: String) sets the value for the variable from a formatted string |
| fromString | public fromString(str: String) Sets the value for the variable from a string. |
| getDescription | public getDescription(): String gets the description for the variable |
| getDirectDependents | public getDirectDependents(): Variables public getDirectDependents(followSuspended: Boolean): Variables Gets all the immediately linked outputs of this variable. |
| getDirectPrecedents | public getDirectPrecedents(): Variables public getDirectPrecedents(followSuspended: Boolean): Variables Gets all the immediately linked inputs of this variable. |
| getEnumAliases | public getEnumAliases(): String gets the enumerated aliases for the variable |
| getEnumValues | public getEnumValues(): String gets the enumerated values for the variable |
| getFormat | public getFormat(): String gets the format for the variable |
| getFullName | public getFullName(): String Gets the full name of the variable, e.g. |
| getHasChanged | public getHasChanged(): Boolean Boolean which indicates if the variable has changed since the last time the boolean was reset. |
| getHide | public getHide(): Boolean Gets whether the variable is hidden or not |
| getLowerBound | public getLowerBound(): Double gets the lower bound for the variable |
| getMetadata | public getMetadata(name: String): Variant Get a metadata value. |
| getName | public getName(): String Gets the name of the variable, e.g. |
| getOwningComponent | public getOwningComponent(): Component Get the component which owns this variable. |
| getType | public getType(): String Gets the type of the variable. |
| getUnits | public getUnits(): String gets the units for the variable |
| getUpperBound | public getUpperBound(): Double gets the upper bound for the variable |
| getValue | public getValue(): Double gets the value of the variable |
| getValueAbsolute | public getValueAbsolute(): Double gets the value of the variable without validating it |
| hasLowerBound | public hasLowerBound(): Boolean indicates whether a lower bound exists or not |
| hasUpperBound | public hasUpperBound(): Boolean indicates whether an upper bound exists or not |
| invalidate | public invalidate() Invalidates the variable |
| isInput | public Indicates whether the variable is an input or output |
| isInputToComponent | public isInputToComponent(): Boolean Indicates whether a variable is an input to a component |
| isInputToModel | public isInputToModel(): Boolean Indicates whether a variable is an input to the Model |
| isValid | public isValid(): Boolean Indicates whether the variable is currently valid or not |
| precedentLinks | public precedentLinks(): VariableLinks Returns a list of links that are immediate precedents to the value of this variable. |
| release | public release() Releases the COM reference to ModelCenter for this object. |
| releaseObjects | public releaseObjects() This function attempts to release any COM resources left behind from objects which have been finalized but release() was never called on them. |
| setDescription | public setDescription(description: String) sets the description for the variable |
| setEnumAliases | public setEnumAliases(enumAliases: String) sets the enumerated aliases for the variable. |
| setEnumValues | public setEnumValues(enumValues: String) sets the enumerated values for the variable |
| setFormat | public setFormat(format: String) sets the format for the variable |
| setHasChanged | public setHasChanged(flag: Boolean) Boolean which indicates if the variable has changed since the last time the boolean was reset. |
| setHide | public setHide(flag: Boolean) Set whether the variable is hidden or not |
| setLowerBound | public setLowerBound(bound: Double) sets the lower bound for the variable |
| setMetadata | public setMetadata(name: String, type: Variable.MetadataType, value: Any, access: Variable.MetadataAccess, archive: Boolean) Set a metadata value on a variable. |
| setReferenceDebugMode | public setReferenceDebugMode(on: Boolean) When set to true, the system will keep a list of active COM objects that are allocated but not yet released since this method was invoked. |
| setUnits | public setUnits(units: String) sets the units for the variable |
| setUpperBound | public setUpperBound(bound: Double) sets the upper bound for the variable |
| setValue | public setValue(value: Double) sets the value of the variable |
| toFormattedString | public toFormattedString(): String converts the variable value to a formatted string representation. |
| toFormattedStringAbsolute | public toFormattedStringAbsolute(): String converts the variable value to a formatted string representation. |
| toString | public toString(): String Converts the variable value to a string representation. |
| toStringAbsolute | public toStringAbsolute(): String Converts the variable value to a string representation. |
| validate | public validate() Causes the scheduler to get a valid value for this variable. |