com.altair.hwm.beans.hm
Class HMStartComm

java.lang.Object
  extended by com.altair.hwm.beans.hm.HMStartComm

public class HMStartComm
extends java.lang.Object

Title: HMStartComm

Description: This class provides the actual functionality of starting HyperMesh and establishing communication with HyperMesh This can be used by beans that needs the functionality of HMStart bean but not its UI.

Company: Altair Engineering, Inc.


Constructor Summary
HMStartComm(HWMCommMgr hwmCommMgr)
          Constructor.
 
Method Summary
 void ExitHyperMesh(java.lang.String strSessionName)
          Exits HM using the session name
 void StartHyperMesh(java.lang.String strSessionName, java.lang.String strHMPath, java.lang.String strWorkingDir)
          Starts HyperMesh.
 void StartMotion(java.lang.String strSessionName, java.lang.String strAppPath, java.lang.String strWorkingDir)
          Starts one of the applications from the Motion suite.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HMStartComm

public HMStartComm(HWMCommMgr hwmCommMgr)
Constructor.

Parameters:
hwmCommMgr - The communication manager wqhich facilitates the communication with HM
Method Detail

StartHyperMesh

public void StartHyperMesh(java.lang.String strSessionName,
                           java.lang.String strHMPath,
                           java.lang.String strWorkingDir)
                    throws java.lang.Exception
Starts HyperMesh. This is the function thta should be called via program

Parameters:
strSessionName - Session name
strHMPath - Absolute path to Hypermesh application
strWorkingDir - Working directory to use
Throws:
java.lang.Exception - thrown if the command fails. "getMessage" will give the description of the error that occured

StartMotion

public void StartMotion(java.lang.String strSessionName,
                        java.lang.String strAppPath,
                        java.lang.String strWorkingDir)
                 throws java.lang.Exception
Starts one of the applications from the Motion suite. This is the function that should be called via program

Parameters:
strSessionName - Session name
strAppPath - Absolute path to Motion application
strWorkingDir - Working directory to use
Throws:
java.lang.Exception - thrown if the command fails. "getMessage" will give the description of the error that occured

ExitHyperMesh

public void ExitHyperMesh(java.lang.String strSessionName)
Exits HM using the session name

Parameters:
strSessionName - The name of the HM session to end