|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.unidata.data.DataInstance
public class DataInstance
A superclass for data instances. It's a wrapper for a Data object that allows quick access to metadata about it.
This class is thread-compatible.
| Field Summary | |
|---|---|
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 Hashtable |
myRequestProperties
Extra request properties |
| Constructor Summary | |
|---|---|
DataInstance(DataChoice dataChoice,
DataSelection dataSelection,
Hashtable requestProperties)
Create a new DataInstance. |
|
DataInstance(DataChoice dataChoice,
DataSelection dataSelection,
Hashtable requestProperties,
Data theData)
Create a new DataInstance. |
|
| Method Summary | |
|---|---|
protected void |
checkInit()
Check if this has been initialized. |
boolean |
dataOk()
Is the data held by this DataInstance ok. |
Data |
getData()
Calls getData, passing in the member DataSelection |
Data |
getData(DataSelection dataSelection)
Get the data using the specified sub selection. |
Data |
getData(DataSelection dataSelection,
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. |
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(Data newData)
_more_ |
void |
setDataSelection(DataSelection dataSelection)
Set the data selection |
void |
setTheData(Data d)
Have this be setTheData so it is not the same signature as getData in case this gets persisted |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static LogUtil.LogCategory log_
protected boolean haveBeenInitialized
protected boolean inError
protected DataChoice dataChoice
DataChoice associated with the instance
protected DataSelection dataSelection
protected Hashtable myRequestProperties
| Constructor Detail |
|---|
public DataInstance(DataChoice dataChoice,
DataSelection dataSelection,
Hashtable requestProperties)
throws VisADException,
RemoteException
dataChoice - choice for datadataSelection - sub-selection criteriarequestProperties - extra request properties
RemoteException - Java RMI problem
VisADException - VisAD problem
public DataInstance(DataChoice dataChoice,
DataSelection dataSelection,
Hashtable requestProperties,
Data theData)
throws VisADException,
RemoteException
dataChoice - choice for datadataSelection - sub-selection criteriarequestProperties - extra request propertiestheData - Any initial data. Usually is null.
RemoteException - Java RMI problem
VisADException - VisAD problem| Method Detail |
|---|
protected void init()
throws VisADException,
RemoteException
RemoteException - Java RMI problem
VisADException - VisAD problempublic boolean needsInitialization()
protected void checkInit()
public void reInitialize()
throws VisADException,
RemoteException
RemoteException - Java RMI problem
VisADException - VisAD problempublic DataSelection getDataSelection()
public DataChoice getDataChoice()
DataChoice associated with this instance.
public void setTheData(Data d)
d - data to use
public Data getData()
throws VisADException,
RemoteException
RemoteException - Java RMI problem
VisADException - VisAD problem
public Data getData(DataSelection dataSelection)
throws VisADException,
RemoteException
dataSelection - sub selection criteria
RemoteException - Java RMI problem
VisADException - VisAD problem
public Data getData(DataSelection dataSelection,
Hashtable requestProperties)
throws VisADException,
RemoteException
dataSelection - sub selection criteriarequestProperties - extra request properties
RemoteException - Java RMI problem
VisADException - VisAD problemprotected void setData(Data newData)
newData - _more_public void setDataSelection(DataSelection dataSelection)
dataSelection - the data selection
public boolean dataOk()
throws VisADException,
RemoteException
RemoteException - Java RMI problem
VisADException - VisAD problempublic String getParamName()
protected static int getNextId()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||