public class GemHostModel extends GemToolModelSnapshot
Modifier and Type | Class and Description |
---|---|
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 |
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 |
vidSecsFormat
The format and so the byte-length of the integer VID.
|
Constructor and Description |
---|
GemHostModel()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addVID(java.lang.String name,
long id,
int vidType,
int valueType)
Add a variable.
|
int |
getAlidSecsFormat() |
int |
getCeidSecsFormat() |
int |
getDataIdSecsFormat() |
int |
getRptidSecsFormat() |
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 |
isEnableAllEvents() |
void |
removeVID(long id)
Remove the given vid.
|
void |
setAlidSecsFormat(int alidSecsFormat) |
void |
setCeidSecsFormat(int ceidSecsFormat) |
void |
setDataIdSecsFormat(int dataIdSecsFormat) |
void |
setEnableAllEvents(boolean enableAllEvents) |
void |
setRptidSecsFormat(int rptidSecsFormat) |
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 enableAllEvents
public int rptidSecsFormat
public int vidSecsFormat
public void 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 int getRptidSecsFormat()
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 isEnableAllEvents()
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 setEnableAllEvents(boolean enableAllEvents)
enableAllEvents
- the enableAllEvents to setpublic void setRptidSecsFormat(int rptidSecsFormat)
rptidSecsFormat
- the rptidSecsFormat to setpublic void setVidSecsFormat(int vidSecsFormat)
vidSecsFormat
- the vidSecsFormat to setpublic java.lang.String toString()
toString
in class java.lang.Object
Copyright © 1999-2021 ErgoTech Systems, Inc. All Rights Reserved.