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

# ITradeStudyPlugIn2

interface [ITradeStudyPlugIn2](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/2025-r2/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-i-trade-study-plug-in2.md) : [ITradeStudyPlugIn](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/2025-r2/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-i-trade-study-plug-in.md)

This is the interface that must be implemented by all Java trade study plug-ins for ModelCenter that can be used with OEM Analyzer tools.

#### Inheritors

| |
| - |
| [ITradeStudyPlugIn3](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/2025-r2/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-i-trade-study-plug-in3.md) |
| [ITradeStudyPlugIn3](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/2025-r2/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-i-trade-study-plug-in3.md) |

## Functions

| Name | Summary |
| - | - |
| [addAnalyzerVariable](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/2025-r2/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-i-trade-study-plug-in2/add-analyzer-variable) | abstract fun [addAnalyzerVariable](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/2025-r2/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-i-trade-study-plug-in2/add-analyzer-variable)(formula: [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html), analyzerName: [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html)) Call to add a variable from an analyzer product. |
| [clearAnalyzerVariables](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/2025-r2/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-i-trade-study-plug-in2/clear-analyzer-variables) | abstract fun [clearAnalyzerVariables](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/2025-r2/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-i-trade-study-plug-in2/clear-analyzer-variables)() Remove all analyzer variables. |
| [construct](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/2025-r2/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-i-trade-study-plug-in/construct) | abstract fun [construct](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/2025-r2/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-i-trade-study-plug-in/construct)(mc: [ModelCenter](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/2025-r2/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-model-center.md), atm: [AddToModel](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/2025-r2/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-add-to-model.md)) called when the plug-in is launched from ModelCenter |
| [fromString](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/2025-r2/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-i-trade-study-plug-in/from-string) | abstract fun [fromString](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/2025-r2/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-i-trade-study-plug-in/from-string)(state: [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html)) Called to restore the state of a Plug-In. |
| [getSaveAllAnalyzerVariables](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/2025-r2/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-i-trade-study-plug-in2/get-save-all-analyzer-variables) | abstract fun [getSaveAllAnalyzerVariables](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/2025-r2/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-i-trade-study-plug-in2/get-save-all-analyzer-variables)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) Gets whether all analyzer variables are saved in the data history when the trade study is run. |
| [getTradeStudyCallback](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/2025-r2/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-i-trade-study-plug-in2/get-trade-study-callback) | abstract fun [getTradeStudyCallback](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/2025-r2/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-i-trade-study-plug-in2/get-trade-study-callback)(): [ITradeStudyCallback](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/2025-r2/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-i-trade-study-callback.md) Gets the trade study call back object. |
| [onEnd](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/2025-r2/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-i-trade-study-plug-in2/on-end) | abstract fun [onEnd](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/2025-r2/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-i-trade-study-plug-in2/on-end)() Called when the plug-in is about to be deleted. |
| [setSaveAllAnalyzerVariables](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/2025-r2/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-i-trade-study-plug-in2/set-save-all-analyzer-variables) | abstract fun [setSaveAllAnalyzerVariables](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/2025-r2/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-i-trade-study-plug-in2/set-save-all-analyzer-variables)(saveAll: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)) Sets whether all analyzer variables are saved in the data history when the trade study is run. |
| [setTradeStudyCallback](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/2025-r2/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-i-trade-study-plug-in2/set-trade-study-callback) | abstract fun [setTradeStudyCallback](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/2025-r2/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-i-trade-study-plug-in2/set-trade-study-callback)(tcb: [ITradeStudyCallback](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/2025-r2/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-i-trade-study-callback.md)) Sets the trade study call back object. |
| [show](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/2025-r2/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-i-trade-study-plug-in/show) | abstract fun [show](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/2025-r2/modelcenter-java-api-md/mc_api/com.phoenix_int.ModelCenter/-i-trade-study-plug-in/show)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) called to display the plug-in |
