public class MockNetworkSource extends java.lang.Object implements NetworkSource
| Constructor and Description |
|---|
MockNetworkSource() |
MockNetworkSource(TimeInterval refresh) |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<? extends ChannelImpl> |
getChannels(StationImpl station) |
Instrumentation |
getInstrumentation(ChannelImpl chanId) |
java.lang.String |
getName()
returns the name of the server.
|
CacheNetworkAccess |
getNetwork(NetworkAttrImpl attr) |
java.util.List<? extends CacheNetworkAccess> |
getNetworkByName(java.lang.String name) |
java.util.List<? extends NetworkAttrImpl> |
getNetworks() |
TimeInterval |
getRefreshInterval() |
QuantityImpl |
getSensitivity(ChannelImpl chanId) |
java.util.List<? extends StationImpl> |
getStations(NetworkAttrImpl net) |
void |
setConstraints(NetworkQueryConstraints constraints) |
public MockNetworkSource(TimeInterval refresh)
public MockNetworkSource()
public java.lang.String getName()
Sourcepublic TimeInterval getRefreshInterval()
getRefreshInterval in interface NetworkSourcepublic CacheNetworkAccess getNetwork(NetworkAttrImpl attr)
getNetwork in interface NetworkSourcepublic java.util.List<? extends CacheNetworkAccess> getNetworkByName(java.lang.String name) throws NetworkNotFound
getNetworkByName in interface NetworkSourceNetworkNotFoundpublic java.util.List<? extends NetworkAttrImpl> getNetworks()
getNetworks in interface NetworkSourcepublic java.util.List<? extends StationImpl> getStations(NetworkAttrImpl net)
getStations in interface NetworkSourcepublic java.util.List<? extends ChannelImpl> getChannels(StationImpl station)
getChannels in interface NetworkSourcepublic QuantityImpl getSensitivity(ChannelImpl chanId) throws ChannelNotFound, InvalidResponse
getSensitivity in interface NetworkSourceChannelNotFoundInvalidResponsepublic Instrumentation getInstrumentation(ChannelImpl chanId) throws ChannelNotFound, InvalidResponse
getInstrumentation in interface NetworkSourceChannelNotFoundInvalidResponsepublic void setConstraints(NetworkQueryConstraints constraints)
setConstraints in interface NetworkSource