> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# DHVariable

public class [DHVariable](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-d-h-variable.md) : [PHXCOMObject](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter.util/-p-h-x-c-o-m-object.md)

This is the wrapper class that handles the native COM calls to a Data History Variable. The class is used by Java plug-ins to ModelCenter.

## Constructors

| | |
| - | - |
| [DHVariable](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-d-h-variable/-d-h-variable) | constructor(id: [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)) Connects this Java object to the specified session of ModelCenter constructor(id: [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html), addRef: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)) |

## Functions

| Name | Summary |
| - | - |
| [disableGC](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter.util/-p-h-x-c-o-m-object/disable-g-c) | public [disableGC](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter.util/-p-h-x-c-o-m-object/disable-g-c)(gc: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)) If true, prevents releaseObjects from doing anything. |
| [getEnumAlias](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-d-h-variable/get-enum-alias) | public [getEnumAlias](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-d-h-variable/get-enum-alias)(index: [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)): [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html) gets the Enum Alias given an index |
| [getEnumAliases](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-d-h-variable/get-enum-aliases) | public [getEnumAliases](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-d-h-variable/get-enum-aliases)(): [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html) gets the Enum Aliases |
| [getEnumValue](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-d-h-variable/get-enum-value) | public [getEnumValue](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-d-h-variable/get-enum-value)(index: [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)): [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html) gets the Enum Value |
| [getEnumValues](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-d-h-variable/get-enum-values) | public [getEnumValues](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-d-h-variable/get-enum-values)(): [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html) gets the Enum Values |
| [getEquation](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-d-h-variable/get-equation) | public [getEquation](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-d-h-variable/get-equation)(): [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html) gets the Equation |
| [getFormat](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-d-h-variable/get-format) | public [getFormat](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-d-h-variable/get-format)(): [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html) gets the format |
| [getLowerBound](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-d-h-variable/get-lower-bound) | public [getLowerBound](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-d-h-variable/get-lower-bound)(): [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) gets the LowerBound |
| [getMetaData](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-d-h-variable/get-meta-data) | public [getMetaData](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-d-h-variable/get-meta-data)(key: [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html)): [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html) gets the specified meta data |
| [getName](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-d-h-variable/get-name) | public [getName](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-d-h-variable/get-name)(): [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html) returns the name |
| [getNumEnumAlias](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-d-h-variable/get-num-enum-alias) | public [getNumEnumAlias](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-d-h-variable/get-num-enum-alias)(): [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html) gets the number of Enum Alias |
| [getNumEnumValues](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-d-h-variable/get-num-enum-values) | public [getNumEnumValues](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-d-h-variable/get-num-enum-values)(): [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html) gets the Number of Enum Values |
| [getType](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-d-h-variable/get-type) | public [getType](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-d-h-variable/get-type)(): [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html) gets the type |
| [getUnits](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-d-h-variable/get-units) | public [getUnits](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-d-h-variable/get-units)(): [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html) get the units |
| [getUpperBound](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-d-h-variable/get-upper-bound) | public [getUpperBound](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-d-h-variable/get-upper-bound)(): [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) returns the Upper Bound |
| [isDesignVar](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-d-h-variable/is-design-var) | public [isDesignVar](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-d-h-variable/is-design-var)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) checks to see if there is a Design Variable |
| [isInput](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-d-h-variable/is-input) | public [isInput](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-d-h-variable/is-input)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) checks for input |
| [isNumeric](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-d-h-variable/is-numeric) | public [isNumeric](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-d-h-variable/is-numeric)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) checks to see if numeric |
| [release](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter.util/-p-h-x-c-o-m-object/release) | public [release](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter.util/-p-h-x-c-o-m-object/release)() Releases the COM reference to ModelCenter for this object. |
| [releaseObjects](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter.util/-p-h-x-c-o-m-object/release-objects) | public [releaseObjects](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter.util/-p-h-x-c-o-m-object/release-objects)() This function attempts to release any COM resources left behind from objects which have been finalized but release() was never called on them. |
| [removeMetadata](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-d-h-variable/remove-metadata) | public [removeMetadata](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-d-h-variable/remove-metadata)(key: [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html)) removes the metadata for the specified key |
| [setDesignVar](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-d-h-variable/set-design-var) | public [setDesignVar](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-d-h-variable/set-design-var)(isDesignVar: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)) sets if this is a Design Variable |
| [setEnumAliases](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-d-h-variable/set-enum-aliases) | public [setEnumAliases](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-d-h-variable/set-enum-aliases)(aliases: [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html)) sets the Enum Aliases |
| [setEnumValues](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-d-h-variable/set-enum-values) | public [setEnumValues](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-d-h-variable/set-enum-values)(values: [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html)) sets the Enum Values |
| [setEquation](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-d-h-variable/set-equation) | public [setEquation](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-d-h-variable/set-equation)(equation: [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html)) sets the Equation |
| [setFormat](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-d-h-variable/set-format) | public [setFormat](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-d-h-variable/set-format)(format: [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html)) sets the format |
| [setInput](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-d-h-variable/set-input) | public [setInput](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-d-h-variable/set-input)(isInput: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)) sets whether the variable is an input |
| [setLowerBound](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-d-h-variable/set-lower-bound) | public [setLowerBound](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-d-h-variable/set-lower-bound)(lwrBnd: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)) gets ModelCenter --was IDispatch in COM |
| [setMetaData](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-d-h-variable/set-meta-data) | public [setMetaData](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-d-h-variable/set-meta-data)(key: [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html), value: [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html)) sets the specified meta data |
| [setName](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-d-h-variable/set-name) | public [setName](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-d-h-variable/set-name)(name: [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html)) sets the name |
| [setNumeric](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-d-h-variable/set-numeric) | public [setNumeric](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-d-h-variable/set-numeric)(isNumeric: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)) Sets whether or not the variable represents a numeric value. |
| [setReferenceDebugMode](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter.util/-p-h-x-c-o-m-object/set-reference-debug-mode) | public [setReferenceDebugMode](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter.util/-p-h-x-c-o-m-object/set-reference-debug-mode)(on: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)) 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. |
| [setType](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-d-h-variable/set-type) | public [setType](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-d-h-variable/set-type)(type: [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html)) sets the type |
| [setUnits](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-d-h-variable/set-units) | public [setUnits](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-d-h-variable/set-units)(units: [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html)) sets the units |
| [setUpperBound](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-d-h-variable/set-upper-bound) | public [setUpperBound](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-d-h-variable/set-upper-bound)(upprBnd: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)) sets the Upper Bound |
