edu.sc.seis.fissuresUtil.simple
Class SimpleNetworkClient
java.lang.Object
edu.sc.seis.fissuresUtil.simple.SimpleNetworkClient
- All Implemented Interfaces:
- TestingClient
- Direct Known Subclasses:
- ThreadedNetworkClient
public class SimpleNetworkClient
- extends java.lang.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
netDC
protected NetworkDC netDC
SimpleNetworkClient
public SimpleNetworkClient()
SimpleNetworkClient
public SimpleNetworkClient(java.lang.String networkCode,
java.lang.String serverDNS,
java.lang.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)
explorer_locate_channels
public 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.