public class SimpleNetworkClient extends java.lang.Object implements TestingClient
| Modifier and Type | Field and Description |
|---|---|
protected NetworkAccess |
net |
protected NetworkDC |
netDC |
protected Channel |
testChannel |
protected Station |
testStation |
| Constructor and Description |
|---|
SimpleNetworkClient() |
SimpleNetworkClient(java.lang.String networkCode,
java.lang.String serverDNS,
java.lang.String serverName) |
| Modifier and Type | Method and Description |
|---|---|
void |
exercise() |
ChannelId[] |
explorer_locate_channels(boolean verbose) |
NetworkAttr |
get_attributes()
This retrieves the attributes for the network gotten in the constructor.
|
NetworkAttr |
get_attributes(boolean verbose) |
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.
|
Station[] |
retrieve_stations()
We can also retrieve the actual stations for this network.
|
Station[] |
retrieve_stations(boolean verbose) |
protected Channel testChannel
protected Station testStation
protected NetworkAccess net
protected NetworkDC netDC
public SimpleNetworkClient()
public SimpleNetworkClient(java.lang.String networkCode,
java.lang.String serverDNS,
java.lang.String serverName)
public void exercise()
exercise in interface TestingClientpublic NetworkAttr get_attributes()
public NetworkAttr get_attributes(boolean verbose)
public Station[] retrieve_stations()
public Station[] retrieve_stations(boolean verbose)
public Channel[] locate_channels(boolean verbose)
public ChannelId[] explorer_locate_channels(boolean verbose)
public static void main(java.lang.String[] args)