visad
Class RealTupleType
- java.lang.Object
-
- visad.MathType
-
- visad.TupleType
-
- visad.RealTupleType
-
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- DisplayTupleType, RealVectorType
public class RealTupleType extends TupleType
RealTupleType is the VisAD data type for tuples in R^n, for n>0.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field and Description static RealTupleTypeGeneric2DSystem intrinsic for (RealType.Generic, RealType.Generic)static RealTupleTypeGeneric3DSystem intrinsic for (RealType.Generic, RealType.Generic, RealType.Generic)static RealTupleTypeLatitudeLongitudeAltitudeSystem intrinsic for (RealType.Latitude, RealType.Longitude, RealType.Altitude)static RealTupleTypeLatitudeLongitudeTupleSystem intrinsic for (RealType.Latitude, RealType.Longitude)static RealTupleTypeSpatialCartesian2DTupleSystem intrinsic RealTupleType for (RealType.XAxis, RealType.YAxis)static RealTupleTypeSpatialCartesian3DTupleSystem intrinsic for (RealType.XAxis, RealType.YAxis, RealType.ZAxis)static RealTupleTypeSpatialEarth2DTupleSystem intrinsic for (RealType.Longitude, RealType.Latitude)static RealTupleTypeSpatialEarth3DTupleSystem intrinsic for (RealType.Longitude, RealType.Latitude, RealType.Altitude)static RealTupleTypeTime1DTupleSystem intrinsic for (RealType.Time)
-
Constructor Summary
Constructors Constructor and Description RealTupleType(RealType a)construct a RealTupleType with one componentRealTupleType(RealType[] types)array of component types; default CoordinateSystem and Set are nullRealTupleType(RealType[] types, CoordinateSystem coord_sys, Set set)array of component types; default CoordinateSystem for values of this type (including Function domains) and may be null; default Set used when this type is a FunctionType domain and may be nullRealTupleType(RealType a, CoordinateSystem coord_sys, Set set)construct a RealTupleType with one componentRealTupleType(RealType a, RealType b)construct a RealTupleType with two componentsRealTupleType(RealType a, RealType b, CoordinateSystem coord_sys, Set set)construct a RealTupleType with two componentsRealTupleType(RealType a, RealType b, RealType c)construct a RealTupleType with three componentsRealTupleType(RealType a, RealType b, RealType c, CoordinateSystem coord_sys, Set set)construct a RealTupleType with three componentsRealTupleType(RealType a, RealType b, RealType c, RealType d)construct a RealTupleType with four componentsRealTupleType(RealType a, RealType b, RealType c, RealType d, CoordinateSystem coord_sys, Set set)construct a RealTupleType with four components
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description MathTypebinary(MathType type, int op, java.util.Vector names)Performs an arithmetic operation with another MathType.ShadowTypebuildShadowType(DataDisplayLink link, ShadowType parent)booleanequalsExceptName(MathType type)this is useful for determining compatibility of Data objects for binary mathematical operations; any RealTypes are equal; any TextTypes are equal; TupleTypes are equal if their components are equal; FunctionTypes are equal if their domains and ranges are equalbooleanequalsExceptNameButUnits(MathType type)CoordinateSystemgetCoordinateSystem()get default CoordinateSystemSetgetDefaultSet()get default SetUnit[]getDefaultUnits()get default Units of RealType components; copy DefaultUnits array to ensure that it cannot be alteredstatic RealType[]makeArray(RealType a)static RealType[]makeArray(RealType a, RealType b)static RealType[]makeArray(RealType a, RealType b, RealType c)static RealType[]makeArray(RealType a, RealType b, RealType c, RealType d)DatamissingData()returns a missing Data object for any MathTypejava.lang.StringprettyString(int indent)voidsetDefaultSet(Set sampling)set the default sampling; this is an unavoidable violation of MathType immutability - a RealTupleType must be an argument (directly or through a SetType) to the constructor of its default Set; this method throws an Exception if getDefaultSet has previously been invokedMathTypeunary(int op, java.util.Vector names)-
Methods inherited from class visad.TupleType
__getitem__, __len__, cloneDerivative, equals, getComponent, getComponents, getDimension, getFlat, getIndex, getIndex, getNumberOfRealComponents, getRealComponents, hashCode
-
Methods inherited from class visad.MathType
addTimeAlias, findScalarType, guessMaps, main, prettyString, stringToType, toString
-
-
-
-
Field Detail
-
SpatialCartesian2DTuple
public static final RealTupleType SpatialCartesian2DTuple
System intrinsic RealTupleType for (RealType.XAxis, RealType.YAxis)
-
SpatialCartesian3DTuple
public static final RealTupleType SpatialCartesian3DTuple
System intrinsic for (RealType.XAxis, RealType.YAxis, RealType.ZAxis)
-
SpatialEarth2DTuple
public static final RealTupleType SpatialEarth2DTuple
System intrinsic for (RealType.Longitude, RealType.Latitude)
-
LatitudeLongitudeTuple
public static final RealTupleType LatitudeLongitudeTuple
System intrinsic for (RealType.Latitude, RealType.Longitude)
-
SpatialEarth3DTuple
public static final RealTupleType SpatialEarth3DTuple
System intrinsic for (RealType.Longitude, RealType.Latitude, RealType.Altitude)
-
LatitudeLongitudeAltitude
public static final RealTupleType LatitudeLongitudeAltitude
System intrinsic for (RealType.Latitude, RealType.Longitude, RealType.Altitude)
-
Time1DTuple
public static final RealTupleType Time1DTuple
System intrinsic for (RealType.Time)
-
Generic2D
public static final RealTupleType Generic2D
System intrinsic for (RealType.Generic, RealType.Generic)
-
Generic3D
public static final RealTupleType Generic3D
System intrinsic for (RealType.Generic, RealType.Generic, RealType.Generic)
-
-
Constructor Detail
-
RealTupleType
public RealTupleType(RealType[] types) throws VisADException
array of component types; default CoordinateSystem and Set are null- Throws:
VisADException
-
RealTupleType
public RealTupleType(RealType a) throws VisADException
construct a RealTupleType with one component- Throws:
VisADException
-
RealTupleType
public RealTupleType(RealType a, RealType b) throws VisADException
construct a RealTupleType with two components- Throws:
VisADException
-
RealTupleType
public RealTupleType(RealType a, RealType b, RealType c) throws VisADException
construct a RealTupleType with three components- Throws:
VisADException
-
RealTupleType
public RealTupleType(RealType a, RealType b, RealType c, RealType d) throws VisADException
construct a RealTupleType with four components- Throws:
VisADException
-
RealTupleType
public RealTupleType(RealType[] types, CoordinateSystem coord_sys, Set set) throws VisADException
array of component types; default CoordinateSystem for values of this type (including Function domains) and may be null; default Set used when this type is a FunctionType domain and may be null- Throws:
VisADException
-
RealTupleType
public RealTupleType(RealType a, CoordinateSystem coord_sys, Set set) throws VisADException
construct a RealTupleType with one component- Throws:
VisADException
-
RealTupleType
public RealTupleType(RealType a, RealType b, CoordinateSystem coord_sys, Set set) throws VisADException
construct a RealTupleType with two components- Throws:
VisADException
-
RealTupleType
public RealTupleType(RealType a, RealType b, RealType c, CoordinateSystem coord_sys, Set set) throws VisADException
construct a RealTupleType with three components- Throws:
VisADException
-
RealTupleType
public RealTupleType(RealType a, RealType b, RealType c, RealType d, CoordinateSystem coord_sys, Set set) throws VisADException
construct a RealTupleType with four components- Throws:
VisADException
-
-
Method Detail
-
binary
public MathType binary(MathType type, int op, java.util.Vector names) throws TypeException, VisADException
Performs an arithmetic operation with another MathType. CoordinateSystem information, if it exists, will be lost.- Overrides:
binaryin classTupleType- Parameters:
type- The other MathType.op- The arithmetic operation (seeData).names- Database of names.- Returns:
- The MathType corresponding to the specified arithmetic operation between this and the other MathType. If the returned type is a RealTupleType, then it will not have a CoordinateSystem.
- Throws:
TypeException-typeis null or can't be arithmetically combined with a RealTupleType.VisADException- Couldn't create necessary VisAD object.- See Also:
Data
-
unary
public MathType unary(int op, java.util.Vector names) throws VisADException
- Overrides:
unaryin classTupleType- Throws:
VisADException
-
getDefaultUnits
public Unit[] getDefaultUnits()
get default Units of RealType components; copy DefaultUnits array to ensure that it cannot be altered
-
getCoordinateSystem
public CoordinateSystem getCoordinateSystem()
get default CoordinateSystem
-
setDefaultSet
public void setDefaultSet(Set sampling) throws VisADException
set the default sampling; this is an unavoidable violation of MathType immutability - a RealTupleType must be an argument (directly or through a SetType) to the constructor of its default Set; this method throws an Exception if getDefaultSet has previously been invoked- Throws:
VisADException
-
getDefaultSet
public Set getDefaultSet()
get default Set
-
equalsExceptName
public boolean equalsExceptName(MathType type)
Description copied from class:MathTypethis is useful for determining compatibility of Data objects for binary mathematical operations; any RealTypes are equal; any TextTypes are equal; TupleTypes are equal if their components are equal; FunctionTypes are equal if their domains and ranges are equal- Overrides:
equalsExceptNamein classTupleType
-
equalsExceptNameButUnits
public boolean equalsExceptNameButUnits(MathType type)
- Overrides:
equalsExceptNameButUnitsin classTupleType
-
prettyString
public java.lang.String prettyString(int indent)
- Overrides:
prettyStringin classTupleType
-
missingData
public Data missingData()
Description copied from class:MathTypereturns a missing Data object for any MathType- Overrides:
missingDatain classTupleType
-
buildShadowType
public ShadowType buildShadowType(DataDisplayLink link, ShadowType parent) throws VisADException, java.rmi.RemoteException
- Overrides:
buildShadowTypein classTupleType- Throws:
VisADExceptionjava.rmi.RemoteException
-
-
DMelt 3.0 © DataMelt by jWork.ORG