public class CommonFunctionsAndConstants
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEF_IMGPATH
Path to the default plugin controller image.
|
static int |
DEF_PORT_NUMBER
Default port number for communication with 4diac function blocks.
|
static java.lang.String |
DEF_TCP_ADDRESS
Default client address for communication with 4diac function blocks.
|
static java.lang.String |
IMGPATH
Path to the plugin controller image.
|
static int |
KILOTOSI
Conversion factor for kilo units to SI.
|
static int |
LENGTHHEADERNUM
Number of bytes used to indicate a FORTE STRING's length in it's byte
header.
|
static int |
MAX_NUM_GENERIC_SENSORS
Maximum number of generic control signals
|
static int |
MAX_NUM_GENERIC_SIGNALS
Maximum number of generic control signals
|
static int |
MAX_PORT_NUMBER
Largest port number allowed.
|
static int |
MIN_PORT_NUMBER
Smallest port number allowed (0 would cause the system to assign a free port randomly, which is not desirable here.
|
static int |
THREAD_SLEEP_TIME
Sleep time in ms for Threads in JUnit tests.
|
static int |
ZERO_INIT
For initializing data to zero.
|
Constructor and Description |
---|
CommonFunctionsAndConstants() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
addPath(java.net.URL u)
Deprecated.
This method is deprecated and currently does not appear to work as intended. It was left here in case it may be useful for later use.
Attempts to add a resource to the System CLASSPATH
|
static java.lang.String |
getPluginIconResource()
Attempts to load the custom 4diac plugin icon.
|
public static final int KILOTOSI
public static final int ZERO_INIT
public static final int LENGTHHEADERNUM
public static final java.lang.String DEF_IMGPATH
public static final java.lang.String IMGPATH
public static final java.lang.String DEF_TCP_ADDRESS
public static final int MIN_PORT_NUMBER
public static final int MAX_PORT_NUMBER
public static final int DEF_PORT_NUMBER
public static final int THREAD_SLEEP_TIME
public static final int MAX_NUM_GENERIC_SENSORS
public static final int MAX_NUM_GENERIC_SIGNALS
public static java.lang.String getPluginIconResource()
String
representing the relative path to the icon. If loading the custom 4diac plugin icon fails, a String
representing the relative path to the default plugin controller icon is returned.public static java.lang.String addPath(java.net.URL u)
u
- URL
to the resourceString
with the relative path to the resource (null
if adding the resource failed)