|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.altair.hwm.beans.hm.HMEvalTCLProcComm
public class HMEvalTCLProcComm
Title: HMEvalTCLProcComm
Description: This class provides the functionality of creating TCL procedures and executing them in HyperMesh.This can be used by beans that needs the functionality of HMEvalTCLProcComm bean but not its UI.
Company: Altair Engineering, Inc.
Constructor Summary | |
---|---|
HMEvalTCLProcComm(HWMCommMgr hwmCommMgr)
Constructor. |
Method Summary | |
---|---|
void |
CreateProcedure(java.lang.String strSessionName,
java.lang.String strProcName,
java.lang.String strProcedure)
Creates the function using HWMComm and if it fails.... |
java.lang.Object |
EvalTclCommand(java.lang.String strSessionName,
java.lang.String strTclCommand,
boolean bParse)
Executes a Tcl command and returns either the string or parsed result as a vector depending on bParse |
java.lang.Object |
EvalTCLProc(java.lang.String strSessionName,
java.lang.String[] arrstrProcNames,
java.lang.String[] arrstrProcedures,
java.lang.String strMainProcName,
boolean bParseResult)
This creates all the procedures passed as an array on the HM side and then calls the main procedure and returns a String |
java.lang.Object |
EvalTCLProc(java.lang.String strSessionName,
java.lang.String strProcedure,
java.lang.String strProcName,
boolean bParseResult)
This creates the procedure on the HM side and then invokes it and returns a String |
java.lang.Object |
ExecuteProcedure(java.lang.String strSessionName,
java.lang.String strMainProcName,
boolean bParse)
Executes the main procedure and returns either the string or parsed result as a vector depending on bParse |
void |
ExecuteTclCommand(java.lang.String strSessionName,
java.lang.String strTclCommand)
Executes a Tcl command and returns either the string or parsed result as a vector depending on bParse |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HMEvalTCLProcComm(HWMCommMgr hwmCommMgr)
hwmCommMgr
- The communication manager wqhich facilitates the
communication with HMMethod Detail |
---|
public java.lang.Object EvalTCLProc(java.lang.String strSessionName, java.lang.String[] arrstrProcNames, java.lang.String[] arrstrProcedures, java.lang.String strMainProcName, boolean bParseResult) throws java.lang.Exception
strSessionName
- Session name to use for communicating with HMarrstrProcNames
- array of procedures naes that are present in
arrstrProceduresarrstrProcedures
- array of procedures to be created on the HM SidestrMainProcName
- The main procedure name that will be invokedbParseResult
- If true, the result is parsed and returned as a
vector else the result is a String
java.lang.Exception
- thrown if the command fails. "getMessage" will give
the description of the error that occuredpublic java.lang.Object EvalTCLProc(java.lang.String strSessionName, java.lang.String strProcedure, java.lang.String strProcName, boolean bParseResult) throws java.lang.Exception
strSessionName
- Session name to use for communicating with HMstrProcedure
- The procedure to be create on the HM SidestrProcName
- The name of the procedure to invokebParseResult
- If true, the result is parsed and returned as a
vector else the result is a String
java.lang.Exception
- thrown if the command fails. "getMessage" will give
the description of the error that occuredpublic void CreateProcedure(java.lang.String strSessionName, java.lang.String strProcName, java.lang.String strProcedure) throws java.lang.Exception
strSessionName
- Session name to use for communicating with HMstrProcName
- The TCL procedure namestrProcedure
- The TCL procedure as a string
java.lang.Exception
public java.lang.Object ExecuteProcedure(java.lang.String strSessionName, java.lang.String strMainProcName, boolean bParse) throws java.lang.Exception
strSessionName
- Session name to use for communicating with HMstrMainProcName
- The main TCL procedure which should be invoked.bParse
- If true, the result from HyperMesh is parsed
java.lang.Exception
public java.lang.Object EvalTclCommand(java.lang.String strSessionName, java.lang.String strTclCommand, boolean bParse) throws java.lang.Exception
strSessionName
- Session name to use for communicating with HMstrTclCommand
- The TCL command to executebParse
- If true, the result from HyperMesh is parsed
java.lang.Exception
public void ExecuteTclCommand(java.lang.String strSessionName, java.lang.String strTclCommand) throws java.lang.Exception
strSessionName
- Session name to use for communicating with HMstrTclCommand
- The TCL command to executebParse
- If true, the result from HyperMesh is parsed
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |