org.wdssii.core
Class DataType

java.lang.Object
  extended by org.wdssii.core.DataType
Direct Known Subclasses:
DataTable, LatLonGrid, PolarGrid, RadialSet

public class DataType
extends Object

Base class of all the data types that can be displayed.

Version:
$Id: DataType.java,v 1.10 2007/11/20 21:03:59 lakshman Exp $
Author:
Lakshman

Field Summary
protected  Map<String,String> attributes
           
static float DataUnavailable
           
static float MissingData
           
protected  Location originLocation
           
static float RangeFolded
           
protected  Date startTime
           
protected  String typeName
           
 
Constructor Summary
DataType(DataType master)
          copies all the attributes, etc.
DataType(Location originLoc, Date startTime, String typeName)
           
 
Method Summary
 void addAttributes(DataType example)
          copies all the attributes over
(package private) static float[][] copyOf(float[][] master)
          Makes a copy of 2D arrays
 Object getAttribute(String name)
           
 Map<String,String> getAttributes()
           
 Location getLocation()
          of the origin.
 Date getTime()
           
 String getTypeName()
           
 String getUnit()
           
 String getUTC()
           
 void setAttribute(String name, String value)
           
 void setAttributes(Map<String,String> attr)
           
 void setTypeName(String typeName)
           
 String toStringDB()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

originLocation

protected Location originLocation

startTime

protected Date startTime

typeName

protected String typeName

attributes

protected Map<String,String> attributes

MissingData

public static final float MissingData
See Also:
Constant Field Values

RangeFolded

public static final float RangeFolded
See Also:
Constant Field Values

DataUnavailable

public static final float DataUnavailable
See Also:
Constant Field Values
Constructor Detail

DataType

public DataType(Location originLoc,
                Date startTime,
                String typeName)

DataType

public DataType(DataType master)
copies all the attributes, etc. from the master. The master can change without affecting this object

Method Detail

addAttributes

public void addAttributes(DataType example)
copies all the attributes over


setAttributes

public void setAttributes(Map<String,String> attr)

setAttribute

public void setAttribute(String name,
                         String value)

getAttributes

public Map<String,String> getAttributes()

getAttribute

public Object getAttribute(String name)

getTime

public Date getTime()

getLocation

public Location getLocation()
of the origin.


getTypeName

public String getTypeName()

setTypeName

public void setTypeName(String typeName)

getUnit

public String getUnit()

getUTC

public String getUTC()

toStringDB

public String toStringDB()

copyOf

static float[][] copyOf(float[][] master)
Makes a copy of 2D arrays