public class ModelUtilInternal
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
private |
ModelUtilInternal()
Static class not intended to be instantiated.
|
Modifier and Type | Method and Description |
---|---|
static void |
cancelRunnable()
Cancels the currently running command, if possible.
|
static java.lang.Boolean |
getConnectedEncryption()
Returns whether the currently connected server uses a secure connection or not, or
null if not connected. |
static java.lang.String |
getConnectedHost()
Returns the host of the currently connected server, or
null if not connected. |
static java.lang.Integer |
getConnectedPort()
Returns the port of the currently connected server, or
null if not connected. |
static boolean |
isApplicationServer()
Returns true if running in an application server.
|
static boolean |
isGraphicsServer()
Returns true if running in a graphics server.
|
static java.lang.String[] |
path()
Returns the search path.
|
static void |
path(java.lang.String[] path)
Sets the search path.
|
static void |
setCosimCallbackHandler(CosimCallbackHandler cosimCallbackHandler)
Register a handler for cosimulation callbacks, or null to unregister.
|
private ModelUtilInternal()
public static java.lang.String[] path()
public static void path(java.lang.String[] path)
path
- Directories to search, ordered from first to last.public static java.lang.String getConnectedHost()
null
if not connected.null
if not connected.public static java.lang.Integer getConnectedPort()
null
if not connected.null
if not connected.public static java.lang.Boolean getConnectedEncryption()
null
if not connected.Boolean.TRUE
if the current connection is secure, Boolean.FALSE
if it's not secure, or null
if not connected.public static boolean isGraphicsServer()
public static boolean isApplicationServer()
public static void setCosimCallbackHandler(CosimCallbackHandler cosimCallbackHandler)
cosimCallbackHandler
- The handler for cosimulation callbacks.public static void cancelRunnable()