|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.unidata.collab.SharableImpl
ucar.unidata.data.DataSourceImpl
ucar.unidata.data.FilesDataSource
ucar.unidata.data.sounding.TrackDataSource
public class TrackDataSource
A data source for balloon and aircraft tracks
| Field Summary | |
|---|---|
static String |
ID_LASTOB
Last point track type |
static String |
ID_POINTTRACE
Point track type |
static String |
ID_SOUNDINGOB
sounding ob id |
static String |
ID_SOUNDINGTRACE
sounding trace id |
static String |
ID_TIMETRACE
time trace id |
static String |
ID_WHOLETRACE
The whole track |
static String |
PROP_TRACKTYPE
track type identifier |
| Fields inherited from class ucar.unidata.data.FilesDataSource |
|---|
adapters, oldSourceFromBundles, sources |
| Fields inherited from class ucar.unidata.data.DataSourceImpl |
|---|
changeDataPathsCbx, dataCacheKey, dataChoices, geoSelectionPanel, haveBeenUnPersisted, okToContinue, PARAM_SHOW_HIDE, PARAM_SHOW_NO, PARAM_SHOW_YES |
| Fields inherited from interface ucar.unidata.data.DataSource |
|---|
MOST_RECENT, ordinalNames, PROP_AUTOCREATEDISPLAY, PROP_BASEDIRECTORY, PROP_CACHEABLE, PROP_DATACHOICENAME, PROP_DISPLAYPROPERTIES, PROP_DOCUMENTLINKS, PROP_FILEPATTERN, PROP_GEOLOCATION, PROP_ICON, PROP_NAME, PROP_POLLINFO, PROP_RESOLVERURL, PROP_SERVICE_HTTP, PROP_SUBPROPERTIES, PROP_TIMELABELS, PROP_TITLE |
| Constructor Summary | |
|---|---|
TrackDataSource()
Default Constructor |
|
TrackDataSource(DataSourceDescriptor descriptor,
List sources,
Hashtable properties)
Create a TrackDataSource from the specification given. |
|
TrackDataSource(DataSourceDescriptor descriptor,
String source,
Hashtable properties)
Create a TrackDataSource from the specification given. |
|
| Method Summary | |
|---|---|
protected void |
addActions(List actions)
_more_ |
void |
addPropertiesTabs(JTabbedPane tabbedPane)
Add any extra tabs into the properties tab |
protected FieldImpl |
aggregateTracks(List tracks)
Aggregate the list of track data |
boolean |
applyProperties()
Apply properties components |
protected boolean |
canDoView()
_more_ |
boolean |
canSaveDataToLocalDisk()
Is this data source capable of saving its data to local disk |
protected TrackAdapter |
doMakeAdapter(String file,
Hashtable pointDataFilter,
int stride,
int lastNMinutes)
Factory method to make the adapter |
protected void |
doMakeDataChoices()
Make the DataChoices associated with this dataset |
protected List |
doMakeDateTimes()
Make the list of times associated with this DataSource for DataSelection. |
void |
doRemove()
_more_ |
protected List |
getAdapters()
Create, if needed, and return the list of adapters. |
protected DateTime |
getBaseTime()
Get the base time to be used for the track. |
protected String |
getChoiceId(DataChoice dc)
Utility to extract the choice id |
protected String |
getDataChoiceLabel(Object id)
Get the label for a particular data choice |
protected Data |
getDataInner(DataChoice dataChoice,
DataCategory category,
DataSelection dataSelection,
Hashtable requestProperties)
Get the VisAD Data object that corresponds to the dataChoice category and dataSelection criteria. |
String |
getFullDescription()
Get the full description for this data source. |
boolean |
getHaveAskedToSubset()
Get the HaveAskedToSubset property. |
int |
getLastNMinutes()
Get the LastNMinutes property. |
protected FieldImpl |
getLastPointOb(DataChoice dc,
DataSelection dataSelection)
Gets the last point ob associated with this track |
protected DateTime[] |
getMinMaxTime()
Get the min and max times in the tracks |
Hashtable |
getPointDataFilter()
Get the PointDataFilter property. |
protected FieldImpl |
getPointObTrack(DataChoice dc,
DataSelection dataSelection,
ucar.ma2.Range range)
Gets the point ob track associated with this DataChoice |
void |
getPropertiesComponents(List comps)
Add the gui components into the list for the properties dialog |
protected List |
getRaobCategories()
Get the default categories RAOB sounding choices |
protected List |
getSoundingCategories()
Get the default categories sounding choices |
protected Data |
getSoundingOb(DataChoice dc,
DataSelection dataSelection)
Gets the SoundingOb associated with this DataChoice |
protected Data |
getSoundingTrace(DataChoice dc,
DataSelection dataSelection)
Gets the sounding trace associated with this DataChoice |
int |
getStride()
Get the Stride property. |
protected List |
getTraceCategories()
Get the default categories trace choices |
protected FlatField |
getTrack(DataChoice dc,
DataSelection dataSelection,
Hashtable requestProperties)
Gets the track associated with this DataChoice |
protected String |
getTrackId(DataChoice dc)
Utility to get the track id |
protected List |
getTracks(DataChoice dc,
DataSelection dataSelection,
Hashtable requestProperties)
Gets the track associated with this DataChoice |
protected void |
initAfter()
_more_ |
void |
initAfterCreation()
_more_ |
protected void |
initCategories()
Initialize the categories |
protected void |
initTrack()
Initialize the track |
static void |
main(String[] args)
Get the point observartion data Test routine |
FlatField |
mergeTracks(List datas)
Merge a List of FieldImpls of point obs into one. |
void |
resetLastNMinutesFld()
Reset last N minutes field |
void |
resetStrideFld()
reset stride field |
void |
setHaveAskedToSubset(boolean value)
Set the HaveAskedToSubset property. |
void |
setLastNMinutes(int value)
Set the LastNMinutes property. |
void |
setName(String value)
Set the source property (filename or URL). |
void |
setPointDataFilter(Hashtable value)
Set the PointDataFilter property. |
void |
setStride(int value)
Set the Stride property. |
void |
showSqlShell()
_more_ |
| Methods inherited from class ucar.unidata.data.FilesDataSource |
|---|
equals, getDataFileExtension, getDataPaths, getFilePath, getInputStreams, getLocationsForPolling, getPartialDescription, getSource, getSources, haveSources, initAfterUnpersistence, initWithPollingInfo, isFileBased, newFilesFromPolling, processDataFilename, propertiesChanged, reloadData, saveDataToLocalDisk, setNewFiles, setSource, setSources, sourcesChanged, updateState |
| Methods inherited from class ucar.unidata.collab.SharableImpl |
|---|
applySharableProperties, doShare, doShare, doShareExternal, doShareInternal, getSharablePropertiesComponent, getShareGroup, getSharing, getUniqueId, initSharable, receiveShareData, removeSharable, setShareGroup, setSharing, setUniqueId, showSharableDialog |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface ucar.unidata.data.DataSource |
|---|
getUniqueId |
| Field Detail |
|---|
public static final String ID_SOUNDINGOB
public static final String ID_SOUNDINGTRACE
public static final String ID_TIMETRACE
public static final String ID_WHOLETRACE
public static final String ID_POINTTRACE
public static final String ID_LASTOB
public static final String PROP_TRACKTYPE
| Constructor Detail |
|---|
public TrackDataSource()
public TrackDataSource(DataSourceDescriptor descriptor,
String source,
Hashtable properties)
throws VisADException
descriptor - descriptor for the DataSourcesource - file location or URLproperties - extra properties
VisADException
public TrackDataSource(DataSourceDescriptor descriptor,
List sources,
Hashtable properties)
throws VisADException
descriptor - data source descriptorsources - List of sources of data (filename/URL)properties - extra properties for initialization
VisADException - problem creating the data| Method Detail |
|---|
public void doRemove()
doRemove in interface DataSourcedoRemove in class FilesDataSourceprotected void addActions(List actions)
addActions in class DataSourceImplactions - _more_public void showSqlShell()
protected void initAfter()
initAfter in class DataSourceImplpublic void initAfterCreation()
initAfterCreation in interface DataSourceinitAfterCreation in class FilesDataSourceprotected void initCategories()
public boolean canSaveDataToLocalDisk()
canSaveDataToLocalDisk in interface DataSourcecanSaveDataToLocalDisk in class DataSourceImplpublic String getFullDescription()
getFullDescription in interface DataSourcegetFullDescription in class FilesDataSourceprotected List getTraceCategories()
protected List getSoundingCategories()
protected List getRaobCategories()
protected void initTrack()
protected TrackAdapter doMakeAdapter(String file,
Hashtable pointDataFilter,
int stride,
int lastNMinutes)
throws Exception
file - file or urlpointDataFilter - When creating point data this holds the map of variables to usestride - stringlastNMinutes - clipping
Exception - On badnessprotected List getAdapters()
protected void doMakeDataChoices()
DataChoices associated with this dataset
doMakeDataChoices in class DataSourceImplprotected boolean canDoView()
protected String getDataChoiceLabel(Object id)
id - id for the choice
protected Data getDataInner(DataChoice dataChoice,
DataCategory category,
DataSelection dataSelection,
Hashtable requestProperties)
throws VisADException,
RemoteException
getDataInner in class DataSourceImpldataChoice - choice for datacategory - specific category of data (not used currently)dataSelection - additional selection criteriarequestProperties - extra request properties
VisADException - unable to create Data object
RemoteException - (some kind of remote error.protected DateTime getBaseTime()
protected DateTime[] getMinMaxTime()
protected FieldImpl aggregateTracks(List tracks)
throws VisADException,
RemoteException
tracks - list of track data
RemoteException - On badness
VisADException - On badnessprotected List doMakeDateTimes()
doMakeDateTimes in class DataSourceImpl
protected List getTracks(DataChoice dc,
DataSelection dataSelection,
Hashtable requestProperties)
throws VisADException,
RemoteException
dc - DataChoice for selectiondataSelection - sub selection criteriarequestProperties - selection properties
RemoteException - Java RMI problem
VisADException - VisAD problem
protected FlatField getTrack(DataChoice dc,
DataSelection dataSelection,
Hashtable requestProperties)
throws VisADException,
RemoteException
dc - DataChoice for selectiondataSelection - sub selection criteriarequestProperties - selection properties
RemoteException - Java RMI problem
VisADException - VisAD problem
protected FieldImpl getLastPointOb(DataChoice dc,
DataSelection dataSelection)
throws Exception
dc - DataChoice for selectiondataSelection - sub selection criteria
Exception - On badness
protected FieldImpl getPointObTrack(DataChoice dc,
DataSelection dataSelection,
ucar.ma2.Range range)
throws VisADException,
RemoteException
dc - DataChoice for selectiondataSelection - sub selection criteriarange - The data range
RemoteException - Java RMI problem
VisADException - VisAD problem
protected Data getSoundingTrace(DataChoice dc,
DataSelection dataSelection)
throws Exception
dc - DataChoice for selectiondataSelection - sub selection criteria
Exception - On badnessprotected String getChoiceId(DataChoice dc)
dc - the data choice
protected String getTrackId(DataChoice dc)
dc - data choice
protected Data getSoundingOb(DataChoice dc,
DataSelection dataSelection)
throws VisADException,
RemoteException
dc - DataChoice for selectiondataSelection - sub selection criteria
RemoteException - Java RMI problem
VisADException - VisAD problempublic void setName(String value)
setName in class DataSourceImplvalue - data source
public static void main(String[] args)
throws Exception
args - filename
Exception - problem
public FlatField mergeTracks(List datas)
throws VisADException
datas - List of FieldImpls of point obs
VisADException - problem getting the datapublic void setPointDataFilter(Hashtable value)
value - The new value for PointDataFilterpublic Hashtable getPointDataFilter()
public void getPropertiesComponents(List comps)
getPropertiesComponents in class DataSourceImplcomps - List of componentspublic void resetLastNMinutesFld()
public void resetStrideFld()
public boolean applyProperties()
applyProperties in class DataSourceImplpublic void addPropertiesTabs(JTabbedPane tabbedPane)
addPropertiesTabs in class DataSourceImpltabbedPane - The properties tabpublic void setStride(int value)
value - The new value for Stridepublic int getStride()
public void setHaveAskedToSubset(boolean value)
value - The new value for HaveAskedToSubsetpublic boolean getHaveAskedToSubset()
public void setLastNMinutes(int value)
value - The new value for LastNMinutespublic int getLastNMinutes()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||