edu.sc.seis.fissuresUtil.simple
Class SimpleNetworkClient
java.lang.Object
edu.sc.seis.fissuresUtil.simple.SimpleNetworkClient
- All Implemented Interfaces:
- TestingClient
- Direct Known Subclasses:
- ThreadedNetClient
public class SimpleNetworkClient
- extends Object
- implements TestingClient
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
testChannel
protected Channel testChannel
testStation
protected Station testStation
net
protected NetworkAccess net
SimpleNetworkClient
public SimpleNetworkClient()
SimpleNetworkClient
public SimpleNetworkClient(String networkCode,
String serverDNS,
String serverName)
exercise
public void exercise()
- Specified by:
exercise in interface TestingClient
get_attributes
public 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 NetworkAttr get_attributes(boolean verbose)
retrieve_stations
public 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 Station[] retrieve_stations(boolean verbose)
locate_channels
public Channel[] locate_channels(boolean verbose)
main
public static void main(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.
Copyright © 2002-2007 Seismology at the University of South Carolina. All Rights Reserved.