|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--org.iges.anagram.AbstractModule
|
+--org.iges.grads.server.GradsExtracter
Shared interface for modules that extract and cache metadata for GrADS datasets. I am bending my own rules here - this class is inherits from Module, but it is not a reusable component. A new extracter is created for each extraction operation. This wouldn't be hard to fix by just putting all the parsing data into an inner class. Also, the construction of the DAS and DDS documents could be mostly abstracted out into this top-level class. But it would only be worth bothering if another basic dataset "shape" (presumably swath?) were to be added on top of grid and stn.
| Field Summary | |
protected DataHandle |
data
|
protected GradsDataInfo |
gradsInfo
|
protected java.util.List |
metadata
|
protected java.lang.String |
storagePrefix
|
protected GradsTaskModule |
tasker
|
| Fields inherited from class org.iges.anagram.AbstractModule |
log, moduleName, parent, server |
| Constructor Summary | |
GradsExtracter()
|
|
| Method Summary | |
void |
configure(Setting setting)
Configures the module according to the settings provided. |
protected java.lang.String |
getHistoryString()
|
java.lang.String |
getModuleID()
Returns an ID for this module. |
protected abstract void |
load()
Reads CTL file for dataset into internal structures |
protected void |
loadMetadata()
|
void |
parse(DataHandle data,
GradsTaskModule tasker,
java.lang.String storagePrefix)
Extracts metadata for the dataset given, and stores it in a set of temporary files under the prefix given, for use by the request handling modules. |
protected void |
printDODSAttributes(java.io.PrintWriter out,
java.lang.String var)
|
protected abstract void |
writeDAS()
Takes the parsed metadata and writes a DAS file. |
protected abstract void |
writeDDS()
Takes the parsed metadata and writes a DAS |
protected abstract void |
writeSubsetInfo()
Caches any precalculated values for subsetting |
protected abstract void |
writeWebSummary()
Takes the parsed metadata and writes a ".info" page |
| Methods inherited from class org.iges.anagram.AbstractModule |
configModule, debug, debug, error, fail, fail, fail, getModuleName, info, init, toString, verbose, verbose |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected GradsTaskModule tasker
protected java.lang.String storagePrefix
protected DataHandle data
protected GradsDataInfo gradsInfo
protected java.util.List metadata
| Constructor Detail |
public GradsExtracter()
| Method Detail |
public java.lang.String getModuleID()
Module
getModuleID in interface ModulegetModuleID in class AbstractModulepublic void configure(Setting setting)
AbstractModule
configure in interface Moduleconfigure in class AbstractModule
public void parse(DataHandle data,
GradsTaskModule tasker,
java.lang.String storagePrefix)
throws AnagramException
AnagramException
protected abstract void load()
throws AnagramException
AnagramException
protected abstract void writeDDS()
throws AnagramException
AnagramException
protected abstract void writeDAS()
throws AnagramException
AnagramException
protected abstract void writeWebSummary()
throws AnagramException
AnagramException
protected abstract void writeSubsetInfo()
throws AnagramException
AnagramExceptionprotected void loadMetadata()
protected void printDODSAttributes(java.io.PrintWriter out,
java.lang.String var)
protected java.lang.String getHistoryString()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||