visad.data.dods
Class VariableAdapterFactory

java.lang.Object
  extended by visad.data.dods.VariableAdapterFactory

public class VariableAdapterFactory
extends Object

Provides support for creating adapters that bridge between DODS variables and the VisAD data-import context.

Instances are immutable.

Author:
Steven R. Emmerson

Constructor Summary
protected VariableAdapterFactory()
          Constructs from nothing.
 
Method Summary
 ArrayVariableAdapter arrayVariableAdapter(dods.dap.DArray var, dods.dap.DAS das)
          Returns the adapter corresponding to a DODS DArray.
 BooleanVariableAdapter booleanVariableAdapter(dods.dap.DBoolean var, dods.dap.DAS das)
          Returns the adapter corresponding to a DODS DBoolean.
 ByteVariableAdapter byteVariableAdapter(dods.dap.DByte var, dods.dap.DAS das)
          Returns the adapter corresponding to a DODS DByte.
 Float32VariableAdapter float32VariableAdapter(dods.dap.DFloat32 var, dods.dap.DAS das)
          Returns the adapter corresponding to a DODS DFloat32.
 Float64VariableAdapter float64VariableAdapter(dods.dap.DFloat64 var, dods.dap.DAS das)
          Returns the adapter corresponding to a DODS DFloat64.
 GridVariableAdapter gridVariableAdapter(dods.dap.DGrid var, dods.dap.DAS das)
          Returns the adapter corresponding to a DODS DGrid.
 GridVariableMapAdapter gridVariableMapAdapter(dods.dap.DArray array, dods.dap.DAS das)
          Returns the adapter corresponding to the coordinate mapping- vectors of a DODS DGrid.
 Int16VariableAdapter int16VariableAdapter(dods.dap.DInt16 var, dods.dap.DAS das)
          Returns the adapter corresponding to a DODS DInt16.
 Int32VariableAdapter int32VariableAdapter(dods.dap.DInt32 var, dods.dap.DAS das)
          Returns the adapter corresponding to a DODS DInt32.
 ListVariableAdapter listVariableAdapter(dods.dap.DList var, dods.dap.DAS das)
          Returns the adapter corresponding to a DODS DList.
 SequenceVariableAdapter sequenceVariableAdapter(dods.dap.DSequence var, dods.dap.DAS das)
          Returns the adapter corresponding to a DODS DSequence.
 StringVariableAdapter stringVariableAdapter(dods.dap.DString var, dods.dap.DAS das)
          Returns the adapter corresponding to a DODS DString.
 StructureVariableAdapter structureVariableAdapter(dods.dap.DStructure var, dods.dap.DAS das)
          Returns the adapter corresponding to a DODS DStructure.
 UInt16VariableAdapter uInt16VariableAdapter(dods.dap.DUInt16 var, dods.dap.DAS das)
          Returns the adapter corresponding to a DODS DUInt16.
 UInt32VariableAdapter uInt32VariableAdapter(dods.dap.DUInt32 var, dods.dap.DAS das)
          Returns the adapter corresponding to a DODS DUInt32.
 VariableAdapter variableAdapter(dods.dap.BaseType var, dods.dap.DAS das)
          Returns the adapter corresponding to a DODS variable.
static VariableAdapterFactory variableAdapterFactory()
          Returns an instance of this class.
 VectorAdapter vectorAdapter(dods.dap.PrimitiveVector vector, dods.dap.DAS das)
          Returns the adapter corresponding to a DODS PrimitiveVector.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VariableAdapterFactory

protected VariableAdapterFactory()
Constructs from nothing.

Method Detail

variableAdapterFactory

public static VariableAdapterFactory variableAdapterFactory()
Returns an instance of this class.

Returns:
An instance of this class.

variableAdapter

public VariableAdapter variableAdapter(dods.dap.BaseType var,
                                       dods.dap.DAS das)
                                throws BadFormException,
                                       VisADException,
                                       RemoteException
Returns the adapter corresponding to a DODS variable.

Parameters:
var - A DODS variable.
das - The DODS DAS in which the attribute table for the DODS variable is embedded.
Returns:
The adapter corresponding to the DODS variable.
Throws:
BadFormException - The DODS information is corrupt.
VisADException - VisAD failure.
RemoteException - Java RMI failure.

stringVariableAdapter

public StringVariableAdapter stringVariableAdapter(dods.dap.DString var,
                                                   dods.dap.DAS das)
                                            throws VisADException,
                                                   RemoteException
Returns the adapter corresponding to a DODS DString.

Parameters:
var - An appropriate DODS variable.
das - The DODS DAS in which the attribute table for the DODS variable is embedded.
Returns:
The adapter corresponding to the DODS variable.
Throws:
VisADException - VisAD failure.
RemoteException - Java RMI failure.

booleanVariableAdapter

public BooleanVariableAdapter booleanVariableAdapter(dods.dap.DBoolean var,
                                                     dods.dap.DAS das)
                                              throws VisADException,
                                                     RemoteException
Returns the adapter corresponding to a DODS DBoolean.

Parameters:
var - An appropriate DODS variable.
das - The DODS DAS in which the attribute table for the DODS variable is embedded.
Returns:
The adapter corresponding to the DODS variable.
Throws:
VisADException - VisAD failure.
RemoteException - Java RMI failure.

byteVariableAdapter

public ByteVariableAdapter byteVariableAdapter(dods.dap.DByte var,
                                               dods.dap.DAS das)
                                        throws VisADException,
                                               RemoteException
Returns the adapter corresponding to a DODS DByte.

Parameters:
var - An appropriate DODS variable.
das - The DODS DAS in which the attribute table for the DODS variable is embedded.
Returns:
The adapter corresponding to the DODS variable.
Throws:
VisADException - VisAD failure.
RemoteException - Java RMI failure.

uInt16VariableAdapter

public UInt16VariableAdapter uInt16VariableAdapter(dods.dap.DUInt16 var,
                                                   dods.dap.DAS das)
                                            throws VisADException,
                                                   RemoteException
Returns the adapter corresponding to a DODS DUInt16.

Parameters:
var - An appropriate DODS variable.
das - The DODS DAS in which the attribute table for the DODS variable is embedded.
Returns:
The adapter corresponding to the DODS variable.
Throws:
VisADException - VisAD failure.
RemoteException - Java RMI failure.

int16VariableAdapter

public Int16VariableAdapter int16VariableAdapter(dods.dap.DInt16 var,
                                                 dods.dap.DAS das)
                                          throws VisADException,
                                                 RemoteException
Returns the adapter corresponding to a DODS DInt16.

Parameters:
var - An appropriate DODS variable.
das - The DODS DAS in which the attribute table for the DODS variable is embedded.
Returns:
The adapter corresponding to the DODS variable.
Throws:
VisADException - VisAD failure.
RemoteException - Java RMI failure.

uInt32VariableAdapter

public UInt32VariableAdapter uInt32VariableAdapter(dods.dap.DUInt32 var,
                                                   dods.dap.DAS das)
                                            throws VisADException,
                                                   RemoteException
Returns the adapter corresponding to a DODS DUInt32.

Parameters:
var - An appropriate DODS variable.
das - The DODS DAS in which the attribute table for the DODS variable is embedded.
Returns:
The adapter corresponding to the DODS variable.
Throws:
VisADException - VisAD failure.
RemoteException - Java RMI failure.

int32VariableAdapter

public Int32VariableAdapter int32VariableAdapter(dods.dap.DInt32 var,
                                                 dods.dap.DAS das)
                                          throws VisADException,
                                                 RemoteException
Returns the adapter corresponding to a DODS DInt32.

Parameters:
var - An appropriate DODS variable.
das - The DODS DAS in which the attribute table for the DODS variable is embedded.
Returns:
The adapter corresponding to the DODS variable.
Throws:
VisADException - VisAD failure.
RemoteException - Java RMI failure.

float32VariableAdapter

public Float32VariableAdapter float32VariableAdapter(dods.dap.DFloat32 var,
                                                     dods.dap.DAS das)
                                              throws VisADException,
                                                     RemoteException
Returns the adapter corresponding to a DODS DFloat32.

Parameters:
var - An appropriate DODS variable.
das - The DODS DAS in which the attribute table for the DODS variable is embedded.
Returns:
The adapter corresponding to the DODS variable.
Throws:
VisADException - VisAD failure.
RemoteException - Java RMI failure.

float64VariableAdapter

public Float64VariableAdapter float64VariableAdapter(dods.dap.DFloat64 var,
                                                     dods.dap.DAS das)
                                              throws VisADException,
                                                     RemoteException
Returns the adapter corresponding to a DODS DFloat64.

Parameters:
var - An appropriate DODS variable.
das - The DODS DAS in which the attribute table for the DODS variable is embedded.
Returns:
The adapter corresponding to the DODS variable.
Throws:
VisADException - VisAD failure.
RemoteException - Java RMI failure.

structureVariableAdapter

public StructureVariableAdapter structureVariableAdapter(dods.dap.DStructure var,
                                                         dods.dap.DAS das)
                                                  throws VisADException,
                                                         RemoteException
Returns the adapter corresponding to a DODS DStructure.

Parameters:
var - An appropriate DODS variable.
das - The DODS DAS in which the attribute table for the DODS variable is embedded.
Returns:
The adapter corresponding to the DODS variable.
Throws:
VisADException - VisAD failure.
RemoteException - Java RMI failure.

listVariableAdapter

public ListVariableAdapter listVariableAdapter(dods.dap.DList var,
                                               dods.dap.DAS das)
                                        throws VisADException,
                                               RemoteException
Returns the adapter corresponding to a DODS DList.

Parameters:
var - An appropriate DODS variable.
das - The DODS DAS in which the attribute table for the DODS variable is embedded.
Returns:
The adapter corresponding to the DODS variable.
Throws:
VisADException - VisAD failure.
RemoteException - Java RMI failure.

sequenceVariableAdapter

public SequenceVariableAdapter sequenceVariableAdapter(dods.dap.DSequence var,
                                                       dods.dap.DAS das)
                                                throws VisADException,
                                                       RemoteException
Returns the adapter corresponding to a DODS DSequence.

Parameters:
var - An appropriate DODS variable.
das - The DODS DAS in which the attribute table for the DODS variable is embedded.
Returns:
The adapter corresponding to the DODS variable.
Throws:
VisADException - VisAD failure.
RemoteException - Java RMI failure.

arrayVariableAdapter

public ArrayVariableAdapter arrayVariableAdapter(dods.dap.DArray var,
                                                 dods.dap.DAS das)
                                          throws VisADException,
                                                 RemoteException
Returns the adapter corresponding to a DODS DArray.

Parameters:
var - An appropriate DODS variable.
das - The DODS DAS in which the attribute table for the DODS variable is embedded.
Returns:
The adapter corresponding to the DODS variable.
Throws:
VisADException - VisAD failure.
RemoteException - Java RMI failure.

gridVariableAdapter

public GridVariableAdapter gridVariableAdapter(dods.dap.DGrid var,
                                               dods.dap.DAS das)
                                        throws VisADException,
                                               RemoteException
Returns the adapter corresponding to a DODS DGrid.

Parameters:
var - An appropriate DODS variable.
das - The DODS DAS in which the attribute table for the DODS variable is embedded.
Returns:
The adapter corresponding to the DODS variable.
Throws:
VisADException - VisAD failure.
RemoteException - Java RMI failure.

gridVariableMapAdapter

public GridVariableMapAdapter gridVariableMapAdapter(dods.dap.DArray array,
                                                     dods.dap.DAS das)
                                              throws VisADException,
                                                     RemoteException
Returns the adapter corresponding to the coordinate mapping- vectors of a DODS DGrid.

Parameters:
array - The coordinate mapping vectors of a DODS DGrid.
das - The DODS DAS in which the attribute table for the DODS variable is embedded.
Returns:
The adapter corresponding to the coordinate mapping-vectors of the DODS grid.
Throws:
VisADException - VisAD failure.
RemoteException - Java RMI failure.

vectorAdapter

public VectorAdapter vectorAdapter(dods.dap.PrimitiveVector vector,
                                   dods.dap.DAS das)
                            throws VisADException,
                                   RemoteException
Returns the adapter corresponding to a DODS PrimitiveVector.

Parameters:
vector - An appropriate DODS variable.
das - The DODS DAS in which the attribute table for the DODS variable is embedded.
Returns:
The adapter corresponding to the DODS primitive vector.
Throws:
VisADException - VisAD failure.
RemoteException - Java RMI failure.