Package com.comsol.model.util
Class ModelUtilInternal
- java.lang.Object
-
- com.comsol.model.util.ModelUtilInternal
-
public class ModelUtilInternal extends java.lang.ObjectClient model utility methods which are not in the public API.
-
-
Constructor Summary
Constructors Modifier Constructor Description privateModelUtilInternal()Static class not intended to be instantiated.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidcancelRunnable()Cancels the currently running command, if possible.static java.lang.BooleangetConnectedEncryption()Returns whether the currently connected server uses a secure connection or not, ornullif not connected.static java.lang.StringgetConnectedHost()Returns the host of the currently connected server, ornullif not connected.static java.lang.IntegergetConnectedPort()Returns the port of the currently connected server, ornullif not connected.static booleanisApplicationServer()Returns true if running in an application server.static booleanisGraphicsServer()Returns true if running in a graphics server.static java.lang.String[]path()Returns the search path.static voidpath(java.lang.String[] path)Sets the search path.static voidsetCosimCallbackHandler(CosimCallbackHandler cosimCallbackHandler)Register a handler for cosimulation callbacks, or null to unregister.static voidsetMethodExecImpl(com.comsol.model.util.impl.IModelUtilImpl modelUtilImpl)
-
-
-
Method Detail
-
path
public static java.lang.String[] path()
Returns the search path. Note: This function is called from the test framework for model .m-tests.- Returns:
- Directories to search, ordered from first to last.
-
path
public static void path(java.lang.String[] path)
Sets the search path. Note: This function is called from the test framework for model .m-tests.- Parameters:
path- Directories to search, ordered from first to last.
-
getConnectedHost
public static java.lang.String getConnectedHost()
Returns the host of the currently connected server, ornullif not connected.- Returns:
- The connected server host computer, or
nullif not connected.
-
getConnectedPort
public static java.lang.Integer getConnectedPort()
Returns the port of the currently connected server, ornullif not connected.- Returns:
- The connected port, or
nullif not connected.
-
getConnectedEncryption
public static java.lang.Boolean getConnectedEncryption()
Returns whether the currently connected server uses a secure connection or not, ornullif not connected.- Returns:
Boolean.TRUEif the current connection is secure,Boolean.FALSEif it's not secure, ornullif not connected.
-
isGraphicsServer
public static boolean isGraphicsServer()
Returns true if running in a graphics server.
-
isApplicationServer
public static boolean isApplicationServer()
Returns true if running in an application server.
-
setCosimCallbackHandler
public static void setCosimCallbackHandler(CosimCallbackHandler cosimCallbackHandler)
Register a handler for cosimulation callbacks, or null to unregister.- Parameters:
cosimCallbackHandler- The handler for cosimulation callbacks.
-
cancelRunnable
public static void cancelRunnable()
Cancels the currently running command, if possible.
-
setMethodExecImpl
public static void setMethodExecImpl(com.comsol.model.util.impl.IModelUtilImpl modelUtilImpl)
-
-