public class MockNetworkSource extends AbstractNetworkSource implements NetworkSource
constraints, REFRESH_ELEMENT, refreshInterval
name, 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, setRetryStrategy
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getRetries, getRetryStrategy
appendToName
public MockNetworkSource(TimeInterval refresh)
public MockNetworkSource()
public java.lang.String getName()
Source
getName
in interface Source
getName
in class AbstractSource
public TimeInterval getRefreshInterval()
getRefreshInterval
in interface NetworkSource
getRefreshInterval
in class AbstractNetworkSource
public CacheNetworkAccess getNetwork(NetworkAttrImpl attr)
getNetwork
in interface NetworkSource
public java.util.List<? extends CacheNetworkAccess> getNetworkByName(java.lang.String name) throws NetworkNotFound
getNetworkByName
in interface NetworkSource
NetworkNotFound
public java.util.List<? extends NetworkAttrImpl> getNetworks()
getNetworks
in interface NetworkSource
public java.util.List<? extends StationImpl> getStations(NetworkAttrImpl net)
getStations
in interface NetworkSource
public java.util.List<? extends ChannelImpl> getChannels(StationImpl station)
getChannels
in interface NetworkSource
public QuantityImpl getSensitivity(ChannelImpl chanId) throws ChannelNotFound, InvalidResponse
getSensitivity
in interface NetworkSource
ChannelNotFound
InvalidResponse
public Instrumentation getInstrumentation(ChannelImpl chanId) throws ChannelNotFound, InvalidResponse
getInstrumentation
in interface NetworkSource
ChannelNotFound
InvalidResponse
public void setConstraints(NetworkQueryConstraints constraints)
setConstraints
in interface NetworkSource
setConstraints
in class AbstractNetworkSource