edu.sc.seis.sod
Class NetworkArm

java.lang.Object
  extended by edu.sc.seis.sod.NetworkArm
All Implemented Interfaces:
Arm, java.lang.Runnable

public class NetworkArm
extends java.lang.Object
implements Arm


Field Summary
static java.lang.String[] PACKAGES
           
 
Constructor Summary
NetworkArm(org.w3c.dom.Element config)
           
 
Method Summary
 void add(ArmListener listener)
           
 void add(NetworkMonitor monitor)
           
 java.util.List<ChannelSubsetter> getChannelSubsetters()
           
 java.lang.String[] getConstrainingNetworkCodes()
          Given a network subsetter, return a string array consisting of all the network codes this subsetter accepts.
protected  NetworkSource getInternalNetworkSource()
           
 java.lang.String getName()
           
 NetworkAttrImpl getNetwork(NetworkId network_id)
           
protected  NetworkDB getNetworkDB()
           
 NetworkSource getNetworkSource()
           
 RefreshNetworkArm getRefresher()
           
 TimeInterval getRefreshInterval()
           
 java.util.List<ChannelGroup> getSuccessfulChannelGroups(StationImpl station)
           
 java.util.List<ChannelImpl> getSuccessfulChannels(StationImpl station)
          Obtains the Channels corresponding to the station, processes them using the ChannelSubsetter and returns an array of those that pass
 java.util.List<NetworkAttrImpl> getSuccessfulNetworks()
          returns an array of SuccessfulNetworks.
 StationImpl[] getSuccessfulStations(NetworkAttrImpl net)
           
 boolean isActive()
           
 boolean isBeingRefreshed(NetworkAttrImpl net)
           
 boolean isBeingRefreshed(StationImpl sta)
           
 boolean isInitialStartupFinished()
           
 void run()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PACKAGES

public static final java.lang.String[] PACKAGES
Constructor Detail

NetworkArm

public NetworkArm(org.w3c.dom.Element config)
           throws ConfigurationException
Throws:
ConfigurationException
Method Detail

run

public void run()
Specified by:
run in interface java.lang.Runnable

isActive

public boolean isActive()
Specified by:
isActive in interface Arm

getName

public java.lang.String getName()
Specified by:
getName in interface Arm

getNetwork

public NetworkAttrImpl getNetwork(NetworkId network_id)
                           throws NetworkNotFound
Throws:
NetworkNotFound

add

public void add(NetworkMonitor monitor)

getRefreshInterval

public TimeInterval getRefreshInterval()

getChannelSubsetters

public java.util.List<ChannelSubsetter> getChannelSubsetters()

getSuccessfulNetworks

public java.util.List<NetworkAttrImpl> getSuccessfulNetworks()
returns an array of SuccessfulNetworks. if the refreshInterval is valid it gets the networks from the database(may be embedded or external). if not it gets the networks again from the network server specified in the networkFinder. After obtaining the Networks if processes them using the NetworkSubsetter and returns the successful networks as an array of NetworkDbObjects.


getConstrainingNetworkCodes

public java.lang.String[] getConstrainingNetworkCodes()
Given a network subsetter, return a string array consisting of all the network codes this subsetter accepts. If it doesn't constrain network codes, an empty array is returned.


add

public void add(ArmListener listener)

getSuccessfulStations

public StationImpl[] getSuccessfulStations(NetworkAttrImpl net)

getSuccessfulChannels

public java.util.List<ChannelImpl> getSuccessfulChannels(StationImpl station)
Obtains the Channels corresponding to the station, processes them using the ChannelSubsetter and returns an array of those that pass

Throws:
NetworkNotFound

getSuccessfulChannelGroups

public java.util.List<ChannelGroup> getSuccessfulChannelGroups(StationImpl station)

getNetworkSource

public NetworkSource getNetworkSource()

getInternalNetworkSource

protected NetworkSource getInternalNetworkSource()

getNetworkDB

protected NetworkDB getNetworkDB()

isBeingRefreshed

public boolean isBeingRefreshed(NetworkAttrImpl net)

isBeingRefreshed

public boolean isBeingRefreshed(StationImpl sta)

getRefresher

public RefreshNetworkArm getRefresher()

isInitialStartupFinished

public boolean isInitialStartupFinished()