public class DataInstance
extends java.lang.Object
This class is thread-compatible.
Modifier and Type | Field and Description |
---|---|
protected DataChoice |
dataChoice
The
DataChoice associated with the instance |
protected DataSelection |
dataSelection
The dataselection for the choice
|
protected boolean |
haveBeenInitialized
flag for initialization
|
protected boolean |
inError
flag for errors
|
protected static LogUtil.LogCategory |
log_
logging category
|
protected java.util.Hashtable |
myRequestProperties
Extra request properties
|
Constructor and Description |
---|
DataInstance(DataChoice dataChoice,
DataSelection dataSelection,
java.util.Hashtable requestProperties)
Create a new DataInstance.
|
DataInstance(DataChoice dataChoice,
DataSelection dataSelection,
java.util.Hashtable requestProperties,
visad.Data theData)
Create a new DataInstance.
|
Modifier and Type | Method and Description |
---|---|
protected void |
checkInit()
Check if this has been initialized.
|
boolean |
dataOk()
Is the data held by this DataInstance ok.
|
visad.Data |
getData()
Calls getData, passing in the member DataSelection
|
visad.Data |
getData(DataSelection dataSelection)
Get the data using the specified sub selection.
|
visad.Data |
getData(DataSelection dataSelection,
java.util.Hashtable requestProperties)
Get the data using the specified sub selection and extra
request properties
|
DataChoice |
getDataChoice()
Get the
DataChoice associated with this instance. |
DataSelection |
getDataSelection() |
protected static int |
getNextId()
Get the next instance id.
|
java.lang.String |
getParamName()
Get the parameter name associated with this instance.
|
protected void |
init()
Initialize the instance
|
boolean |
needsInitialization()
Does this data instance need to be initialized
|
void |
reInitialize()
Reinitilize this instance.
|
protected void |
setData(visad.Data newData)
_more_
|
void |
setDataSelection(DataSelection dataSelection)
Set the data selection
|
void |
setTheData(visad.Data d)
Have this be setTheData so it is not the same signature as getData
in case this gets persisted
|
protected static LogUtil.LogCategory log_
protected boolean haveBeenInitialized
protected boolean inError
protected DataChoice dataChoice
DataChoice
associated with the instanceprotected DataSelection dataSelection
protected java.util.Hashtable myRequestProperties
public DataInstance(DataChoice dataChoice, DataSelection dataSelection, java.util.Hashtable requestProperties) throws visad.VisADException, java.rmi.RemoteException
dataChoice
- choice for datadataSelection
- sub-selection criteriarequestProperties
- extra request propertiesjava.rmi.RemoteException
- Java RMI problemvisad.VisADException
- VisAD problempublic DataInstance(DataChoice dataChoice, DataSelection dataSelection, java.util.Hashtable requestProperties, visad.Data theData) throws visad.VisADException, java.rmi.RemoteException
dataChoice
- choice for datadataSelection
- sub-selection criteriarequestProperties
- extra request propertiestheData
- Any initial data. Usually is null.java.rmi.RemoteException
- Java RMI problemvisad.VisADException
- VisAD problemprotected void init() throws visad.VisADException, java.rmi.RemoteException
java.rmi.RemoteException
- Java RMI problemvisad.VisADException
- VisAD problempublic boolean needsInitialization()
protected void checkInit()
public void reInitialize() throws visad.VisADException, java.rmi.RemoteException
java.rmi.RemoteException
- Java RMI problemvisad.VisADException
- VisAD problempublic DataSelection getDataSelection()
public DataChoice getDataChoice()
DataChoice
associated with this instance.public void setTheData(visad.Data d)
d
- data to usepublic visad.Data getData() throws visad.VisADException, java.rmi.RemoteException
java.rmi.RemoteException
- Java RMI problemvisad.VisADException
- VisAD problempublic visad.Data getData(DataSelection dataSelection) throws visad.VisADException, java.rmi.RemoteException
dataSelection
- sub selection criteriajava.rmi.RemoteException
- Java RMI problemvisad.VisADException
- VisAD problempublic visad.Data getData(DataSelection dataSelection, java.util.Hashtable requestProperties) throws visad.VisADException, java.rmi.RemoteException
dataSelection
- sub selection criteriarequestProperties
- extra request propertiesjava.rmi.RemoteException
- Java RMI problemvisad.VisADException
- VisAD problemprotected void setData(visad.Data newData)
newData
- _more_public void setDataSelection(DataSelection dataSelection)
dataSelection
- the data selectionpublic boolean dataOk() throws visad.VisADException, java.rmi.RemoteException
java.rmi.RemoteException
- Java RMI problemvisad.VisADException
- VisAD problempublic java.lang.String getParamName()
protected static int getNextId()