NASA World Wind

gov.nasa.worldwind.data
Class AbstractDataStoreProducer

java.lang.Object
  extended by gov.nasa.worldwind.avlist.AVListImpl
      extended by gov.nasa.worldwind.WWObjectImpl
          extended by gov.nasa.worldwind.data.AbstractDataStoreProducer
All Implemented Interfaces:
AVList, DataStoreProducer, MessageListener, WWObject, PropertyChangeListener, EventListener
Direct Known Subclasses:
TiledRasterProducer, WWDotNetLayerSetConverter

public abstract class AbstractDataStoreProducer
extends WWObjectImpl
implements DataStoreProducer


Nested Class Summary
static class AbstractDataStoreProducer.SourceInfo
           
 
Field Summary
protected  AVList productionParams
           
 
Constructor Summary
AbstractDataStoreProducer()
           
 
Method Summary
 boolean acceptsDataSource(Object source, AVList params)
           
 boolean containsDataSource(Object source)
           
protected abstract  void doStartProduction(AVList parameters)
           
protected  List<AbstractDataStoreProducer.SourceInfo> getDataSourceList()
           
 Iterable<Object> getDataSources()
           
 AVList getProductionParameters()
           
 Iterable<?> getProductionResults()
           
protected  List<Object> getProductionResultsList()
           
 AVList getStoreParameters()
           
protected  boolean isStopped()
           
 void offerAllDataSources(Iterable<?> sources)
           
 void offerDataSource(Object source, AVList params)
           
 void removeAllDataSources()
           
 void removeDataSource(Object source)
           
 void removeProductionState()
           
 void setStoreParameters(AVList parameters)
           
 void startProduction()
           
 void stopProduction()
           
protected abstract  String validateDataSource(Object source, AVList params)
           
protected abstract  String validateProductionParameters(AVList parameters)
           
 
Methods inherited from class gov.nasa.worldwind.WWObjectImpl
onMessage, propertyChange
 
Methods inherited from class gov.nasa.worldwind.avlist.AVListImpl
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getBooleanValue, getBooleanValue, getChangeSupport, getDoubleValue, getDoubleValue, getEntries, getIntegerValue, getIntegerValue, getLongValue, getLongValue, getRestorableStateForAVPair, getStringValue, getStringValue, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue, setValues
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface gov.nasa.worldwind.data.DataStoreProducer
getDataSourceDescription
 
Methods inherited from interface gov.nasa.worldwind.avlist.AVList
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getEntries, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue, setValues
 
Methods inherited from interface java.beans.PropertyChangeListener
propertyChange
 
Methods inherited from interface gov.nasa.worldwind.event.MessageListener
onMessage
 

Field Detail

productionParams

protected AVList productionParams
Constructor Detail

AbstractDataStoreProducer

public AbstractDataStoreProducer()
Method Detail

acceptsDataSource

public boolean acceptsDataSource(Object source,
                                 AVList params)
Specified by:
acceptsDataSource in interface DataStoreProducer

containsDataSource

public boolean containsDataSource(Object source)
Specified by:
containsDataSource in interface DataStoreProducer

doStartProduction

protected abstract void doStartProduction(AVList parameters)
                                   throws Exception
Throws:
Exception

getDataSourceList

protected List<AbstractDataStoreProducer.SourceInfo> getDataSourceList()

getDataSources

public Iterable<Object> getDataSources()
Specified by:
getDataSources in interface DataStoreProducer

getProductionParameters

public AVList getProductionParameters()
Specified by:
getProductionParameters in interface DataStoreProducer

getProductionResults

public Iterable<?> getProductionResults()
Specified by:
getProductionResults in interface DataStoreProducer

getProductionResultsList

protected List<Object> getProductionResultsList()

getStoreParameters

public AVList getStoreParameters()
Specified by:
getStoreParameters in interface DataStoreProducer

isStopped

protected boolean isStopped()

offerAllDataSources

public void offerAllDataSources(Iterable<?> sources)
Specified by:
offerAllDataSources in interface DataStoreProducer

offerDataSource

public void offerDataSource(Object source,
                            AVList params)
Specified by:
offerDataSource in interface DataStoreProducer

removeAllDataSources

public void removeAllDataSources()
Specified by:
removeAllDataSources in interface DataStoreProducer

removeDataSource

public void removeDataSource(Object source)
Specified by:
removeDataSource in interface DataStoreProducer

removeProductionState

public void removeProductionState()
Specified by:
removeProductionState in interface DataStoreProducer

setStoreParameters

public void setStoreParameters(AVList parameters)
Specified by:
setStoreParameters in interface DataStoreProducer

startProduction

public void startProduction()
                     throws Exception
Specified by:
startProduction in interface DataStoreProducer
Throws:
Exception

stopProduction

public void stopProduction()
Specified by:
stopProduction in interface DataStoreProducer

validateDataSource

protected abstract String validateDataSource(Object source,
                                             AVList params)

validateProductionParameters

protected abstract String validateProductionParameters(AVList parameters)

NASA World Wind