com.altair.hwm.beans.hm
Class HMSelectComm

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

public class HMSelectComm
extends java.lang.Object

Title: HMSelectComm

Description: This class provides the actual communication with HyperMesh to select entities. This can be used by beans that needs the functionality of HMSelect bean but not its UI.

Company: Altair Engineering, Inc.


Constructor Summary
HMSelectComm(HWMCommMgr hwmCommMgr)
          Constructor
 
Method Summary
 java.util.Vector GetParsedResult()
          Returns the response from HM as a vector.
 HWMResponseHandle GetResponseHandle()
          Returns the result received from HM as a class HWMResponseHandle
 java.lang.String Select(java.lang.String strSessionName, java.lang.String strEntityType, java.lang.String strSelectionType)
          Selects the given entity in a model in HM
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HMSelectComm

public HMSelectComm(HWMCommMgr hwmCommMgr)
Constructor

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

Select

public java.lang.String Select(java.lang.String strSessionName,
                               java.lang.String strEntityType,
                               java.lang.String strSelectionType)
                        throws java.lang.Exception
Selects the given entity in a model in HM

Parameters:
strSessionName - Session name to use for communicating with HM
strEntityType - The type of entity to select i.e. surface, elements
strSelectionType - The selection type that is used. It could be all, displayed or selected by the user.
Returns:
String Response from HM.
Throws:
java.lang.Exception - thrown if the command fails. "getMessage" will give the description of the error that occured

GetParsedResult

public java.util.Vector GetParsedResult()
Returns the response from HM as a vector.

Returns:
Vector Parsed response from HM

GetResponseHandle

public HWMResponseHandle GetResponseHandle()
Returns the result received from HM as a class HWMResponseHandle

Returns:
HWMResponseHandle Result from HM