public interface GemEquipmentInterface
The system is backed up by the VIB data handling system. Each of the methods is a convenience method to interface to VIB. The raw VIB interface is described in the VID, ALID, CEID, LimitID and VidMonitor data server objects. Note that all ids are keyed as Java Strings. The methods that accept other types are convenience methods that pass through to the string method. This means that CEID 100 is identical to "100". Note that E30 requires that certain dictionary items exist. Thes must be registered by the name specified in the E5 manual and mapped to an ID. These DDNAMES are AlarmID, EventLimit, LimitVariable, TransitionType AlarmsEnabled, AlarmsSet, Clock, ControlState, EventsEnabled, SpoolCountActual, SpoolCountTotal, SpoolFulltime, SpoolStartTime.
Modifier and Type | Field and Description |
---|---|
static int |
ADJUSTED_TIME_CHANGED
This event is posted when the adjusted time, that is, the date offset is changed
as a result of an S2F31 message.
|
static int |
ALARM_CLEARED
This event is posted when an alarm is cleared.
|
static int |
ALARM_DISABLED
This event is posted when an alarm is disabled.
|
static int |
ALARM_ENABLED
This event is posted when an alarm is enabled.
|
static int |
ALARM_REGISTERED
This event is posted when an alarm is registered (after it's configured)
The source will be the GemALID object.
|
static int |
ALARM_SET
This event is posted when an alarm is set.
|
static int |
ALID
Used to identify a ALID.
|
static java.lang.String |
ALID_STR
The string used to describe all the ALIDs.
|
static int |
ALL_ALARMS_DISABLED
This event is posted when all the alarms are disabled.
|
static int |
ALL_ALARMS_ENABLED
This event is posted when all the alarms are enabled.
|
static int |
ALL_EVENTS_DISABLED
This event is posted when all the events are disabled.
|
static int |
ALL_EVENTS_ENABLED
This event is posted when all the events are disabled.
|
static int |
ALL_LIMITS_UNREGISTERED
This event is posted when all limits are unregistered.
|
static int |
ALL_REPORTS_UNLINKED
This event is posted when an report is linked.
|
static int |
ALL_REPORTS_UNREGISTERED
This event is posted when all the report are unregistered.
|
static int |
CEID
Used to identify a CEID.
|
static java.lang.String |
CEID_STR
The string used to describe all the CEIDs.
|
static int |
DVID
Used to identify a DVID.
|
static int |
DVVAL_CHANGED
This event is posted when an DVVAL's value has changed.
|
static int |
ECID
Used to identify an ECID.
|
static int |
ECID_CHANGED
This event is posted when an ECID value has changed.
|
static int |
EVENT_DISABLED
This event is posted when an event is disabled.
|
static int |
EVENT_ENABLED
This event is posted when an event is enabled.
|
static int |
EVENT_REGISTERED
This event is posted when an event is registered.
|
static int |
EVENT_TRIGGERED
This event is posted when an event is triggered.
|
static int |
LIMIT_REGISTERED
This event is posted when an limit is registered.
|
static int |
LIMIT_TRIGGERED
This event is posted when an limit is triggered.
|
static int |
LIMIT_UNREGISTERED
This event is posted when a limit is unregistered.
|
static int |
LIMITID
Used to identify a LIMITID.
|
static int |
MONITOR_CHANGED
This event is posted when an monitor is reregistered or changed.
|
static int |
MONITOR_REGISTERED
This event is posted when an monitor is triggered
The source will be the Monitor object.
|
static int |
MONITOR_TRIGGERED
This event is posted when an limit is monitor.
|
static int |
REPORT_LINKED
This event is posted when an event is registered.
|
static int |
REPORT_REGISTERED
This event is posted when an report is registered.
|
static int |
REPORT_SENT
This event is posted when an report is triggered.
|
static int |
REPORT_UNLINKED
This event is posted when an report is linked.
|
static int |
REPORT_UNREGISTERED
This event is posted when an report is unregistered.
|
static int |
RPTID
Used to identify a RPTID.
|
static int |
SPOOL_ALL_STREAMS_REMOVED
This event is posted when all the streams are removed from the spooler
as a result of an S2F43 message.
|
static int |
SPOOL_STREAM_ADDED
This event is posted when a stream is added to the spooler
as a result of an S2F43 message.
|
static int |
SPOOL_STREAM_AND_FUNCTION_ADDED
This event is posted when a stream is added to the spooler
as a result of an S2F43 message.
|
static int |
SVID
Used to identify an SVID.
|
static int |
SVID_CHANGED
This event is posted when an SVID's value has changed.
|
static int |
TRID
Used to identify a TRID.
|
static int |
VID
Used to identify a VID.
|
static int |
VID_CHANGED
This event is posted when an ID's value has changed.
|
static int |
VID_REGISTERED
This event is posted when an id is triggered.
|
static java.lang.String |
VID_STR
The string used to describe all the value IDs (VID, ECID, SVID, DVID).
|
Modifier and Type | Method and Description |
---|---|
void |
addMessageHandler(java.lang.Object messageHandler)
Add a message handler to the interface.
|
void |
clearAlarm(int alid)
Clear Alarm will clear an alarm.
|
void |
clearAlarm(SecsFormat3x5x alid)
Clear Alarm will clear an alarm.
|
int |
getOnlineMode()
This will return the current online mode.
|
SecsFormat |
getValue(SecsFormat vid)
This allows the equipment to poll the value of any VID.
|
void |
registerALID(SecsFormat3x5x alid,
java.lang.String alidName,
java.lang.String altx,
byte alcd,
SecsFormat3x5x setCEID,
SecsFormat3x5x clearCEID)
Alarm handling.
|
GemCEID |
registerCEID(SecsFormat3x5x CEID,
java.lang.String ceidName,
java.util.List<SecsFormat> dvids)
CEID registration.
|
void |
registerECIDValidator(SecsFormat id,
ECIDValidationInterface target)
This method allows the equipment to validate an ECID before it is changed.
|
void |
registerForUpdate(SecsFormat id,
int type,
java.lang.Object target,
java.lang.String methodName)
this allows the equpiment to watch a vid.
|
GemVID |
registerVID(SecsFormat3x5x vid,
java.lang.String name,
int type,
java.lang.String units,
double limitMax,
double limitMin,
SecsFormat initialValue,
double deadband)
VID registration.
|
GemVID |
registerVID(SecsFormat3x5x vid,
java.lang.String name,
int format,
java.lang.String units,
SecsFormat initialValue)
VID registration.
|
void |
registerVIDMonitor(int vid,
int ceid,
java.lang.String condition,
SecsFormat value)
Register a monitor for a vid.
|
void |
requestOnline(boolean online)
This method allows the equipment to request online, or set offline.
|
void |
sendEventReport(SecsFormat ceid)
This method will attempt to send an appropriate message for the id.
|
void |
setAlarm(int alid)
Set Alarm will trigger an alarm.
|
void |
setAlarm(SecsFormat3x5x alid)
Set Alarm will trigger an alarm.
|
void |
setEquipmentName(java.lang.String equipmentName)
Set the name of the equipment.
|
void |
setLocal(boolean local)
If we are online, this will change to local mode.
|
void |
setValue(SecsFormat vid,
SecsFormat value)
This allows the equipment to poll the value of any VID.
|
static final int ADJUSTED_TIME_CHANGED
static final int ALARM_CLEARED
static final int ALARM_DISABLED
static final int ALARM_ENABLED
static final int ALARM_REGISTERED
static final int ALARM_SET
static final int ALID
static final java.lang.String ALID_STR
static final int ALL_ALARMS_DISABLED
static final int ALL_ALARMS_ENABLED
static final int ALL_EVENTS_DISABLED
static final int ALL_EVENTS_ENABLED
static final int ALL_LIMITS_UNREGISTERED
static final int ALL_REPORTS_UNLINKED
static final int ALL_REPORTS_UNREGISTERED
static final int CEID
static final java.lang.String CEID_STR
static final int DVID
static final int DVVAL_CHANGED
static final int ECID
static final int ECID_CHANGED
static final int EVENT_DISABLED
static final int EVENT_ENABLED
static final int EVENT_REGISTERED
static final int EVENT_TRIGGERED
static final int LIMIT_REGISTERED
static final int LIMIT_TRIGGERED
static final int LIMIT_UNREGISTERED
static final int LIMITID
static final int MONITOR_CHANGED
static final int MONITOR_REGISTERED
static final int MONITOR_TRIGGERED
static final int REPORT_LINKED
static final int REPORT_REGISTERED
static final int REPORT_SENT
static final int REPORT_UNLINKED
static final int REPORT_UNREGISTERED
static final int RPTID
static final int SPOOL_ALL_STREAMS_REMOVED
static final int SPOOL_STREAM_ADDED
static final int SPOOL_STREAM_AND_FUNCTION_ADDED
static final int SVID
static final int SVID_CHANGED
static final int TRID
static final int VID
static final int VID_CHANGED
static final int VID_REGISTERED
static final java.lang.String VID_STR
void addMessageHandler(java.lang.Object messageHandler)
void clearAlarm(int alid) throws SecsException
alid
- the alarm idSecsException
void clearAlarm(SecsFormat3x5x alid) throws SecsException
alid
- the alarm idSecsException
int getOnlineMode()
SecsFormat getValue(SecsFormat vid)
vid
- the VID to pollvoid registerALID(SecsFormat3x5x alid, java.lang.String alidName, java.lang.String altx, byte alcd, SecsFormat3x5x setCEID, SecsFormat3x5x clearCEID)
alid
- the alarm idaltx
- the alarm textalidName
- the name of the alid, may be nullalcd
- the alcd as defined by the E5 specificationaled
- set to true to enable the alarm, otherwise falsesetCEID
- the ceid of the event report sent when the alarm is setclearCEID
- the ceid of the event report sent when the alarm is clearedGemCEID registerCEID(SecsFormat3x5x CEID, java.lang.String ceidName, java.util.List<SecsFormat> dvids)
CEID
- the ceidceidName
- the name of the CEID, may be nullvoid registerECIDValidator(SecsFormat id, ECIDValidationInterface target) throws GemException
id
- the id for which the method is registering.target
- the instance of the object that is the target of the updateGemException
ECIDValidationInterface
void registerForUpdate(SecsFormat id, int type, java.lang.Object target, java.lang.String methodName) throws GemException
id
- the id for which the method is registering.type
- This is the type of id (VID, ALID, CEID)target
- the instance of the object that is the target of the updatemethod
- a method that takes one argument that is one of the above types.GemException
vib.utils.ValueObjectInterface
GemVID registerVID(SecsFormat3x5x vid, java.lang.String name, int type, java.lang.String units, double limitMax, double limitMin, SecsFormat initialValue, double deadband) throws VIBUpdateFailedException
vid
- the id in the form of a SecsFormatXXname
- This is the SVName used for S1F12type
- one of the defined types for vids (ECID, VID, DVNAME)units
- the units for this vidlimitMax
- the maximum allowable limit for this valuelimitMin
- the minimum allowable limit for this valueinitialValue
- this is the initial value of the vid. This will NOT send out any limits, monitors or ceids.deadband
- the new value must be the old value minus this
value for the value associated with the VID to change.VIBUpdateFailedException
- thrown if the type is invalid or if the intial value cannot be
set to the serverGemVID registerVID(SecsFormat3x5x vid, java.lang.String name, int format, java.lang.String units, SecsFormat initialValue) throws VIBUpdateFailedException
vid
- the id in the form of a SecsFormatXXname
- This is the SVName used for S1F12type
- one of the defined types for vids (ECID, VID, DVNAME)units
- the units for this vidinitialValue
- this is the initial value of the vid. This will NOT send out any limits, monitors or ceids.
value for the value associated with the VID to change.VIBUpdateFailedException
- thrown if the type is invalid or if the intial value cannot be
set to the servervoid registerVIDMonitor(int vid, int ceid, java.lang.String condition, SecsFormat value) throws GemException
vid
- the VID which must be registeredthe
- CEID which will be registered if it is not alreadycondition
- one of "<", "<=", ">=", ">", "!=", "=", "==" or ""target
- the target value to compare with.GemException
void requestOnline(boolean online) throws SecsException
flag
- onlineSECSException
- thrown if the host declines on-lineSecsException
void sendEventReport(SecsFormat ceid) throws SecsException
the
- id for which a message should be sent.SecsException
void setAlarm(int alid) throws SecsException
alid
- the alarm idSecsException
void setAlarm(SecsFormat3x5x alid) throws SecsException
alid
- the alarm idSecsException
void setEquipmentName(java.lang.String equipmentName) throws BadParameterException
BadParameterException
- thrown if there is an error creating the container.void setLocal(boolean local)
void setValue(SecsFormat vid, SecsFormat value) throws SecsException
vid
- the VID to pollthe
- current value of the vid expressed as a double.SecsException
Copyright © 1999-2025 ErgoTech Systems, Inc. All Rights Reserved.