|
||||||||||
| 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
com.altair.hwm.toolkit.hwpm.HWMCommPM
public class HWMCommPM
Title: HWMCommPM
Description: The comm class that handles communication with native library. This is only used in PM mode.
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 | |
|---|---|
HWMCommPM(HWPMInteraction pmInteraction,
HWMCommMgr hwmCommMgr,
java.lang.String strSessionName)
Constructor |
|
| Method Summary | |
|---|---|
void |
ConnectToApplication()
This is not required as we use JNI to communicate |
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. |
int |
CreateServerSocket()
This is not required as we use JNI to communicate |
void |
Disconnect()
Purpose: End this communication |
boolean |
IsActive()
Purpose: Returns whether or not the HWMClientComm is Active, which means that it has a client application that has identified itself. |
boolean |
IsPeerAlive()
Check if the peer is alive |
boolean |
IsTerminated()
Purpose: Returns whether or not the HWMClientComm has terminated |
void |
run()
Purpose: Just end the thread. |
void |
SendActualMessage(java.lang.String szMsg)
Purpose: Not implemented |
void |
SendCommand(java.lang.String strMsg)
Purpose: Sends a command to the client application, adding the command to the m_vectPendingCommand vector. |
HWMResponseHandle |
SendQuery(java.lang.String strMsg)
Purpose: Sends a single SYNCHRONOUS query to the slave. |
void |
SendQueryAsync(HWMResponseListener hwmRespListener,
java.lang.String szMsg)
Purpose: Not implemented. |
void |
StartApplication()
This is not required as we use JNI to communicate |
void |
Terminate()
Purpose: Set the PM interaction to null to indicate if the client can still send messages to PM/HW |
void |
WaitForHandShake()
This is not required as we use JNI to communicate |
| Methods inherited from class com.altair.hwm.comm.hm.HWMCommHM |
|---|
CreateList, CreateMark, CreateMark, CreateNode, GetMark, LineCreateFromNodes, StartHM, StartMotion |
| Methods inherited from class com.altair.hwm.comm.HWMClientComm |
|---|
AddCommListener, Connect, GetSessionName, RemoveCommListener, SendMessage |
| 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 HWMCommPM(HWPMInteraction pmInteraction,
HWMCommMgr hwmCommMgr,
java.lang.String strSessionName)
pmInteraction - The class used for communicating with the
native libraryhwmCommMgr - The comm manager classstrSessionName - The session name to use| Method Detail |
|---|
public HWMResponseHandle SendQuery(java.lang.String strMsg)
SendQuery in class HWMClientCommString - strMsg The unformatted message, exactly as it should be
seen by the slave application.public void SendCommand(java.lang.String strMsg)
SendCommand in class HWMClientCommString - strMsg The unformatted message, exactly as it should be
seen by the slave application.
public HWMResponseHandle CreateFunction(java.lang.String szFuncCode)
throws java.io.IOException
CreateFunction in class HWMCommHMString - szFuncCode -- The TCL code, seperated by newline characters
java.io.IOException
public HWMResponseHandle CreateFunction(java.lang.String[] szFuncCode)
throws java.io.IOException
CreateFunction in class HWMCommHMString - szFuncCode -- The TCL code, seperated by newline characters
java.io.IOExceptionpublic void Terminate()
Terminate in class HWMClientCommpublic boolean IsActive()
IsActive in class HWMClientCommpublic boolean IsTerminated()
IsTerminated in class HWMClientCommpublic boolean IsPeerAlive()
IsPeerAlive in class HWMClientCommpublic void Disconnect()
Disconnect in interface HWMCommDisconnect in class HWMCommHMpublic void run()
run in interface java.lang.Runnablerun in class HWMClientCommpublic void StartApplication()
StartApplication in class HWMClientComm
public void SendQueryAsync(HWMResponseListener hwmRespListener,
java.lang.String szMsg)
throws java.io.IOException
java.io.IOException - Not implemented
public void SendActualMessage(java.lang.String szMsg)
throws java.io.IOException
java.io.IOException - Not implemented
public int CreateServerSocket()
throws java.io.IOException
CreateServerSocket in class HWMClientCommjava.io.IOException - Since this is not supported in this class
public void WaitForHandShake()
throws java.io.IOException
WaitForHandShake in class HWMClientCommjava.io.IOException - Since this is not supported in this class
public void ConnectToApplication()
throws java.lang.Exception
ConnectToApplication in class HWMClientCommjava.lang.Exception - Since this is not supported in this class
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||