> ## 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.

# AddToModel

public class [AddToModel](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-add-to-model.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 AddToModel object. The class is used by Java plug-ins to ModelCenter.

#### Author

Woyak, 10-01

## Constructors

| | |
| - | - |
| [AddToModel](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-add-to-model/-add-to-model) | constructor(pstrm: [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html))constructor(pstrm: [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 |
| - | - |
| [addInput](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-add-to-model/add-input) | public [addInput](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-add-to-model/add-input)(name: [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html), type: [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)): [Variable](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-variable.md) adds a pending input to the component. |
| [addInput2](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-add-to-model/add-input2) | public [addInput2](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-add-to-model/add-input2)(name: [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html), type: [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html), classURL: [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)): [Variable](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-variable.md) adds a pending input to the component. |
| [addMethod](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-add-to-model/add-method) | public [addMethod](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-add-to-model/add-method)(name: [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html), displayName: [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html)) Adds the method |
| [addOutput](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-add-to-model/add-output) | public [addOutput](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-add-to-model/add-output)(name: [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html), type: [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)): [Variable](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-variable.md) adds a pending output to the component  Valid types of variables are listed below. |
| [addOutput2](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-add-to-model/add-output2) | public [addOutput2](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-add-to-model/add-output2)(name: [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html), type: [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html), classURL: [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)): [Variable](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-variable.md) adds a pending output to the component  Valid types of variables are listed below. |
| [addToModel](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-add-to-model/add-to-model) | public [addToModel](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-add-to-model/add-to-model)() adds a new component to the Model |
| [addToModel2](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-add-to-model/add-to-model2) | public [addToModel2](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-add-to-model/add-to-model2)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) adds a new component to the Model |
| [addToModel3](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-add-to-model/add-to-model3) | public [addToModel3](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-add-to-model/add-to-model3)(name: [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) |
| [clearBusyFlag](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-add-to-model/clear-busy-flag) | public [clearBusyFlag](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-add-to-model/clear-busy-flag)() clears the busy state if an Exception is encountered in addInput() or addOutput() |
| [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. |
| [getAutoRun](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-add-to-model/get-auto-run) | public [getAutoRun](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-add-to-model/get-auto-run)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) returns the current autorun flag |
| [getComponent](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-add-to-model/get-component) | public [getComponent](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-add-to-model/get-component)(): [Component](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-component.md) gets the component object associated with this object |
| [getPrevalidateInputs](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-add-to-model/get-prevalidate-inputs) | public [getPrevalidateInputs](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-add-to-model/get-prevalidate-inputs)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) returns the current prevalidate inputs flag |
| [getProgID](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-add-to-model/get-prog-i-d) | public [getProgID](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-add-to-model/get-prog-i-d)(): [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html) gets the "ProgID" registry entry associated with this Plug-In |
| [getRegID](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-add-to-model/get-reg-i-d) | public [getRegID](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-add-to-model/get-reg-i-d)(): [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html) gets the registry id associated with this Plug-In |
| [newInstance](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-add-to-model/new-instance) | public [newInstance](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-add-to-model/new-instance)(): [AddToModel](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-add-to-model.md) creates a new AddToModel object (that is connected to the same ModelCenter session) that is not currently attached to any thread. |
| [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. |
| [setAuthor](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-add-to-model/set-author) | public [setAuthor](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-add-to-model/set-author)(str: [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html)) sets the Plug-In author |
| [setAutoRun](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-add-to-model/set-auto-run) | public [setAutoRun](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-add-to-model/set-auto-run)(flag: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)) sets the current autorun flag |
| [setComponentRequirements](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-add-to-model/set-component-requirements) | public [setComponentRequirements](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-add-to-model/set-component-requirements)(str: [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html)) sets the Plug-In requirements |
| [setDescription](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-add-to-model/set-description) | public [setDescription](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-add-to-model/set-description)(str: [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html)) sets the Plug-In description |
| [setHelpURL](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-add-to-model/set-help-u-r-l) | public [setHelpURL](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-add-to-model/set-help-u-r-l)(str: [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html)) sets the Plug-In help URL |
| [setIcon](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-add-to-model/set-icon) | public [setIcon](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-add-to-model/set-icon)(str: [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html)) sets the Plug-In icon |
| [setKeywords](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-add-to-model/set-keywords) | public [setKeywords](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-add-to-model/set-keywords)(str: [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html)) sets the Plug-In keywords |
| [setPrevalidateInputs](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-add-to-model/set-prevalidate-inputs) | public [setPrevalidateInputs](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-add-to-model/set-prevalidate-inputs)(flag: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)) sets the current prevalidate inputs flag |
| [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. |
| [setVersion](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-add-to-model/set-version) | public [setVersion](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-add-to-model/set-version)(str: [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html)) sets the Plug-In version |
| [updateComponent](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-add-to-model/update-component) | public [updateComponent](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-add-to-model/update-component)() Reinitializes the inputs and outputs of a Component Plug-In. |
