|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectvisad.data.netcdf.in.VirtualData
visad.data.netcdf.in.VirtualTuple
public class VirtualTuple
Provides support for a virtual VisAD Tuple. Instances are mutable.
| Constructor Summary | |
|---|---|
VirtualTuple()
Constructs from nothing. |
|
VirtualTuple(VirtualData data)
Constructs from a virtual data object. |
|
VirtualTuple(VirtualData[] datas)
Constructs from a 1-D array of virtual data objects. |
|
| Method Summary | |
|---|---|
void |
add(VirtualData data)
Adds a component to this tuple. |
void |
clear()
Clears this instance. |
Object |
clone()
Clones this instance. |
VirtualData |
get(int index)
Gets a component of this tuple. |
DataImpl |
getData(Context context)
Gets the VisAD data object of this tuple, in context. |
DataFactory |
getDataFactory()
Returns the factory used to create VisAD data objects. |
MathType |
getType()
Gets the VisAD MathType of this virtual tuple. |
void |
replace(int index,
VirtualData data)
Replaces a component of this tuple. |
void |
setDataFactory(DataFactory factory)
Sets the factory used to create the VisAD data object corresponding to this tuple and contained elements. |
int |
size()
Returns the number of components in this tuple. |
| Methods inherited from class visad.data.netcdf.in.VirtualData |
|---|
getData, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public VirtualTuple()
public VirtualTuple(VirtualData data)
data - A virtual data object.public VirtualTuple(VirtualData[] datas)
datas - A 1-D array of virtual data objects.| Method Detail |
|---|
public int size()
public void add(VirtualData data)
data - The component to be added.
public MathType getType()
throws VisADException
getType in class VirtualDatanull if no data items.
VisADException - VisAD failure.
public VirtualData get(int index)
throws ArrayIndexOutOfBoundsException
index - The index of the component to get.
index-th component.
ArrayIndexOutOfBoundsException
public void replace(int index,
VirtualData data)
throws ArrayIndexOutOfBoundsException
index - The index of the component to replace.data - The new component.
ArrayIndexOutOfBoundsException
public DataImpl getData(Context context)
throws VisADException,
RemoteException,
IOException
getData in class VirtualDatacontext - The context for retrieving the data object.
null
if there is no data.
VisADException - Couldn't create necessary VisAD object.
RemoteException - Remote access failure.
IOException - I/0 failure.public void clear()
public Object clone()
clone in class VirtualDatapublic void setDataFactory(DataFactory factory)
setDataFactory in class VirtualDatafactory - The factory for creating VisAD data objects.public DataFactory getDataFactory()
getDataFactory in class VirtualData
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||