nl.knmi.orfeus.seedlink.client
Class SLNetStation

java.lang.Object
  extended by nl.knmi.orfeus.seedlink.client.SLNetStation

public class SLNetStation
extends java.lang.Object

Class to hold a SeedLink stream descriptions (selectors) for a network/station.

See Also:
Blockette

Field Summary
 edu.iris.Fissures.seed.container.Btime btime
          Time stamp of last packet received.
static int MAX_SELECTOR_SIZE
          Maximum selector size.
 java.lang.String net
          The network code.
 java.lang.String selectors
          SeedLink style selectors for this station.
 int seqnum
          SeedLink sequence number of last packet received.
 java.lang.String station
          The station code.
 
Constructor Summary
SLNetStation(java.lang.String net, java.lang.String station, java.lang.String selectors, int seqnum, java.lang.String timestamp)
          Creates a new instance of SLNetStation.
 
Method Summary
 int appendSelectors(java.lang.String newSelectors)
          Appends a selectors String to the current selectors for this SLNetStation
 java.lang.String[] getSelectors()
          Returns the selectors as an array of Strings
 java.lang.String getSLTimeStamp()
          Returns the time stamp in SeedLink string format: "year,month,day,hour,minute,second"
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAX_SELECTOR_SIZE

public static int MAX_SELECTOR_SIZE
Maximum selector size.


net

public java.lang.String net
The network code.


station

public java.lang.String station
The station code.


selectors

public java.lang.String selectors
SeedLink style selectors for this station.


seqnum

public int seqnum
SeedLink sequence number of last packet received.


btime

public edu.iris.Fissures.seed.container.Btime btime
Time stamp of last packet received.

Constructor Detail

SLNetStation

public SLNetStation(java.lang.String net,
                    java.lang.String station,
                    java.lang.String selectors,
                    int seqnum,
                    java.lang.String timestamp)
             throws SeedLinkException
Creates a new instance of SLNetStation.

Parameters:
net - network code.
station - station code.
selectors - selectors for this net/station, null if none.
seqnum - SeedLink sequence number of last packet received, -1 to start at the next data.
timestamp - SeedLink time stamp in SEED "year,day-of-year,hour,minute,second" format for last packet received, null for none.
Throws:
SeedLinkException
Method Detail

appendSelectors

public int appendSelectors(java.lang.String newSelectors)
Appends a selectors String to the current selectors for this SLNetStation

Returns:
0 if selectors added sucessfully, 1 otherwise

getSelectors

public java.lang.String[] getSelectors()
Returns the selectors as an array of Strings

Returns:
array of selector Strings

getSLTimeStamp

public java.lang.String getSLTimeStamp()
Returns the time stamp in SeedLink string format: "year,month,day,hour,minute,second"

Returns:
SeedLink time