public class MockNetworkSource extends AbstractNetworkSource implements NetworkSource
constraints, REFRESH_ELEMENT, refreshIntervalname, NAME_ELEMENT, RETRIES_ELEMENT| 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) |
appendToName, getFissuresNamingService, getRetries, getRetryStrategy, setRetryStrategyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetRetries, getRetryStrategyappendToNamepublic MockNetworkSource(TimeInterval refresh)
public MockNetworkSource()
public java.lang.String getName()
SourcegetName in interface SourcegetName in class AbstractSourcepublic TimeInterval getRefreshInterval()
getRefreshInterval in interface NetworkSourcegetRefreshInterval in class AbstractNetworkSourcepublic 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 NetworkSourcesetConstraints in class AbstractNetworkSource