com.altair.hwm.interfaces
Interface IHWMControl

All Known Implementing Classes:
FEPreSelect, HMBoundingBox, HMCreateLine, HMCreatePoint, HMEvalTCL, HMEvalTCLProc, HMImport, HMMesh, HMReflect, HMScale, HMSelect, HMStart, HMView, HWMBaseButton, HWMBasePanel, HWMButton, HWMCheckBox, HWMComboBox, HWMFileBrowser, HWMLabel, HWMListBox, HWMMessageLogPane, HWMMinMaxIcon, HWMRadioButton, HWMSeparator, HWMSlider, HWMSpinner, HWMStartDB, HWMTextArea, HWMTextField, PmgrExec

public interface IHWMControl

Title: IHWMControl

Description: This is the interface that should be implemented by beans that need to communicate with HWM Application.

Company: Altair Engineering, Inc.


Method Summary
 void OnExit()
          Invoked by the HWM application when the bean is being destroyed.
 void Play()
          The play method needs to execute the functionaliy.
 void Run()
          Invoked by the HWM application when all the beans are loaded and the application can run.
 void SetBeanName(java.lang.String strBeanName)
          Set the name of the bean
 void SetFrameWork(IHWMFrameWork hwmFrameWork)
          This method is called by the HWM Application to set the interface with which a bean can communicate directly with the HWM application.
 

Method Detail

SetFrameWork

void SetFrameWork(IHWMFrameWork hwmFrameWork)
This method is called by the HWM Application to set the interface with which a bean can communicate directly with the HWM application.

Parameters:
hwmFrameWork - The interface with which a bean can communicate with the HWM application.

SetBeanName

void SetBeanName(java.lang.String strBeanName)
Set the name of the bean

Parameters:
strBeanName - The name of this bean as the framework knows it to be. Will be useful, if the bean chooses to scope its data in the datamodel - especially if multiple instances of the same bean appear in the process

OnExit

void OnExit()
Invoked by the HWM application when the bean is being destroyed. Any uninitializations to be done, can be done here.


Run

void Run()
Invoked by the HWM application when all the beans are loaded and the application can run. Beans that need to perform some action once all the beans are loaded can do it here. The container will call 'Run' on all the beans that have implemented the IHWMControl. The order will be: a> First call "Run" on all the beans in pages associated with a task. Begin with the first task. b> Call 'Run' on rest of the pages (which are not associated with a task). The pages are selected based on their order of creation. c> Within a page, the beans are invoked depending on the order of their creation.


Play

void Play()
          throws java.lang.Exception
The play method needs to execute the functionaliy. This may be invoked in the replay mode.

Throws:
java.lang.Exception