net.agmodel.metBroker
Class SpatialMetDatabaseAccess

java.lang.Object
  extended byjava.lang.Thread
      extended bynet.agmodel.metBroker.SpatialMetDatabaseAccess
All Implemented Interfaces:
Runnable

public class SpatialMetDatabaseAccess
extends Thread

Gets data to fill a spatial query from a particular MetDataSource, and adds the results into a SpatialMetSet

Author:
Matthew Laurenson

Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
SpatialMetDatabaseAccess(MetBrokerImpl broker, SpatialMetRequest request, SpatialMetSetImpl result, String language, String sourceID, String sessionID)
           
 
Method Summary
 void run()
          When a MetDataSource receives a request, to fill a MetSet it scans the list of station checking whether they within the spatial and temporal boundaries of the metset If a station falls within the box, then the station object is asked whether it canContribute, and if it can, the MetDataSource calls queryForStation, and then asks the station to updateMetadata from the query results.
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SpatialMetDatabaseAccess

public SpatialMetDatabaseAccess(MetBrokerImpl broker,
                                SpatialMetRequest request,
                                SpatialMetSetImpl result,
                                String language,
                                String sourceID,
                                String sessionID)
Method Detail

run

public void run()
When a MetDataSource receives a request, to fill a MetSet it scans the list of station checking whether they within the spatial and temporal boundaries of the metset If a station falls within the box, then the station object is asked whether it canContribute, and if it can, the MetDataSource calls queryForStation, and then asks the station to updateMetadata from the query results. When all relevant stations have contributed, MetDataSource indicates to MetHelper that it has finished.



Copyright (C) NARC 2001 All Rights Reserved.