edu.sc.seis.sod.mock
Class MockNetworkSource

java.lang.Object
  extended by edu.sc.seis.sod.mock.MockNetworkSource
All Implemented Interfaces:
NetworkSource, Source

public class MockNetworkSource
extends java.lang.Object
implements NetworkSource


Constructor Summary
MockNetworkSource()
           
MockNetworkSource(TimeInterval refresh)
           
 
Method Summary
 java.util.List<? extends ChannelImpl> getChannels(StationImpl station)
           
 Instrumentation getInstrumentation(ChannelId 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(ChannelId chanId)
           
 java.util.List<? extends StationImpl> getStations(NetworkId net)
           
 void setConstrains(NetworkQueryConstraints constraints)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MockNetworkSource

public MockNetworkSource(TimeInterval refresh)

MockNetworkSource

public MockNetworkSource()
Method Detail

getName

public java.lang.String getName()
Description copied from interface: Source
returns the name of the server. The name to which the server's servant instance is bound in the CORBA naming service. For non-corba servers, this string can be anything that seems reasonable and is relatively unique

Specified by:
getName in interface Source

getRefreshInterval

public TimeInterval getRefreshInterval()
Specified by:
getRefreshInterval in interface NetworkSource

getNetwork

public CacheNetworkAccess getNetwork(NetworkAttrImpl attr)
Specified by:
getNetwork in interface NetworkSource

getNetworkByName

public java.util.List<? extends CacheNetworkAccess> getNetworkByName(java.lang.String name)
                                                              throws NetworkNotFound
Specified by:
getNetworkByName in interface NetworkSource
Throws:
NetworkNotFound

getNetworks

public java.util.List<? extends NetworkAttrImpl> getNetworks()
Specified by:
getNetworks in interface NetworkSource

getStations

public java.util.List<? extends StationImpl> getStations(NetworkId net)
Specified by:
getStations in interface NetworkSource

getChannels

public java.util.List<? extends ChannelImpl> getChannels(StationImpl station)
Specified by:
getChannels in interface NetworkSource

getSensitivity

public QuantityImpl getSensitivity(ChannelId chanId)
                            throws ChannelNotFound,
                                   InvalidResponse
Specified by:
getSensitivity in interface NetworkSource
Throws:
ChannelNotFound
InvalidResponse

getInstrumentation

public Instrumentation getInstrumentation(ChannelId chanId)
                                   throws ChannelNotFound,
                                          InvalidResponse
Specified by:
getInstrumentation in interface NetworkSource
Throws:
ChannelNotFound
InvalidResponse

setConstrains

public void setConstrains(NetworkQueryConstraints constraints)
Specified by:
setConstrains in interface NetworkSource