public class StationDataTable
extends java.lang.Object
Constructor and Description |
---|
StationDataTable() |
Modifier and Type | Method and Description |
---|---|
boolean |
add(StationDataBlock sBlock)
Adds the given StationDataBlock to the table.
|
void |
clear()
Removes all station information blocks contained in the table.
|
boolean |
containsKey(java.lang.String name)
Returns true if an object matching the given name exists in the
table.
|
java.util.Enumeration |
elements()
Returns an enumeration of the station information blocks contained
in the table.
|
StationDataBlock |
get(java.lang.String name)
Returns the 'StationDataBlock' object matching the given name,
or null if no matching object is found.
|
java.lang.String |
getDisplayString()
Returns a display string for the table.
|
StationDataBlock |
remove(StationDataBlock sBlock)
Removes the given 'StationDataBlock' object.
|
StationDataBlock |
remove(java.lang.String name)
Removes the 'StationDataBlock' object matching the given name.
|
int |
size()
Returns the number of station information blocks contained in the
table.
|
boolean |
update(java.lang.String name,
StatusLevelTag statusLevel,
UsageLevelTag usageLevel,
long timeVal)
Updates the status and usage levels associated with the given
station name.
|
public boolean update(java.lang.String name, StatusLevelTag statusLevel, UsageLevelTag usageLevel, long timeVal)
name
- station name.statusLevel
- status level for station.usageLevel
- usage level for station.timeVal
- time value for this update.public boolean add(StationDataBlock sBlock)
public StationDataBlock get(java.lang.String name)
public StationDataBlock remove(java.lang.String name)
public StationDataBlock remove(StationDataBlock sBlock)
public boolean containsKey(java.lang.String name)
public java.util.Enumeration elements()
public int size()
public void clear()
public java.lang.String getDisplayString()