public class GemHostModel extends GemToolModelSnapshot
Modifier and Type | Class and Description |
---|---|
static class |
GemHostModel.GemTraceVariable
This adds the "set" variable that the tool side uses to store the current state of the alarm.
|
static class |
GemHostModel.GemValueVariable
This adds the "vid" variables.
|
GemToolModelSnapshot.GemAlarmVariable, GemToolModelSnapshot.GemLimitVariable, GemToolModelSnapshot.GemReportVariable, GemToolModelSnapshot.GemVariable
Modifier and Type | Field and Description |
---|---|
int |
alidSecsFormat
The format and so the byte-length of the integer ALID.
|
int |
ceidSecsFormat
The format and so the byte-length of the integer CEIDs.
|
int |
dataIdSecsFormat
The format and so the byte-length of the integer data ID.
|
boolean |
enableAllAlarms
Set to true to force the application to enable all alarms.
|
boolean |
enableAllEvents
Set to true to force the application to enable all events.
|
int |
rptidSecsFormat
The format and so the byte-length of the integer RPTID.
|
int |
totsmpSecsFormat
The format for trace reporting TOTSMP.
|
int |
tridSecsFormat
The format and so the byte-length of the integer TRID.
|
int |
vidSecsFormat
The format and so the byte-length of the integer VID.
|
Constructor and Description |
---|
GemHostModel()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
GemHostModel.GemTraceVariable |
addS1F3Poll(java.lang.String traceName,
long pollId,
java.util.List<java.lang.Long> vids,
long startCeid,
long endCeid,
int totalSamples,
double sampleInterval)
Add a S1F3 Poll variable.
|
GemHostModel.GemTraceVariable |
addTRID(java.lang.String traceName,
long trid,
java.util.List<java.lang.Long> vids,
long startCeid,
long endCeid,
int totalSamples,
double sampleInterval)
Add a trace variable.
|
GemHostModel.GemValueVariable |
addVID(java.lang.String name,
long id,
int vidType,
int valueType)
Add a variable.
|
int |
getAlidSecsFormat() |
int |
getCeidSecsFormat() |
int |
getDataIdSecsFormat() |
GemHostModel.GemTraceVariable |
getremoveS1F3Poll(long trid)
Return a variable associated with the provided trid, or null if the poll is unknown.
|
GemHostModel.GemTraceVariable |
getremoveS1F3Poll(java.lang.String tridName)
Return a variable associated with the provided tridName, or null if the poll is unknown.
|
int |
getRptidSecsFormat() |
java.util.List<GemHostModel.GemTraceVariable> |
getS1F3Polls() |
int |
getTotsmpSecsFormat() |
GemHostModel.GemTraceVariable |
getTRID(long trid)
Return a variable associated with the provided trid, or null if the trid is unknown.
|
GemHostModel.GemTraceVariable |
getTRID(java.lang.String tridName)
Return a variable associated with the provided tridName, or null if the trid is unknown.
|
java.util.List<GemHostModel.GemTraceVariable> |
getTrids() |
int |
getTridSecsFormat() |
GemHostModel.GemValueVariable |
getVID(long vid)
Return a variable associated with the provided vid, or null if the vid is unknown.
|
GemHostModel.GemValueVariable |
getVID(java.lang.String vidName)
Return a variable associated with the provided vid public String toString() {
String retString = "GEM Host Model VIDs:" + getVids().size() + " CEIDs:"+ getCeids().size() + " RPTIDs:" + getRptids().size() + " ALIDs:" + getAlids().size();
return retString;
}
Name, or null if the vid is unknown.
|
java.util.List<GemHostModel.GemValueVariable> |
getVids() |
int |
getVidSecsFormat() |
boolean |
isEnableAllAlarms() |
boolean |
isEnableAllEvents() |
void |
removeS1F3Poll(long pollId)
Remove the given trid.
|
void |
removeTRID(long id)
Remove the given trid.
|
void |
removeVID(long id)
Remove the given vid.
|
void |
setAlidSecsFormat(int alidSecsFormat) |
void |
setCeidSecsFormat(int ceidSecsFormat) |
void |
setDataIdSecsFormat(int dataIdSecsFormat) |
void |
setEnableAllAlarms(boolean enableAllAlarms) |
void |
setEnableAllEvents(boolean enableAllEvents) |
void |
setRptidSecsFormat(int rptidSecsFormat) |
void |
setTotsmpSecsFormat(int totsmpSecsFormat) |
void |
setTridSecsFormat(int tridSecsFormat) |
void |
setVidSecsFormat(int vidSecsFormat) |
java.lang.String |
toString() |
addAlarm, addCeid, addReport, getALID, getAlids, getCEID, getCEID, getCeids, getLimitids, getRPTID, getRptids, removeAlarm, removeCEID, removeRPTID
public int alidSecsFormat
public int ceidSecsFormat
public int dataIdSecsFormat
public boolean enableAllAlarms
public boolean enableAllEvents
public int rptidSecsFormat
public int totsmpSecsFormat
public int tridSecsFormat
public int vidSecsFormat
public GemHostModel.GemTraceVariable addS1F3Poll(java.lang.String traceName, long pollId, java.util.List<java.lang.Long> vids, long startCeid, long endCeid, int totalSamples, double sampleInterval)
traceName
- the name of the tracestartCeid
- the CEID that will start the trace data collectionendCeid
- the CEID that will end the trace data collectiontotalSamples
- the maximum number of samplessampleInterval
- the time, in seconds and decimal seconds between readings.pollId
- the poll idpublic GemHostModel.GemTraceVariable addTRID(java.lang.String traceName, long trid, java.util.List<java.lang.Long> vids, long startCeid, long endCeid, int totalSamples, double sampleInterval)
traceName
- the name of the tracestartCeid
- the CEID that will start the trace data collectionendCeid
- the CEID that will end the trace data collectiontotalSamples
- the maximum number of samplessampleInterval
- the time, in seconds and decimal seconds between readings.trid
- the trace idpublic GemHostModel.GemValueVariable addVID(java.lang.String name, long id, int vidType, int valueType)
name
- the name of the vidid
- the id of the vidvidType
- the type of the vid - SVID, ECID, DVNAME as defined in the GemEquipmentInterfacevalueType
- the type of the value. Required by the host application.public int getAlidSecsFormat()
public int getCeidSecsFormat()
public int getDataIdSecsFormat()
public GemHostModel.GemTraceVariable getremoveS1F3Poll(long trid)
pollId
- the poll idpublic GemHostModel.GemTraceVariable getremoveS1F3Poll(java.lang.String tridName)
tridName
- the poll name to checkpublic int getRptidSecsFormat()
public java.util.List<GemHostModel.GemTraceVariable> getS1F3Polls()
public int getTotsmpSecsFormat()
public GemHostModel.GemTraceVariable getTRID(long trid)
trid
- the trid to checkpublic GemHostModel.GemTraceVariable getTRID(java.lang.String tridName)
tridName
- the trid to checkpublic java.util.List<GemHostModel.GemTraceVariable> getTrids()
public int getTridSecsFormat()
public GemHostModel.GemValueVariable getVID(long vid)
vid
- the vid to checkpublic GemHostModel.GemValueVariable getVID(java.lang.String vidName)
vidName
- the vid to checkpublic java.util.List<GemHostModel.GemValueVariable> getVids()
public int getVidSecsFormat()
public boolean isEnableAllAlarms()
public boolean isEnableAllEvents()
public void removeS1F3Poll(long pollId)
pollId
- the poll idpublic void removeTRID(long id)
public void removeVID(long id)
public void setAlidSecsFormat(int alidSecsFormat)
alidSecsFormat
- the alidSecsFormat to setpublic void setCeidSecsFormat(int ceidSecsFormat)
ceidSecsFormat
- the ceidSecsFormat to setpublic void setDataIdSecsFormat(int dataIdSecsFormat)
dataIdSecsFormat
- the dataIdSecsFormat to setpublic void setEnableAllAlarms(boolean enableAllAlarms)
enableAllEvents
- the enableAllEvents to setpublic void setEnableAllEvents(boolean enableAllEvents)
enableAllEvents
- the enableAllEvents to setpublic void setRptidSecsFormat(int rptidSecsFormat)
rptidSecsFormat
- the rptidSecsFormat to setpublic void setTotsmpSecsFormat(int totsmpSecsFormat)
totsmpSecsFormat
- the totsmpSecsFormat to setpublic void setTridSecsFormat(int tridSecsFormat)
tridSecsFormat
- the tridSecsFormatpublic void setVidSecsFormat(int vidSecsFormat)
vidSecsFormat
- the vidSecsFormat to setpublic java.lang.String toString()
toString
in class java.lang.Object
Copyright © 1999-2025 ErgoTech Systems, Inc. All Rights Reserved.