|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Thread
com.altair.hwm.comm.HWMClientComm
com.altair.hwm.comm.hm.HWMCommHM
public class HWMCommHM
Title: HWMCommHM
Description: The thread that monitors all communication to/from HM. This thread manages the socket between the client app and Hypermesh
Company: Altair Engineering, Inc.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.lang.Thread |
---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
Field Summary |
---|
Fields inherited from class java.lang.Thread |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
---|---|
HWMCommHM(HWMCommMgr hwmCommMgr,
java.lang.String szSessionName,
int nPort)
Purpose: Constructor. |
|
HWMCommHM(HWMCommMgr hwmCommMgr,
java.lang.String szSessionName,
int nPort,
java.lang.String strAddress)
Purpose: Constructor. |
|
HWMCommHM(HWMCommMgr hwmCommMgr,
java.lang.String szHMPath,
java.lang.String[] arrszArgs,
java.lang.String szWorkingDir,
java.lang.String szSessionName)
Purpose: Constructor. |
|
HWMCommHM(HWMCommMgr hwmCommMgr,
java.lang.String szHMPath,
java.lang.String[] arrszArgs,
java.lang.String szWorkingDir,
java.lang.String szSessionName,
int nPort)
Purpose: Constructor. |
|
HWMCommHM(HWMCommMgr hwmCommMgr,
java.lang.String szHMPath,
java.lang.String[] arrszArgs,
java.lang.String szWorkingDir,
java.lang.String szSessionName,
int nPort,
java.lang.String szCommPath)
Purpose: Constructor. |
|
HWMCommHM(HWMCommMgr hwmCommMgr,
java.lang.String szHMPath,
java.lang.String[] arrszArgs,
java.lang.String szWorkingDir,
java.lang.String szSessionName,
java.lang.String szCommPath)
Purpose: Constructor. |
Method Summary | |
---|---|
HWMResponseHandle |
CreateFunction(java.lang.String szFuncCode)
Purpose: Allows a TCL function to be defined, and passed over the socket to be used by HyperMesh. |
HWMResponseHandle |
CreateFunction(java.lang.String[] szFuncCode)
Purpose: Allows a TCL function to be defined, and passed over the socket to be used by HyperMesh. |
void |
CreateList(java.lang.String szEntityType,
int nListID,
java.util.Vector vectEntities)
|
void |
CreateMark(java.lang.String szEntityType,
int nListID,
java.lang.String szGroup)
|
void |
CreateMark(java.lang.String szEntityType,
int nListID,
java.util.Vector vectEntities)
|
void |
CreateNode(int nX,
int nY,
int nZ,
int nSysID,
int nSurfaceId,
int nGeomIndex)
Testing some commands and queries |
void |
Disconnect()
Purpose: Exits the application. |
HWMResponseHandle |
GetMark(java.lang.String szEntityType,
int nListID)
|
void |
LineCreateFromNodes(int nListID,
int nType,
float fBreakAngle,
float fAspect,
float fLinearAngle)
|
void |
StartHM()
Setup the right command line args and start HM |
void |
StartMotion()
Setup the right command line args and start Motion View |
Methods inherited from class com.altair.hwm.comm.HWMClientComm |
---|
AddCommListener, Connect, ConnectToApplication, CreateServerSocket, GetSessionName, IsActive, IsPeerAlive, IsTerminated, RemoveCommListener, run, SendCommand, SendMessage, SendQuery, StartApplication, Terminate, WaitForHandShake |
Methods inherited from class java.lang.Thread |
---|
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public HWMCommHM(HWMCommMgr hwmCommMgr, java.lang.String szHMPath, java.lang.String[] arrszArgs, java.lang.String szWorkingDir, java.lang.String szSessionName, int nPort, java.lang.String szCommPath)
hwmCommMgr
- -- The reference to the manager that manages this
threadString
- szHMPath -- The full path to the version of HyperMesh that
will be used.String[]
- arrszArgs -- Any arguments that need to be passed to the
application, BEYOND those needed for the communicationsString
- szWorkingDir -- The directory that the application should
be started fromint
- nPort -- The port that should be used for the ServerSocketString
- szCommPath -- The full path to the comm.tcl script, which
is required for HyperMeshString
- szSessionName -- The Session Name that should be usedpublic HWMCommHM(HWMCommMgr hwmCommMgr, java.lang.String szHMPath, java.lang.String[] arrszArgs, java.lang.String szWorkingDir, java.lang.String szSessionName, int nPort)
hwmCommMgr
- -- The reference to the manager that manages this
threadString
- szHMPath -- The full path to the version of HyperMesh that
will be used.String[]
- arrszArgs -- Any arguments that need to be passed to the
application, BEYOND those needed for the communicationsString
- szWorkingDir -- The directory that the application should
be started fromint
- nPort -- The port that should be used for the ServerSocketString
- szSessionName -- The Session Name that should be usedpublic HWMCommHM(HWMCommMgr hwmCommMgr, java.lang.String szHMPath, java.lang.String[] arrszArgs, java.lang.String szWorkingDir, java.lang.String szSessionName, java.lang.String szCommPath)
hwmCommMgr
- -- The reference to the manager that manages this
threadString
- szHMPath -- The full path to the version of HyperMesh that
will be used.String[]
- arrszArgs -- Any arguments that need to be passed to the
application, BEYOND those needed for the communicationsString
- szWorkingDir -- The directory that the application should
be started fromString
- szCommPath -- The full path to the comm.tcl script, which
is required for HyperMeshString
- szSessionName -- The Session Name that should be usedpublic HWMCommHM(HWMCommMgr hwmCommMgr, java.lang.String szHMPath, java.lang.String[] arrszArgs, java.lang.String szWorkingDir, java.lang.String szSessionName)
hwmCommMgr
- -- The reference to the manager that manages this
threadString
- szHMPath -- The full path to the version of HyperMesh that
will be used.String[]
- arrszArgs -- Any arguments that need to be passed to the
application, BEYOND those needed for the communicationsString
- szWorkingDir -- The directory that the application should
be started fromString
- szSessionName -- The Session Name that should be usedpublic HWMCommHM(HWMCommMgr hwmCommMgr, java.lang.String szSessionName, int nPort, java.lang.String strAddress)
hwmCommMgr
- -- The reference to the manager that manages this
threadString
- szSessionName -- The Session Name that should be usednPort
- The port number that the server application is listening tostrAddress
- The IP of the server app is listening atpublic HWMCommHM(HWMCommMgr hwmCommMgr, java.lang.String szSessionName, int nPort)
hwmCommMgr
- -- The reference to the manager that manages this
threadString
- szSessionName -- The Session Name that should be usednPort
- The port number that the server application is listening toMethod Detail |
---|
public void Disconnect()
Disconnect
in interface HWMComm
Disconnect
in class HWMClientComm
public void StartHM()
public void StartMotion()
public HWMResponseHandle CreateFunction(java.lang.String szFuncCode) throws java.io.IOException
String
- szFuncCode -- The TCL code, seperated by newline characters
java.io.IOException
public HWMResponseHandle CreateFunction(java.lang.String[] szFuncCode) throws java.io.IOException
String
- szFuncCode -- The TCL code, seperated by newline characters
java.io.IOException
public void CreateNode(int nX, int nY, int nZ, int nSysID, int nSurfaceId, int nGeomIndex)
public void CreateList(java.lang.String szEntityType, int nListID, java.util.Vector vectEntities)
public void LineCreateFromNodes(int nListID, int nType, float fBreakAngle, float fAspect, float fLinearAngle)
public void CreateMark(java.lang.String szEntityType, int nListID, java.util.Vector vectEntities)
public void CreateMark(java.lang.String szEntityType, int nListID, java.lang.String szGroup)
public HWMResponseHandle GetMark(java.lang.String szEntityType, int nListID)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |