sgtplot.dm
Class SGTMetaData
- java.lang.Object
-
- sgtplot.dm.SGTMetaData
-
- All Implemented Interfaces:
- java.io.Serializable
public class SGTMetaData extends java.lang.Object implements java.io.SerializableMetaData container for the sgtplot datamodel.- Since:
- 1.0
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description SGTMetaData()Default constructor.SGTMetaData(java.lang.String name, java.lang.String units)SGTMetaData constructor.SGTMetaData(java.lang.String name, java.lang.String units, boolean rev, boolean mod)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description GeoDategetModuloTime()Get temporal modulo valuedoublegetModuloValue()Get modulo value.java.lang.StringgetName()Get the name associated with the variable or coordinate.java.util.PropertiesgetProperties()Get variable or coordinate additional properties.java.lang.StringgetProperty(java.lang.String key)Get property value given the key.java.lang.StringgetProperty(java.lang.String key, java.lang.String defValue)Get property value given the key, if key is not defined use the default value.java.lang.StringgetUnits()Get variable or coordinate units.booleanisModulo()Axis values are modulo.booleanisReversed()Axis values are reversed.voidsetModuloTime(GeoDate val)Set temporal modulo value.voidsetModuloValue(double val)Set the modulo value.voidsetName(java.lang.String name)Set name of coordinate or variablevoidsetProperties(java.util.Properties props)Set additional properties for the coordinate or variable.voidsetProperty(java.lang.String key, java.lang.String value)Set a property for the variable or coordinate.voidsetUnits(java.lang.String units)Set units of coordinate or variable
-
-
-
Constructor Detail
-
SGTMetaData
public SGTMetaData()
Default constructor.
-
SGTMetaData
public SGTMetaData(java.lang.String name, java.lang.String units)SGTMetaData constructor.- Parameters:
name- variable nameunits- units of variable
-
SGTMetaData
public SGTMetaData(java.lang.String name, java.lang.String units, boolean rev, boolean mod)
-
-
Method Detail
-
getName
public java.lang.String getName()
Get the name associated with the variable or coordinate.
-
isReversed
public boolean isReversed()
Axis values are reversed. This axis defines a left-hand coordinate system. For example, northward, eastward, downward, is left-handed.
-
isModulo
public boolean isModulo()
Axis values are modulo. For example, 0 and 360 longitude are equivalent values.
-
setModuloValue
public void setModuloValue(double val)
Set the modulo value. For example, 360 for longitude.
-
setModuloTime
public void setModuloTime(GeoDate val)
Set temporal modulo value. For example, 365 days, for yearly climatologies.
-
getModuloValue
public double getModuloValue()
Get modulo value.
-
getModuloTime
public GeoDate getModuloTime()
Get temporal modulo value
-
setName
public void setName(java.lang.String name)
Set name of coordinate or variable
-
setUnits
public void setUnits(java.lang.String units)
Set units of coordinate or variable
-
setProperties
public void setProperties(java.util.Properties props)
Set additional properties for the coordinate or variable.
-
getProperties
public java.util.Properties getProperties()
Get variable or coordinate additional properties.
-
getProperty
public java.lang.String getProperty(java.lang.String key)
Get property value given the key.
-
getProperty
public java.lang.String getProperty(java.lang.String key, java.lang.String defValue)Get property value given the key, if key is not defined use the default value.
-
setProperty
public void setProperty(java.lang.String key, java.lang.String value)Set a property for the variable or coordinate.
-
getUnits
public java.lang.String getUnits()
Get variable or coordinate units.
-
-
DMelt 3.0 © DataMelt by jWork.ORG