net.agmodel.metBroker
Class SpatialMetDatabaseAccess
java.lang.Object
java.lang.Thread
net.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
|
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 |
SpatialMetDatabaseAccess
public SpatialMetDatabaseAccess(MetBrokerImpl broker,
SpatialMetRequest request,
SpatialMetSetImpl result,
String language,
String sourceID,
String sessionID)
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.