public class GemIDConnection
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
GemIDConnection.ValueConverter
Converts from a value object to a value.
|
Modifier and Type | Field and Description |
---|---|
static int |
ALID
Used to identify a ALID.
|
static java.lang.String |
ALID_STR
The string used to describe all the ALIDs.
|
static int |
CEID
Used to identify a CEID.
|
static java.lang.String |
CEID_STR
The string used to describe all the CEIDs.
|
static java.util.Hashtable |
connections
All known connections.
|
static int |
DVNAME
Used to identify a DVNAME.
|
static int |
ECID
Used to identify an ECID.
|
static int |
LIMITID
Used to identify a LIMITID.
|
static int |
RPTID
Used to identify a RPTID.
|
static int |
SVID
Used to identify an SVID.
|
static int |
VID
Used to identify a VID.
|
static java.lang.String |
VID_STR
The string used to describe all the value IDs (VID, ECID, SVID, DVNAME).
|
Modifier and Type | Method and Description |
---|---|
static GemIDConnection |
createConnection(java.lang.String connectionName)
Called from C# to create the instance.
|
void |
enableAlarm(int alid,
boolean enabled)
This method should be called from the C# object.
|
void |
enableEvent(int ceid,
boolean enabled)
This method should be called from the C# object.
|
boolean |
getBooleanValue(int vid)
Get the current value of the VID as a boolean.
|
TransSecsController |
getController() |
double |
getDoubleValue(int vid)
Get the current value of the VID as a double (which can be converted to a float if needed).
|
long |
getIntValue(int vid)
Get the current value of the VID as a long (which can be converted to a byte, short, or int if needed).
|
VIBMessageBean |
getMessage(java.lang.String messageName)
Returns a message that can be sent from the interface.
|
java.lang.String |
getStringValue(int vid)
Get the current value of the VID as a String.
|
boolean |
registerForReceiveNotification(java.lang.String messageName,
MessageNotifier messageReceivedInterface) |
boolean |
registerForValueNotification(int id,
int type,
ValueNotifier svidChanged) |
void |
setAlarm(int alid,
boolean set)
This method should be called from the C# object.
|
void |
setBooleanValue(int id,
boolean value)
This method should be called from the C# object.
|
void |
setDoubleValue(int id,
double value)
This method should be called from the C# object.
|
void |
setIntValue(int id,
int value)
This method should be called from the C# object.
|
void |
setStringValue(int id,
java.lang.String value)
This method should be called from the C# object.
|
void |
triggerEvent(int ceid)
This method should be called from the C# object.
|
public static final int ALID
#registerForUpdate
,
Constant Field Valuespublic static final java.lang.String ALID_STR
public static final int CEID
#registerForUpdate
,
Constant Field Valuespublic static final java.lang.String CEID_STR
public static java.util.Hashtable connections
public static final int DVNAME
#registerVID
,
Constant Field Valuespublic static final int ECID
#registerVID
,
Constant Field Valuespublic static final int LIMITID
#registerForUpdate
,
Constant Field Valuespublic static final int RPTID
#registerForUpdate
,
Constant Field Valuespublic static final int SVID
#registerVID
,
Constant Field Valuespublic static final int VID
#registerForUpdate
,
Constant Field Valuespublic static final java.lang.String VID_STR
public static GemIDConnection createConnection(java.lang.String connectionName)
public void enableAlarm(int alid, boolean enabled)
SecsException
public void enableEvent(int ceid, boolean enabled)
SecsException
public boolean getBooleanValue(int vid)
public TransSecsController getController()
public double getDoubleValue(int vid)
public long getIntValue(int vid)
vid
- the vid of the valuepublic VIBMessageBean getMessage(java.lang.String messageName)
public java.lang.String getStringValue(int vid)
public boolean registerForReceiveNotification(java.lang.String messageName, MessageNotifier messageReceivedInterface)
public boolean registerForValueNotification(int id, int type, ValueNotifier svidChanged)
public void setAlarm(int alid, boolean set)
SecsException
public void setBooleanValue(int id, boolean value)
SecsException
public void setDoubleValue(int id, double value)
SecsException
public void setIntValue(int id, int value)
SecsException
public void setStringValue(int id, java.lang.String value)
SecsException
public void triggerEvent(int ceid)
SecsException
Copyright © 1999-2025 ErgoTech Systems, Inc. All Rights Reserved.