|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.altair.hwm.toolkit.hwpm.HWPMInteraction
public class HWPMInteraction
Title: HWPMInteraction
Description: The class which interacts with HW's process manager
Company: Altair Engineering, Inc.
Field Summary | |
---|---|
static java.lang.String |
CURSOR_NORNAL
|
static java.lang.String |
CURSOR_WAIT
|
static java.lang.String |
UI_DISABLED
The various UI states PM can be in |
static java.lang.String |
UI_PMI_OPENED
|
static java.lang.String |
UI_PMT_CLOSED
|
static java.lang.String |
UI_PMT_OPENED
|
static java.lang.String |
UI_RUN
|
Constructor Summary | |
---|---|
HWPMInteraction()
Constructor |
Method Summary | |
---|---|
void |
AddItemToJScriptContext(java.lang.String strContKey,
java.lang.Object objContValue)
Add scope to the java script interpreter |
java.util.Vector |
ConvertListToVector(java.lang.String strList)
Convert a vector to a string (list) in a format Tcl wants it |
java.lang.String |
ConvertVectorToList(java.util.Vector vector)
Convert a vector to a string (list) in a format Tcl wants it |
void |
DisplayMsgBox(java.lang.String strMsg)
Display debug messages |
java.lang.String |
EvalTCLCmd(java.lang.String strCmd)
Send the command(query) through the socket to the Tcl side. |
java.lang.Object |
ExecuteJavaScript(java.lang.String strCmd)
Execute a command as a java script on this class |
void |
Exit(java.lang.String strMessageID)
This function is called by the TCL code when HW/HM is exiting. |
java.lang.String |
GetDataList(java.util.Vector vectVarNames)
A vector of names and values to get from the datamodel |
IHWMFrame |
GetFrame()
Get the IFrame interface. |
IHWMFrameWork |
GetFrameWork()
Get the currently active model instance |
HWMAppFrameModel |
GetHWMAppFrameModel()
Gets the Hyperworks Manager application model. |
HWMJavaScript |
GetJavaScriptInterpreter()
Get the java script interpreter |
void |
Initialize(java.lang.String[] arrstrArgs)
Pseudo Constructor that creates the AppFrameView, Sets the HWPM in them, initializes their view, etc. |
static void |
main(java.lang.String[] arrstrArgs)
The main method for the app mode of EPIC |
java.lang.String |
PmgrEvalTCLCmd(java.lang.String strCmd)
Send the command(query) through the socket to the Tcl side. |
void |
PmgrSetupHWConnection()
Create the comm class that will interact with the native library. |
void |
ReadProjectFrom(java.lang.String strPrjFile)
Read the project from the given file |
void |
RemoveAllJavaScriptContexts()
Removes all javascript context scopes |
java.lang.Object |
RemoveItemFromJScriptContext(java.lang.String strContKey)
Remove the scope from the javascript interpreter |
void |
Run(int nPort)
Connect to the socket and wait for messages. |
java.lang.String |
SendPmgrTclCmd(java.lang.String strCmd)
Execute a command as a java script on this class |
java.lang.String |
SendPmgrTclCmdWOException(java.lang.String strCmd)
Execute a command as a java script on this class |
java.lang.String |
SetDataList(java.util.Vector vectVarNames,
java.util.Vector vectVarValues)
A vector of names and values to set in the datamodel |
void |
SetFrameWork(IHWMFrameWork iHWMFrameWork)
Set the framework |
java.lang.String |
SetPmgrTCLCursor(java.lang.String strCursor)
Set the cursor state |
java.lang.String |
SetPmgrTCLState()
Set the pmgr UI state depending on whether a tpl has been set/a pmi has been opened etc. |
java.lang.String |
SetPmgrTCLState(java.lang.String strState)
Set the pmgr tcl UI state to the given state |
void |
WriteProjectTo(java.lang.String strPrjFile)
Write the project to the given file |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String UI_DISABLED
public static final java.lang.String UI_PMT_OPENED
public static final java.lang.String UI_PMT_CLOSED
public static final java.lang.String UI_PMI_OPENED
public static final java.lang.String UI_RUN
public static final java.lang.String CURSOR_WAIT
public static final java.lang.String CURSOR_NORNAL
Constructor Detail |
---|
public HWPMInteraction()
The
- communication manager for this instanceMethod Detail |
---|
public HWMJavaScript GetJavaScriptInterpreter()
public void Initialize(java.lang.String[] arrstrArgs) throws java.lang.Exception
Initialize
in interface IHWInteraction
-
java.lang.Exception
public void WriteProjectTo(java.lang.String strPrjFile) throws java.lang.Exception
strPrjFileName
-
java.lang.Exception
public void ReadProjectFrom(java.lang.String strPrjFile) throws java.lang.Exception
strPrjFileName
-
java.lang.Exception
public java.lang.String SetDataList(java.util.Vector vectVarNames, java.util.Vector vectVarValues) throws java.lang.Exception
vectVarNames
- The vector of namesvectVarValues
- The vector of values
java.lang.Exception
public void SetFrameWork(IHWMFrameWork iHWMFrameWork)
iHWMFrameWork
- The framework for the instancepublic void RemoveAllJavaScriptContexts()
public void AddItemToJScriptContext(java.lang.String strContKey, java.lang.Object objContValue)
AddItemToJScriptContext
in interface IHWInteraction
String
- strContKey - The javascript context to be addedObject
- objContValue - The javascript context object to be addedpublic java.lang.Object RemoveItemFromJScriptContext(java.lang.String strContKey)
RemoveItemFromJScriptContext
in interface IHWInteraction
String
- strContKey - The javascript context to be added
public java.lang.String GetDataList(java.util.Vector vectVarNames) throws java.lang.Exception
vectVarNames
- The vector of names
java.lang.Exception
public void Exit(java.lang.String strMessageID)
public java.lang.String SetPmgrTCLCursor(java.lang.String strCursor)
strCursor
- The cursor to set
public java.lang.String SetPmgrTCLState(java.lang.String strState)
strState
- The state to set to
public java.lang.String SetPmgrTCLState()
public java.lang.String SendPmgrTclCmdWOException(java.lang.String strCmd)
strCmd
- The command to executebEncloseInCatch
- If true, enclose the command in a catch statementpublic java.lang.String SendPmgrTclCmd(java.lang.String strCmd) throws java.lang.Exception
strCmd
- The command to executebEncloseInCatch
- If true, enclose the command in a catch statement
java.lang.Exception
public java.lang.Object ExecuteJavaScript(java.lang.String strCmd) throws java.lang.Exception
ExecuteJavaScript
in interface IHWInteraction
strCmd
- The command to execute
java.lang.Exception
public java.lang.String ConvertVectorToList(java.util.Vector vector)
public java.util.Vector ConvertListToVector(java.lang.String strList)
public IHWMFrame GetFrame()
public void PmgrSetupHWConnection()
public java.lang.String PmgrEvalTCLCmd(java.lang.String strCmd)
public java.lang.String EvalTCLCmd(java.lang.String strCmd)
EvalTCLCmd
in interface IHWInteraction
public void Run(int nPort) throws java.lang.Exception
java.lang.Exception
public void DisplayMsgBox(java.lang.String strMsg)
strMsg
- The message to displaypublic IHWMFrameWork GetFrameWork()
public HWMAppFrameModel GetHWMAppFrameModel()
public static void main(java.lang.String[] arrstrArgs)
arrstrArgs
- The cmd line args
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |