|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.isti.trinetwatch.station.StationTable com.isti.trinetwatch.params.AgentInfo
Class AgentInfo defines a block of agent information items and holds a table of stations fed by the agent.
Field Summary |
Fields inherited from class com.isti.trinetwatch.station.StationTable |
LAT_LON_PREFIX_TEXT |
Constructor Summary | |
AgentInfo(java.lang.String name)
Creates an agent information block. |
Method Summary | |
boolean |
addStation(Station stationObj)
Adds the given Station object to the table of stations fed by this agent. |
void |
buildLongName()
Builds and adds the "longName" property (if it does not already exist) and sets it as the long version of the this agent's name. |
boolean |
containsStation(Station stationObj)
Tests if the given station object exists in the table of stations fed by this agent. |
boolean |
containsStationName(java.lang.String name)
Tests if a station with the specified short name exists in the table of stations fed by this agent. |
java.lang.String |
formatTimeVal(long timeVal)
Formats a time value into a date/time string. |
long |
getFirstIDMsgTime()
Returns the time that the first agent-ID message was received from this agent. |
java.lang.String |
getLongName()
Returns the long version of this agent's name. |
java.lang.String |
getName()
Returns this agent's name. |
java.lang.String |
getPropsAsQuotedStrings(boolean dynamicFlag)
Returns a string containing property item name/value pairs. |
void |
restoreSavedStaticProps()
Adds the property items saved via the 'saveClearStaticProps()' method to the current table of static property items. |
void |
saveClearStaticProps()
Moves all current static property items to a save table and clears the table of static property items. |
void |
setDPMsgTime(long timeVal)
Updates the time that the last dynamic parameter message was received from this agent. |
void |
setIDMsgTime(long timeVal)
Updates the time that the last agent-ID message was received from this agent. |
void |
setProperty(java.lang.String name,
java.lang.String value)
Enters a name/value property pair item into this agent information block. |
void |
setProperty(java.lang.String name,
java.lang.String value,
boolean dynamicFlag)
Enters a name/value property pair item into this agent information block. |
void |
setSPMsgTime(long timeVal)
Updates the time that the last static parameter message was received from this agent. |
java.lang.String |
toString()
Returns this agent's name. |
Methods inherited from class com.isti.trinetwatch.station.StationTable |
add, addAll, containsKey, containsValue, elements, enterTableData, get, getDisplayString, getDisplayString, getKeysVector, getSameStatusLevel, getSameStatusTime, getStationForDParam, getThreadSyncObj, getUpdateString, getUpdateString, getUpdateString, getValuesVector, keys, procSameStatusLevel, remove, removeAll, stationCount |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public AgentInfo(java.lang.String name)
name
- name of the agent.Method Detail |
public java.lang.String getName()
public java.lang.String getLongName()
public void setProperty(java.lang.String name, java.lang.String value, boolean dynamicFlag)
name
- name of item.value
- value for item.dynamicFlag
- if true then the item is placed in the
'dynamic' properties table.public void setProperty(java.lang.String name, java.lang.String value)
name
- name of item.value
- value for item.public void saveClearStaticProps()
public void restoreSavedStaticProps()
public java.lang.String getPropsAsQuotedStrings(boolean dynamicFlag)
public boolean addStation(Station stationObj)
public boolean containsStationName(java.lang.String name)
public boolean containsStation(Station stationObj)
public void buildLongName()
public void setSPMsgTime(long timeVal)
timeVal
- a time value in milliseconds since 1/1/1970.public void setDPMsgTime(long timeVal)
timeVal
- a time value in milliseconds since 1/1/1970.public void setIDMsgTime(long timeVal)
timeVal
- a time value in milliseconds since 1/1/1970.public long getFirstIDMsgTime()
public java.lang.String toString()
toString
in class StationTable
public final java.lang.String formatTimeVal(long timeVal)
timeVal
- the time value to be formatted into a time string.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |