public class GemHandler extends java.lang.Object implements GemEquipmentInterface, ReportWriter, AlarmWriter, java.io.Serializable, SecsEventListener
Modifier and Type | Field and Description |
---|---|
java.util.Map<java.lang.String,GemALID> |
alids
The Vector of Alarm Servers.
|
java.util.Vector<GemCEID> |
ceids
The Vector of CEID servers.
|
int |
dataid
The
dataid |
static int |
debugLevel
Positive value of debugLevel provide printouts with debugging information.
|
java.util.Vector<GemVID> |
dvids
The Vector of all the ECIDs.
|
java.util.Vector<GemVID> |
ecids
The Vector of all the ECIDs.
|
static java.lang.String |
MDLN |
java.util.Map<java.lang.String,Monitor> |
monitors
The Vector of all the condition monitors.
|
static java.time.Clock |
nanoClock
The Clock to use for the nanoClock VID.
|
OnlineHandler |
onlineHandler
The online handler.
|
java.util.Vector<GemRPTID> |
rptids
The Vector of Report Servers.
|
static java.lang.String |
SOFTREV |
java.util.Vector<GemVID> |
svids
The Vector of all the SVIDs.
|
ADJUSTED_TIME_CHANGED, ALARM_CLEARED, ALARM_DISABLED, ALARM_ENABLED, ALARM_REGISTERED, ALARM_SET, ALID, ALID_STR, ALL_ALARMS_DISABLED, ALL_ALARMS_ENABLED, ALL_EVENTS_DISABLED, ALL_EVENTS_ENABLED, ALL_LIMITS_UNREGISTERED, ALL_REPORTS_UNLINKED, ALL_REPORTS_UNREGISTERED, CEID, CEID_STR, DVID, DVVAL_CHANGED, ECID, ECID_CHANGED, EVENT_DISABLED, EVENT_ENABLED, EVENT_REGISTERED, EVENT_TRIGGERED, LIMIT_REGISTERED, LIMIT_TRIGGERED, LIMIT_UNREGISTERED, LIMITID, MONITOR_CHANGED, MONITOR_REGISTERED, MONITOR_TRIGGERED, REPORT_LINKED, REPORT_REGISTERED, REPORT_SENT, REPORT_UNLINKED, REPORT_UNREGISTERED, RPTID, SPOOL_ALL_STREAMS_REMOVED, SPOOL_STREAM_ADDED, SPOOL_STREAM_AND_FUNCTION_ADDED, SVID, SVID_CHANGED, TRID, VID, VID_CHANGED, VID_REGISTERED, VID_STR
TRANSSECSCONTROLLER_NAME_KEY
cvsRev
cvsRev
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.
|
void |
clearAlarm(SecsFormat3x5x alid,
java.util.Hashtable<SecsFormat3x5x,SecsFormat> dvvals)
Clear Alarm will clear an alarm.
|
java.lang.String |
convertDate(java.util.Date date)
This will return a date string in the form required by the CLOCK DDVAL.
|
java.lang.String |
convertInstant(java.time.Instant instant)
This will return a date string in the form required by the CLOCK DDVAL.
|
void |
destroy()
Clear all the variables.
|
GemLIMITID |
findLimit(GemVID vid,
int limitID)
This gets a specific GEM limitID
|
S5F1 |
generateAlarm(GemALID theAlarm)
This will be called by the alarm when it wants to send a specific alarm.
|
SecsMsg |
generateReport(GemCEID ceid,
ValueObjectInterface valueObject)
This will be called by the report when it wants to send a specific report.
|
SecsMsg |
generateReport(GemCEID ceid,
ValueObjectInterface valueObject,
int function,
SecsMsg incoming)
This will be called by the report when it wants to send a specific report.
|
SecsMsg |
generateReport(GemCEID ceid,
ValueObjectInterface valueObject,
int function,
SecsMsg incoming,
boolean send)
This will be called by the report when it wants to send a specific report.
|
java.util.Date |
getAdjustedDate()
This will return a date string in the form required by the CLOCK DDVAL.
|
java.time.Instant |
getAdjustedInstant()
This will return an instant precise to nanoseconds but offset by the millesecond field dataOffset
|
GemALID |
getAlarm(SecsFormat alid)
Returns the alarm server associated with the given alid.
|
SecsFormat00 |
getAlarmsSet()
Returns a list of all alids.
|
java.util.Map<java.lang.String,GemALID> |
getAllALIDs()
Returns the alids
|
java.util.List<GemCEID> |
getAllCEIDs()
Returns the ceids
|
java.util.List<GemVID> |
getAllDVIDs()
Returns the ecids
|
java.util.List<GemVID> |
getAllECIDs()
Returns the ecids
|
java.util.List<GemRPTID> |
getAllRPTID()
Returns the rptids
|
java.util.List<GemVID> |
getAllSVIDs()
Provide a connection for the equipment.
|
SecsFormat |
getData(SecsMsg msg)
This will return the data from the message provide.
|
long |
getDateOffset()
Returns the current date offset.
|
SecsFormat |
getDvname(java.lang.String dvname)
Returns an DVNAME (an integer ID) for the name provide
or null if the name is not registered.
|
SecsFormat |
getDVNAME(java.lang.String dvname)
Returns an ID for any type (not just a DVNAME).
|
java.lang.String |
getEquipmentName() |
DataSourceContainer |
getGemContainer() |
static java.lang.String |
getKey(SecsFormat3x5x vid,
SecsFormat3x5x ceid,
java.lang.String condition) |
static java.lang.String |
getLimitName(java.lang.String type,
long id,
long limit) |
static java.lang.String |
getName(int type,
long id)
Returns a string created from the given type and id.
|
static java.lang.String |
getName(java.lang.String type,
java.lang.String id)
Returns a string created from the given type and id.
|
OnlineHandler |
getOnlineHandler()
Returns the gem handler.
|
int |
getOnlineMode()
This will return the current online mode.
|
SecsFormat00 |
getReportValues(GemRPTID reportServer,
ValueObjectInterface valueObject,
boolean annotated)
Creates the list of values for the report given.
|
static SecsFormat |
getSecsFormat(double value,
int type)
This utility method will find the best container (SecsFormatxx) for a given
value.
|
static SecsFormat |
getSecsFormat(java.lang.Object value)
This utility method will find the best container (SecsFormatxx) for a given
value.
|
GemID |
getServerFor(int type,
long id)
Returns a GemID server associated with the given id and type.
|
DataSource |
getServerForName(java.lang.String serverName)
This method will return a sever that is managed by GEM and which matches
the name provided.
|
static int |
getType(SecsFormat value)
This will only work with the standard SecsFormat20, SecsFormat30, ect (the ones in the com.ergotech.secs package).
|
SecsFormat |
getValue(int vid)
This allows the equipment to poll the value of any VID.
|
SecsFormat |
getValue(SecsFormat vid)
This allows the equipment to poll the value of any VID.
|
SecsFormat |
getValue(java.lang.String vidName)
This allows the equipment to poll the value of any VID.
|
static boolean |
isS1F3ReturnsValues()
The return will be true if the S1F3 method should return the values
rather than the IDs.
|
void |
populateDVIDs(ValueObjectInterface dvvals)
Populate all SVIDs and DVIDs with any values from the dvvals.
|
void |
registerAlarm(SecsFormat alid,
GemALID theAlarm)
Registers an alarm server with the given alid
|
void |
registerALID(SecsFormat3x5x alid,
java.lang.String alidName,
java.lang.String altx,
byte alcd,
SecsFormat3x5x setCEID,
SecsFormat3x5x clearCEID)
Alarm handling.
|
void |
registerALID(SecsFormat alid,
java.lang.String altx,
byte alcd,
int setCEID,
int clearCEID)
Alarm handling.
|
GemCEID |
registerCEID(SecsFormat3x5x ceid)
ceid registration.
|
GemCEID |
registerCEID(SecsFormat3x5x ceid,
java.lang.String name,
java.util.List<SecsFormat> dvids)
CEID registration.
|
GemCEID |
registerCEIDIfNotExist(SecsFormat3x5x ceid,
java.lang.String name,
java.util.List<SecsFormat> dvids)
CEID registration.
|
void |
registerECIDValidator(int id,
ECIDValidationInterface target)
This method allows the equipment to validate an ECID before it is changed.
|
void |
registerECIDValidator(SecsFormat id,
ECIDValidationInterface target)
This method allows the equipment to validate an ECID before it is changed.
|
void |
registerForUpdate(int id,
int type,
java.lang.Object target,
java.lang.String methodName)
this allows the equpiment to watch a vid.
|
void |
registerForUpdate(SecsFormat id,
int type,
java.lang.Object target,
java.lang.String methodName)
this allows the equpiment to watch a vid.
|
TraceServer |
registerTrace(TRID trid,
TOTSMP samples,
REPGSZ sampleSize,
SecsFormat00 svids)
/** Trace registration.
|
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 type,
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 |
removeByName(java.util.Vector<? extends GemID> v,
java.lang.String name)
Remove any server matching the name from the list
|
void |
requestOnline(boolean online)
This method allows the equipment to request online, or set offline.
|
boolean |
S1F1(SecsMsg msg)
Respond to an S1F1.
|
boolean |
S1F11(SecsMsg msg)
This method receives an S1F11 and sends an S1F12.
|
boolean |
S1F13(SecsMsg msg)
This method receives an S21F13 and sends an S2F14.
|
boolean |
S1F21(SecsMsg msg)
This method receives an S1F21 and sends an S1F22.
|
boolean |
S1F23(SecsMsg msg)
This method receives an S1F23 (CEID list request) and sends an S1F24 reply.
|
boolean |
S1F3(SecsMsg msg)
This method receives an S1F3 and sends an S1F4.
|
boolean |
S2F13(SecsMsg msg)
This method receives an S21F13 and sends an S2F14.
|
boolean |
S2F15(SecsMsg msg)
This method receives an S21F15 and sends an S2F16.
|
boolean |
S2F17(SecsMsg msg)
This method recieves an S2F17.
|
boolean |
S2F23(SecsMsg msg)
This method recieves an S2F23.
|
boolean |
S2F25(SecsMsg msg)
This method receives an S2,F25 Loopback Diagnostic Request (LDR)
A diagnostic message for checkout of protocol and communication circuits.
|
boolean |
S2F29(SecsMsg msg)
This method receives an S2F29 and sends an S2F30.
|
boolean |
S2F31(SecsMsg msg)
This method receives an S2F31 and sends an S2F32.
|
boolean |
S2F33(SecsMsg msg)
This method receives an S2F33 and sends an S2F34.
|
boolean |
S2F35(SecsMsg msg)
This method receives an S2F35 and sends an S2F36.
|
boolean |
S2F37(SecsMsg msg)
This method receives an S2F37 and sends an S2F38.
|
boolean |
S2F39(SecsMsg msg)
Stream 2 multi-block Request.
|
boolean |
S2F45(SecsMsg msg)
This will receive a S2F45 secs msg.
|
boolean |
S2F47(SecsMsg msg)
This method receives an S2F47 and sends an S2F48.
|
boolean |
S5F3(SecsMsg msg)
Enable/Disable alarm send (EAS).
|
boolean |
S5F5(SecsMsg msg)
List alarm request.
|
boolean |
S5F7(SecsMsg msg)
List Enabled Alarm Request.
|
boolean |
S6F15(SecsMsg msg)
Respond to the S6F15 message.
|
boolean |
S6F17(SecsMsg msg)
Respond to the S6F17 message.
|
boolean |
S6F19(SecsMsg msg)
S6F19 - Report Request.
|
boolean |
S6F21(SecsMsg msg)
S6F21 - Annotated Report Request.
|
boolean |
S6F5(SecsMsg msg)
Stream 6 multi-block Request.
|
void |
saveModel()
Save the model.
|
void |
secsEvent(SecsEvent theEvent)
This method will be called when a SecsEvent accurs.
|
void |
sendEventReport(int ceid,
java.util.Map<SecsFormat3x5x,SecsFormat> dvvals)
This method will attempt to send an appropriate message for the id.
|
void |
sendEventReport(SecsFormat ceid)
This method will attempt to send an appropriate message for the id.
|
void |
sendEventReport(SecsFormat ceid,
java.util.Map<SecsFormat3x5x,SecsFormat> dvvals)
This method will attempt to send an appropriate message for the id.
|
static void |
sendS9F7(SecsMsg msg)
Send an S9F7 message.
|
void |
setAlarm(int alid)
Set Alarm will trigger an alarm.
|
void |
setAlarm(SecsFormat3x5x alid)
Set Alarm will trigger an alarm.
|
void |
setAlarm(SecsFormat3x5x alid,
java.util.Hashtable<SecsFormat3x5x,SecsFormat> dvvals)
Set Alarm will trigger an alarm.
|
void |
setAllLimitToUndefined()
This will set all limits to undefined.
|
void |
setAllLimitToUndefined(GemVID vid)
This will set all limits for a specific VID to undefined.
|
void |
setDateOffset(long offset)
Sets the current date offset.
|
void |
setEquipmentName(java.lang.String equipmentName)
Set the name of the equipment.
|
void |
setLimitToUndefined(GemVID vid,
int limitID)
This will set a limit to undefined.
|
void |
setLocal(boolean local)
If we are online, this will change to local mode.
|
void |
setOnlineHandler(OnlineHandler oh)
Set the object that will handle online/offline requests.
|
static void |
setS1F3ReturnsValues(boolean returnsValues)
Set to true if the S1F3 method should return the values when a blank
list is passed to the method rather than the IDs.
|
void |
setValue(int vid,
SecsFormat value)
This allows the equipment to poll the value of any VID.
|
void |
setValue(SecsFormat vid,
SecsFormat value)
This allows the equipment to poll the value of any VID.
|
void |
setValue(java.lang.String vidName,
SecsFormat value)
This allows the equipment to set the value of any VID to the exact SecsFormat value.
|
void |
setValue(java.lang.String vidName,
ValueObjectInterface value)
This allows the equipment to set the value of any VID.
|
java.lang.String |
stripType(int type,
java.lang.String name)
This strips the type identifier from the string.
|
public java.util.Map<java.lang.String,GemALID> alids
public java.util.Vector<GemCEID> ceids
public int dataid
dataid
public static int debugLevel
public transient java.util.Vector<GemVID> dvids
public transient java.util.Vector<GemVID> ecids
public static final java.lang.String MDLN
public transient java.util.Map<java.lang.String,Monitor> monitors
public static java.time.Clock nanoClock
public transient OnlineHandler onlineHandler
public java.util.Vector<GemRPTID> rptids
public static final java.lang.String SOFTREV
public transient java.util.Vector<GemVID> svids
public void addMessageHandler(java.lang.Object messageHandler)
GemEquipmentInterface
addMessageHandler
in interface GemEquipmentInterface
public void clearAlarm(int alid) throws SecsException
clearAlarm
in interface GemEquipmentInterface
alid
- the alarm idSecsException
- thrown if the event report is not sent because there
is not connection to the host. Note that this will NOT be thrown if
spooling is enabled even if there is no connection to the host.public void clearAlarm(SecsFormat3x5x alid) throws SecsException
clearAlarm
in interface GemEquipmentInterface
alid
- the alarm idSecsException
- thrown if the event report is not sent because there
is not connection to the host. Note that this will NOT be thrown if
spooling is enabled even if there is no connection to the host.public void clearAlarm(SecsFormat3x5x alid, java.util.Hashtable<SecsFormat3x5x,SecsFormat> dvvals) throws SecsException
alid
- the alarm iddvvals
- a table of SecsFormat3x5x ids vs SecsFormat values.SecsException
- thrown if the event report is not sent because there
is not connection to the host. Note that this will NOT be thrown if
spooling is enabled even if there is no connection to the host.public java.lang.String convertDate(java.util.Date date)
public java.lang.String convertInstant(java.time.Instant instant)
public void destroy()
public GemLIMITID findLimit(GemVID vid, int limitID)
public S5F1 generateAlarm(GemALID theAlarm) throws SecsException
generateAlarm
in interface AlarmWriter
SecsException
- thrown if the alarm message
cannot be sent because there is no connection.
Note that this will NOT be thrown if spooling is enabled
even if there is no connection to the host.public SecsMsg generateReport(GemCEID ceid, ValueObjectInterface valueObject) throws SecsException
generateReport
in interface ReportWriter
SecsException
- thrown if sending the message fails.public SecsMsg generateReport(GemCEID ceid, ValueObjectInterface valueObject, int function, SecsMsg incoming) throws SecsException
SecsException
- thrown if sending the message fails.public SecsMsg generateReport(GemCEID ceid, ValueObjectInterface valueObject, int function, SecsMsg incoming, boolean send) throws SecsException
SecsException
- thrown if sending the message fails.public java.util.Date getAdjustedDate()
public java.time.Instant getAdjustedInstant()
public GemALID getAlarm(SecsFormat alid)
alid
- the alarm idpublic SecsFormat00 getAlarmsSet()
public java.util.Map<java.lang.String,GemALID> getAllALIDs()
public java.util.List<GemCEID> getAllCEIDs()
public java.util.List<GemVID> getAllDVIDs()
public java.util.List<GemVID> getAllECIDs()
public java.util.List<GemRPTID> getAllRPTID()
public java.util.List<GemVID> getAllSVIDs()
WrapperInterface
- the wrapper used to connect to the hostpublic SecsFormat getData(SecsMsg msg) throws SecsException
SecsException
public long getDateOffset()
public SecsFormat getDvname(java.lang.String dvname)
public SecsFormat getDVNAME(java.lang.String dvname)
public java.lang.String getEquipmentName()
public DataSourceContainer getGemContainer()
public static java.lang.String getKey(SecsFormat3x5x vid, SecsFormat3x5x ceid, java.lang.String condition)
vid
- ceid
- condition
- public static java.lang.String getLimitName(java.lang.String type, long id, long limit)
type
- id
- limit
- public static java.lang.String getName(int type, long id) throws GemException
type
- the type of the server requested.id
- the id of the GEM type requestedGemException
public static java.lang.String getName(java.lang.String type, java.lang.String id)
type
- the type of the server requested.id
- the id of the variable to findpublic OnlineHandler getOnlineHandler()
public int getOnlineMode()
getOnlineMode
in interface GemEquipmentInterface
public SecsFormat00 getReportValues(GemRPTID reportServer, ValueObjectInterface valueObject, boolean annotated)
reportServer
- the report for which the values are requestedvalueObject
- must not be null. Only the properties are used. If the properties contains the id of a variable (as a string)
the value associated with that variable will be used in the report in preference to the value of the svid (vid). This provides
support for dvvals.annotated
- if true, the report will be an annotated report.public static SecsFormat getSecsFormat(double value, int type)
public static SecsFormat getSecsFormat(java.lang.Object value)
public GemID getServerFor(int type, long id) throws BadParameterException, GemException
BadParameterException
- thrown if a variable with the given id
and type has not been registered.GemException
- thrown if the type is invalid.public DataSource getServerForName(java.lang.String serverName) throws BadParameterException
serverName
- the name of the serverBadParameterException
- thrown if the server does not existpublic static int getType(SecsFormat value)
public SecsFormat getValue(int vid)
vid
- the VID to pollpublic SecsFormat getValue(SecsFormat vid)
getValue
in interface GemEquipmentInterface
vid
- the VID to pollpublic SecsFormat getValue(java.lang.String vidName)
vidName
- the VID name for which the value will be returned.public static boolean isS1F3ReturnsValues()
public void populateDVIDs(ValueObjectInterface dvvals) throws SecsException
populateDVIDs
in interface ReportWriter
SecsException
public void registerAlarm(SecsFormat alid, GemALID theAlarm)
alid
- the alarm idtheAlarm
- the server to associate with the alarm id.public void registerALID(SecsFormat3x5x alid, java.lang.String alidName, java.lang.String altx, byte alcd, SecsFormat3x5x setCEID, SecsFormat3x5x clearCEID)
registerALID
in interface GemEquipmentInterface
alid
- the alarm idalidName
- the name of the alid, may be nullaltx
- the alarm textalcd
- 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 clearedpublic void registerALID(SecsFormat alid, java.lang.String altx, byte alcd, int setCEID, int clearCEID)
registerALID
in interface GemEquipmentInterface
alid
- the alarm idaltx
- the alarm textalcd
- 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 clearedpublic GemCEID registerCEID(SecsFormat3x5x ceid)
public GemCEID registerCEID(SecsFormat3x5x ceid, java.lang.String name, java.util.List<SecsFormat> dvids)
registerCEID
in interface GemEquipmentInterface
ceid
- the CEID to registername
- the name of the CEIDpublic GemCEID registerCEIDIfNotExist(SecsFormat3x5x ceid, java.lang.String name, java.util.List<SecsFormat> dvids)
ceid
- the CEID to registername
- the name of the CEIDpublic void registerECIDValidator(int 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
- thrown if the vid is invalidECIDValidationInterface
public void registerECIDValidator(SecsFormat id, ECIDValidationInterface target) throws GemException
registerECIDValidator
in interface GemEquipmentInterface
id
- the id for which the method is registering.target
- the instance of the object that is the target of the updateGemException
- thrown if the vid is invalidECIDValidationInterface
public void registerForUpdate(int 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
public void registerForUpdate(SecsFormat id, int type, java.lang.Object target, java.lang.String methodName) throws GemException
registerForUpdate
in interface GemEquipmentInterface
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
public TraceServer registerTrace(TRID trid, TOTSMP samples, REPGSZ sampleSize, SecsFormat00 svids) throws SecsException
trid
- the trace idsamples
- the number of samples. This, divided by the report group sized determins the number of messages sentsampleSize
- the report group sizesvids
- the list of svids that are to be in the report.SecsException
- thrown if there is an error creating the trace server.public GemVID registerVID(SecsFormat3x5x vid, java.lang.String name, int type, java.lang.String units, double limitMax, double limitMin, SecsFormat initialValue, double deadband) throws VIBUpdateFailedException
registerVID
in interface GemEquipmentInterface
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 serverGemException
public GemVID registerVID(SecsFormat3x5x vid, java.lang.String name, int type, java.lang.String units, SecsFormat initialValue) throws VIBUpdateFailedException
registerVID
in interface GemEquipmentInterface
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 serverpublic void registerVIDMonitor(int vid, int ceid, java.lang.String condition, SecsFormat value) throws GemException
registerVIDMonitor
in interface GemEquipmentInterface
vid
- the VID which must be registeredthe
- CEID which will be registered as a SecsFormat54 if it is not alreadycondition
- one of "<", "<=", ">=", ">", "!=", "=", "==" or ""target
- the target valueGemException
public void removeByName(java.util.Vector<? extends GemID> v, java.lang.String name)
public void requestOnline(boolean online) throws SecsException
requestOnline
in interface GemEquipmentInterface
flag
- onlineSECSException
- thrown if the host declines on-lineSecsException
public boolean S1F1(SecsMsg msg)
public boolean S1F11(SecsMsg msg)
public boolean S1F13(SecsMsg msg)
public boolean S1F21(SecsMsg msg)
public boolean S1F23(SecsMsg msg)
public boolean S1F3(SecsMsg msg)
public boolean S2F13(SecsMsg msg)
public boolean S2F15(SecsMsg msg)
public boolean S2F17(SecsMsg msg)
public boolean S2F23(SecsMsg msg)
public boolean S2F25(SecsMsg msg)
public boolean S2F29(SecsMsg msg)
public boolean S2F31(SecsMsg msg)
public boolean S2F33(SecsMsg msg)
msg
- the S2F33 message
S2F33 W <L[2]
<U4 DATAID>
<L[a]
<L[2]
<U4 RPTID1>
<L[b]
<U4 VID1>
<U4 VID2>
[...]
<U4 VIDb>
>
>
<L[2]
<U4 RPTID2>
<L[c]
<U4 VID1>
<U4 VID2>
[...]
<U4 VIDc>
>
>
[...]
<L[2]
<U4 RPTIDa>
<L[d]
<U4 VID1>
<U4 VID2>
[...]
<U4 VIDd>
>
>
>
> .
1. A list of zero-length following <DATAID> deletes all report definitions and associated links. See S2,F35 (Link Event/Report).
2. A list of zero-length following <RPTID> deletes report type RPTID. All CEID links to this RPTID are also deleted.
public boolean S2F35(SecsMsg msg)
msg
- the S2F35 message
S2F35 W <L[2]
<U4 DATAID>
<L[a]
<L[2]
<U4 CEID1>
<L[b]
<U4 RPTID1>
<U4 RPTID2>
[...]
<U4 RPTIDb>
>
>
<L[2]
<U4 CEID2>
<L[c]
<U4 RPTID1>
<U4 RPTID2>
[...]
<U4 RPTIDc>
>
>
[...]
<L[2]
<U4 CEIDa>
<L[d]
<U4 RPTID1>
<U4 RPTID2>
[...]
<U4 RPTIDd>
>
>
>
> .
A list of zero-length following <CEID> deletes all report links to that event.
public boolean S2F37(SecsMsg msg)
msg
- the S2F37 message
S2F37 W <L[2]
<Bo CEED>
<L[n]
<U4 CEID1>
<U4 CEID2>
[...]
<U4 CEIDn>
>
> .
The purpose of this message is for the host to enable or disable reporting for a group of events (CEIDs)
A list of zero length following <CEED> means all CEIDs
public boolean S2F39(SecsMsg msg)
public boolean S2F45(SecsMsg msg)
public boolean S2F47(SecsMsg msg)
public boolean S5F3(SecsMsg msg)
public boolean S5F5(SecsMsg msg)
public boolean S5F7(SecsMsg msg)
public boolean S6F15(SecsMsg msg)
public boolean S6F17(SecsMsg msg)
public boolean S6F19(SecsMsg msg)
public boolean S6F21(SecsMsg msg)
public boolean S6F5(SecsMsg msg)
public void saveModel()
public void secsEvent(SecsEvent theEvent)
secsEvent
in interface SecsEventListener
public void sendEventReport(int ceid, java.util.Map<SecsFormat3x5x,SecsFormat> dvvals) throws SecsException
ceid
- the id for which a message should be sent.dvvals
- a table of SecsFormat3x5x ids vs SecsFormat values.SecsException
public void sendEventReport(SecsFormat ceid) throws SecsException
sendEventReport
in interface GemEquipmentInterface
ceid
- the id for which a message should be sent.SecsException
public void sendEventReport(SecsFormat ceid, java.util.Map<SecsFormat3x5x,SecsFormat> dvvals) throws SecsException
ceid
- the id for which a message should be sent.dvvals
- a table of SecsFormat3x5x ids vs SecsFormat values.SecsException
public static void sendS9F7(SecsMsg msg)
public void setAlarm(int alid) throws SecsException
setAlarm
in interface GemEquipmentInterface
alid
- the alarm idSecsException
- thrown if the event report is not sent because there
is not connection to the host. Note that this will NOT be thrown if
spooling is enabled even if there is no connection to the host.public void setAlarm(SecsFormat3x5x alid) throws SecsException
setAlarm
in interface GemEquipmentInterface
alid
- the alarm idSecsException
- thrown if the event report is not sent because there
is not connection to the host. Note that this will NOT be thrown if
spooling is enabled even if there is no connection to the host.public void setAlarm(SecsFormat3x5x alid, java.util.Hashtable<SecsFormat3x5x,SecsFormat> dvvals) throws SecsException
alid
- the alarm idSecsException
- thrown if the event report is not sent because there
is not connection to the host. Note that this will NOT be thrown if
spooling is enabled even if there is no connection to the host.public void setAllLimitToUndefined()
public void setAllLimitToUndefined(GemVID vid)
public void setDateOffset(long offset)
public void setEquipmentName(java.lang.String equipmentName) throws BadParameterException
GemEquipmentInterface
setEquipmentName
in interface GemEquipmentInterface
equipmentName
- The equipmentName to set.BadParameterException
public void setLimitToUndefined(GemVID vid, int limitID)
public void setLocal(boolean local)
setLocal
in interface GemEquipmentInterface
public void setOnlineHandler(OnlineHandler oh)
public static void setS1F3ReturnsValues(boolean returnsValues)
returnsValues
- the S1F3ReturnsValues parameterpublic void setValue(int vid, SecsFormat value)
vid
- the VID to pollthe
- current value of the vid expressed as a double.public void setValue(SecsFormat vid, SecsFormat value)
setValue
in interface GemEquipmentInterface
vid
- the VID to pollthe
- current value of the vid expressed as a double.public void setValue(java.lang.String vidName, SecsFormat value)
vidName
- the name of the VID to setthe
- new value of the vidpublic void setValue(java.lang.String vidName, ValueObjectInterface value)
vidName
- the name of the VID to setthe
- new value of the vidpublic java.lang.String stripType(int type, java.lang.String name)
type
- the type of the variable this must be one of the types
defined in GemEquipmentInterface. One of
ECID, SVID, DVNAME, VID, CEID, ALIDname
- the name of the variable from which to strip the type prefixCopyright © 1999-2025 ErgoTech Systems, Inc. All Rights Reserved.