| Overview | Package | Class | Tree | Deprecated | Index | Help | |||
| PREV CLASS | NEXT CLASS | FRAMES | NO FRAMES | ||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||
java.lang.Object
|
+--java.util.Dictionary
|
+--java.util.Hashtable
|
+--ncsa.horizon.util.Metadata
|
+--ncsa.horizon.model.HorizonMetadata
| Field Summary | |
| static java.lang.String | aCoordinateSystem
|
| static java.lang.String | horizonSchema
|
| static java.lang.String | nativeSchema
|
| static java.lang.String | naxes
|
| static java.lang.String | SchemaSet
|
| static java.lang.String | version
version of horizon schema supported by this object |
| Fields inherited from class ncsa.horizon.util.Metadata | |
| defaults, executeRunners, METARUNNER_TAG, schema, schemaVersion | |
| Constructor Summary | |
| HorizonMetadata()
Construct a HorizonMetadata object for holding Viewable-level metadata. |
|
| HorizonMetadata(int nax,
Metadata defaults)
Create a Metadata object describing a Viewable dataset with a given number of axes. |
|
| HorizonMetadata(int nax)
Creates an empty metadatum list with defaults. |
|
| HorizonMetadata(Metadata viewableDefaults,
Metadata coordMetadata)
Creates an empty metadatum list with specified defaults. |
|
| Method Summary | |
| void | initMetadata(int nax)
|
| static void | setCoordinateSystem(Metadata md,
Metadata coordmd)
set the Coordinate System metadata for a dataset |
| void | setCoordinateSystem(Metadata coordmd)
set the Coordinate System metadata for a dataset |
| static void | setDataType(Metadata md,
java.lang.Class type)
set the "dataType" metadatum in the given metadata list. |
| void | setDataType(java.lang.Class type)
set the default slice metadatum in this metadata list. |
| static void | setDataVolume(Metadata md,
Volume dataVolume)
set the "dataVolume" metadatum indicating the extent of the data. |
| static void | setDataVolume(Metadata md,
int[] size)
set the "dataVolume" metadatum indicating the extent of the data. |
| void | setDataVolume(Volume dataVolume)
set the "dataVolume" metadatum indicating the extent of the data. |
| void | setDataVolume(int[] size)
set the "dataVolume" metadatum indicating the extent of the data. |
| static void | setDefaultSlice(Metadata md,
Slice slice)
set the default slice metadatum in the given metadata list |
| void | setDefaultSlice(Slice slice)
set the default slice metadatum in this metadata list |
| static void | setMaximumValue(Metadata md,
java.lang.Object val)
set the "maximumValue" metadatum in the given metadata list |
| void | setMaximumValue(java.lang.Object val)
set the default slice metadatum in this metadata list |
| static void | setMinimumValue(Metadata md,
java.lang.Object val)
set the "minimumValue" metadatum in the given metadata list |
| void | setMinimumValue(java.lang.Object val)
set the default slice metadatum in this metadata list |
| static void | setNaxes(Metadata md,
int nax)
set the number of axes in a dataset |
| void | setNaxes(int i)
set the number of axes for the dataset described by this Metadata |
| static void | setUndefinedValue(Metadata md,
java.lang.Object val)
set the "undefinedValue" metadatum in the given metadata list |
| void | setUndefinedValue(java.lang.Object val)
set the default slice metadatum in this metadata list |
| static void | setUnitsConverter(Metadata md,
DataFilter df)
set a data filter that should be used to convert raw values into physical values. |
| void | setUnitsConverter(DataFilter df)
set a data filter that should be used to convert raw values into physical values. |
| Methods inherited from class ncsa.horizon.util.Metadata | |
| cloneDefaults, clone, copyMetadata, copyMetadata, deepClone, detachedClone, detach, fetchDatum, fetchMetadatum, getDefaults, getMetadatum, getMetadatum, getMetadatum, getMetadatum, getRunnerNames, giveDefaults, metadatumNames, put, removeAllMetadata, setDefaults, setSchema, setSchemaVersion, toString | |
| Methods inherited from class java.util.Hashtable | |
| clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keySet, keys, putAll, put, rehash, remove, size, toString, values | |
| Methods inherited from class java.util.Dictionary | |
| elements, get, isEmpty, keys, put, remove, size | |
| Methods inherited from class java.lang.Object | |
| clone, equals, finalize, getClass, hashCode, notifyAll, notify, toString, wait, wait, wait | |
| Field Detail |
public static final java.lang.String horizonSchema
public static final java.lang.String version
public static final java.lang.String aCoordinateSystem
public static final java.lang.String nativeSchema
public static final java.lang.String SchemaSet
public static final java.lang.String naxes
| Constructor Detail |
public HorizonMetadata()
public HorizonMetadata(int nax,
Metadata defaults)
throws java.lang.ArrayIndexOutOfBoundsException
nax
- the number of axes in the dataset
defaults
- the defaults (can be null)
public HorizonMetadata(int nax)
throws java.lang.ArrayIndexOutOfBoundsException
nax
- the number of axes in the dataset
public HorizonMetadata(Metadata viewableDefaults,
Metadata coordMetadata)
throws java.lang.ArrayIndexOutOfBoundsException
viewableDefaults
- the default dataset metadata; can be
null;
coordMetadata
- the coordinate system metadata; these
will be saved under the primary (i.e.
updatable) list with the name
"CoordinateSystem"; can be null.| Method Detail |
protected void initMetadata(int nax)
public static void setNaxes(Metadata md,
int nax)
throws java.lang.ArrayIndexOutOfBoundsException
md
- the metadata to update
nax
- the number of axes
public void setNaxes(int i)
throws java.lang.ArrayIndexOutOfBoundsException
nax
- the number of axes
public static void setCoordinateSystem(Metadata md,
Metadata coordmd)
md
- the metadata to update
coordmd
- the Coordinate System metadata to insertpublic void setCoordinateSystem(Metadata coordmd)
coordmd
- the Coordinate System metadata to insert
public static void setDataVolume(Metadata md,
Volume dataVolume)
md
- the metadata to update
dataVolume
- the extent of the data
public static void setDataVolume(Metadata md,
int[] size)
md
- the metadata to update
dataVolume
- the extent of the datapublic void setDataVolume(Volume dataVolume)
dataVolume
- the extent of the datapublic void setDataVolume(int[] size)
size
- the length of axis
public static void setDefaultSlice(Metadata md,
Slice slice)
md
- the metadata to update
slice
- the default slice to setpublic void setDefaultSlice(Slice slice)
slice
- the default slice to set
public static void setDataType(Metadata md,
java.lang.Class type)
md
- the metadata to update
type
- the data type of the arraypublic void setDataType(java.lang.Class type)
type
- the data type of the array
public static void setUnitsConverter(Metadata md,
DataFilter df)
throws java.lang.IllegalArgumentException
public void setUnitsConverter(DataFilter df)
throws java.lang.IllegalArgumentException
public static void setUndefinedValue(Metadata md,
java.lang.Object val)
throws MetadataTypeException
md
- the metadata to update
val
- the undefined value
public void setUndefinedValue(java.lang.Object val)
throws MetadataTypeException
type
- the data type of the array
public static void setMinimumValue(Metadata md,
java.lang.Object val)
throws MetadataTypeException
md
- the metadata to update
val
- the minimum value
public void setMinimumValue(java.lang.Object val)
throws MetadataTypeException
type
- the data type of the array
public static void setMaximumValue(Metadata md,
java.lang.Object val)
throws MetadataTypeException
md
- the metadata to update
val
- the maximum value
public void setMaximumValue(java.lang.Object val)
throws MetadataTypeException
type
- the data type of the array| Overview | Package | Class | Tree | Deprecated | Index | Help | |||
| PREV CLASS | NEXT CLASS | FRAMES | NO FRAMES | ||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||