thredds.catalog
Class InvDatasetFmrc

java.lang.Object
  extended by thredds.catalog.InvDataset
      extended by thredds.catalog.InvDatasetImpl
          extended by thredds.catalog.InvCatalogRef
              extended by thredds.catalog.InvDatasetFmrc

public class InvDatasetFmrc
extends InvCatalogRef

InvDatasetFmrc represents an element in a TDS catalog.

Author:
caron

Nested Class Summary
 class InvDatasetFmrc.InventoryParams
           
 
Field Summary
 
Fields inherited from class thredds.catalog.InvDatasetImpl
log, mark, ncmlElement, tm, tmi, tmi6
 
Fields inherited from class thredds.catalog.InvDataset
access, authorityName, collectionType, contributors, creators, dataFormatType, datasets, dataType, dates, defaultService, docs, gc, harvest, id, keywords, metadata, name, parent, projects, properties, publishers, restrictAccess, services, tc, variables
 
Constructor Summary
InvDatasetFmrc(InvDatasetImpl parent, java.lang.String name, java.lang.String path, boolean runsOnly)
           
 
Method Summary
 NetcdfDataset getDataset(java.lang.String path)
           
 java.util.List getDatasets()
          Get Datasets.
 java.io.File getFile(java.lang.String remaining)
           
 InvDatasetFmrc.InventoryParams getFmrcInventoryParams()
           
 java.lang.String getPath()
           
 InvDatasetScan getRawFileScan()
           
 boolean hasAccess()
          If this dataset has access elements.
 boolean hasNestedDatasets()
          If this dataset has nested datasets.
 boolean isRunsOnly()
           
 InvCatalogImpl makeCatalog(java.lang.String match, java.lang.String orgPath, java.net.URI baseURI)
          Create the FMRC catalog, or one of its nested catalogs.
 void setFmrcInventoryParams(java.lang.String location, java.lang.String def, java.lang.String suffix, java.lang.String olderThanS)
           
 void setScanTimeCovDsNameMatchPatternParam(java.lang.String match)
           
 void setScanTimeCovDurationParam(java.lang.String duration)
           
 void setScanTimeCovStartTimeSubstPatternParam(java.lang.String subst)
           
 
Methods inherited from class thredds.catalog.InvCatalogRef
equals, findDatasetByName, findProperty, findService, finish, getAccess, getAccess, getAlias, getAuthority, getCollectionType, getContributors, getCreators, getDataFormatType, getDataType, getDates, getDocumentation, getDocumentation, getFullName, getGeospatialCoverage, getID, getKeywords, getMark, getMetadata, getMetadata, getName, getParent, getProjects, getProperties, getProxyDataset, getPublishers, getServiceDefault, getTimeCoverage, getUniqueID, getURI, getUrlPath, getUserProperty, getVariables, getXlinkHref, hashCode, isHarvest, isRead, readAsynch, release, setXlinkHref
 
Methods inherited from class thredds.catalog.InvDatasetImpl
addAccess, addAccess, addDataset, addDataset, addDocumentation, addProperty, addService, canonicalize, clearProperties, clearPublishers, dump, getAccessLocal, getCat6Metadata, getDataSize, getDocumentationLinks, getLastModifiedDate, getLocalMetadata, getLocalMetadataInheritable, getNcmlElement, getParentReal, getServiceName, getServicesLocal, main, removeDataset, removeLocalMetadata, removeService, replaceDataset, resolve, setAlias, setAuthority, setCatalog, setCollectionType, setContributors, setDataFormatType, setDataSize, setDataType, setGeospatialCoverage, setHarvest, setID, setKeywords, setLastModifiedDate, setLastModifiedDate, setLocalMetadata, setMark, setName, setNcmlElement, setParent, setProjects, setPublishers, setResourceControl, setServiceName, setServicesLocal, setTimeCoverage, setUrlPath, setUserProperty, toString, transferMetadata, writeHtmlDescription
 
Methods inherited from class thredds.catalog.InvDataset
findAccess, getCatalogUrl, getHistory, getParentCatalog, getProcessing, getRestrictAccess, getRights, getSubsetUrl, getSummary, getVariables
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InvDatasetFmrc

public InvDatasetFmrc(InvDatasetImpl parent,
                      java.lang.String name,
                      java.lang.String path,
                      boolean runsOnly)
Method Detail

setScanTimeCovDsNameMatchPatternParam

public void setScanTimeCovDsNameMatchPatternParam(java.lang.String match)

setScanTimeCovStartTimeSubstPatternParam

public void setScanTimeCovStartTimeSubstPatternParam(java.lang.String subst)

setScanTimeCovDurationParam

public void setScanTimeCovDurationParam(java.lang.String duration)

getPath

public java.lang.String getPath()

isRunsOnly

public boolean isRunsOnly()

getRawFileScan

public InvDatasetScan getRawFileScan()

getFmrcInventoryParams

public InvDatasetFmrc.InventoryParams getFmrcInventoryParams()

getFile

public java.io.File getFile(java.lang.String remaining)

setFmrcInventoryParams

public void setFmrcInventoryParams(java.lang.String location,
                                   java.lang.String def,
                                   java.lang.String suffix,
                                   java.lang.String olderThanS)

hasAccess

public boolean hasAccess()
Description copied from class: InvDataset
If this dataset has access elements.

Overrides:
hasAccess in class InvCatalogRef
Returns:
true if has access elements.

hasNestedDatasets

public boolean hasNestedDatasets()
Description copied from class: InvDataset
If this dataset has nested datasets.

Overrides:
hasNestedDatasets in class InvCatalogRef
Returns:
true if has nested datasets.

makeCatalog

public InvCatalogImpl makeCatalog(java.lang.String match,
                                  java.lang.String orgPath,
                                  java.net.URI baseURI)
Create the FMRC catalog, or one of its nested catalogs.

Parameters:
match - which catalog, one of null, RUNS, OFFSET, FORECAST, or SCAN
orgPath -
baseURI -
Returns:
the requested catalog

getDatasets

public java.util.List getDatasets()
Description copied from class: InvCatalogRef
Get Datasets. This triggers a read of the referenced catalog the first time its called.

Overrides:
getDatasets in class InvCatalogRef
Returns:
list of objects of type InvDataset. May be empty, not null.

getDataset

public NetcdfDataset getDataset(java.lang.String path)
                         throws java.io.IOException
Throws:
java.io.IOException