edu.sc.seis.fissuresUtil.simple
Class SimpleNetworkClient

java.lang.Object
  extended by edu.sc.seis.fissuresUtil.simple.SimpleNetworkClient
All Implemented Interfaces:
TestingClient
Direct Known Subclasses:
ThreadedNetworkClient

public class SimpleNetworkClient
extends java.lang.Object
implements TestingClient


Field Summary
protected  edu.iris.Fissures.IfNetwork.NetworkAccess net
           
protected  edu.iris.Fissures.IfNetwork.NetworkDC netDC
           
protected  edu.iris.Fissures.IfNetwork.Channel testChannel
           
protected  edu.iris.Fissures.IfNetwork.Station testStation
           
 
Constructor Summary
SimpleNetworkClient()
           
SimpleNetworkClient(java.lang.String networkCode, java.lang.String serverDNS, java.lang.String serverName)
           
 
Method Summary
 void exercise()
           
 edu.iris.Fissures.IfNetwork.ChannelId[] explorer_locate_channels(boolean verbose)
           
 edu.iris.Fissures.IfNetwork.NetworkAttr get_attributes()
          This retrieves the attributes for the network gotten in the constructor.
 edu.iris.Fissures.IfNetwork.NetworkAttr get_attributes(boolean verbose)
           
 edu.iris.Fissures.IfNetwork.Channel[] locate_channels(boolean verbose)
           
static void main(java.lang.String[] args)
          A very simple client that shows how to connect to a DHI NetworkDC and retrieve some stations.
 edu.iris.Fissures.IfNetwork.Station[] retrieve_stations()
          We can also retrieve the actual stations for this network.
 edu.iris.Fissures.IfNetwork.Station[] retrieve_stations(boolean verbose)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

testChannel

protected edu.iris.Fissures.IfNetwork.Channel testChannel

testStation

protected edu.iris.Fissures.IfNetwork.Station testStation

net

protected edu.iris.Fissures.IfNetwork.NetworkAccess net

netDC

protected edu.iris.Fissures.IfNetwork.NetworkDC netDC
Constructor Detail

SimpleNetworkClient

public SimpleNetworkClient()

SimpleNetworkClient

public SimpleNetworkClient(java.lang.String networkCode,
                           java.lang.String serverDNS,
                           java.lang.String serverName)
Method Detail

exercise

public void exercise()
Specified by:
exercise in interface TestingClient

get_attributes

public edu.iris.Fissures.IfNetwork.NetworkAttr get_attributes()
This retrieves the attributes for the network gotten in the constructor. The attributes contain basic information about the network, like its name, id, owner, etc.


get_attributes

public edu.iris.Fissures.IfNetwork.NetworkAttr get_attributes(boolean verbose)

retrieve_stations

public edu.iris.Fissures.IfNetwork.Station[] retrieve_stations()
We can also retrieve the actual stations for this network. The station array is composed of local objects, so there is no internet connections once they have been retrieved.


retrieve_stations

public edu.iris.Fissures.IfNetwork.Station[] retrieve_stations(boolean verbose)

locate_channels

public edu.iris.Fissures.IfNetwork.Channel[] locate_channels(boolean verbose)

explorer_locate_channels

public edu.iris.Fissures.IfNetwork.ChannelId[] explorer_locate_channels(boolean verbose)

main

public static void main(java.lang.String[] args)
A very simple client that shows how to connect to a DHI NetworkDC and retrieve some stations. The constructor connects to a single network. Calling exercise on the constructed object runs a few methods on that network to show some of its functionality.