public class RealType extends ScalarType
Modifier and Type | Field and Description |
---|---|
static RealType |
Altitude |
static RealType |
Declination
astronomical coordinates
|
static RealType |
Generic
generic RealType
|
static int |
INTERVAL
The interval attribute.
|
static RealType |
Latitude
Spherical spatial coordinate for Latitude
|
static RealType |
Longitude
Spherical spatial coordinate for Longitude
|
static RealType |
Radius |
static RealType |
RightAscension |
static RealType |
Time
Timestamp coordinate
|
static RealType |
TimeInterval
Temporal-interval coordinate
|
static RealType |
XAxis
Cartesian spatial coordinate - X axis
|
static RealType |
YAxis
Cartesian spatial coordinate - Y axis
|
static RealType |
ZAxis
Cartesian spatial coordinate - Z axis
|
Modifier | Constructor and Description |
---|---|
|
RealType(String name)
Deprecated.
|
|
RealType(String name,
int attrMask)
Deprecated.
|
|
RealType(String name,
Unit u)
Deprecated.
|
protected |
RealType(String name,
Unit u,
boolean b)
trusted constructor for initializers
|
protected |
RealType(String name,
Unit u,
int attrMask,
boolean b)
trusted constructor for initializers
|
|
RealType(String name,
Unit u,
Set set)
Deprecated.
|
|
RealType(String name,
Unit u,
Set set,
int attrMask)
Deprecated.
|
protected |
RealType(String name,
Unit u,
Set s,
int attrMask,
boolean b)
trusted constructor for initializers
|
Modifier and Type | Method and Description |
---|---|
MathType |
binary(MathType type,
int op,
Vector names) |
ShadowType |
buildShadowType(DataDisplayLink link,
ShadowType parent) |
MathType |
cloneDerivative(RealType d_partial) |
boolean |
equals(Object type)
Check the equality of type with this RealType;
two RealType-s are equal if they have the same name,
convertible DefaultUnit-s, same DefaultSet and attrMask;
a RealType copied from a remote Java virtual machine may have
the same name but different values for other fields
|
boolean |
equalsExceptName(MathType type)
any two RealType-s are equal except Name
|
boolean |
equalsExceptNameButUnits(MathType type)
Check to see if type has convertible units with this RealType.
|
int |
getAttributeMask()
Gets the attribute mask of this RealType.
|
Set |
getDefaultSet()
get default Set
|
Unit |
getDefaultUnit()
get default Unit
|
static RealType |
getRealType(String name)
Returns a RealType corresponding to a name.
|
static RealType |
getRealType(String name,
int attrMask)
Returns a RealType corresponding to a name and attribute mask.
|
static RealType |
getRealType(String name,
Unit u)
Returns a RealType corresponding to a name and unit.
|
static RealType |
getRealType(String name,
Unit u,
int attrMask)
Returns a RealType corresponding to a name, unit, and attribute mask.
|
static RealType |
getRealType(String name,
Unit u,
Set set)
Returns a RealType corresponding to a name, unit, and representational set.
|
static RealType |
getRealType(String name,
Unit u,
Set set,
int attrMask)
Returns a RealType corresponding to a name, unit, representational set,
and attribute mask.
|
static RealType |
getRealTypeByName(String name)
return any RealType constructed in this JVM with name,
or null
|
boolean |
isInterval()
Indicates whether or not this RealType refers to an interval (e.g.
|
static void |
main(String[] args) |
Data |
missingData()
returns a missing Data object for any MathType
|
String |
prettyString(int indent) |
void |
setDefaultSet(Set sampling)
set the default Set;
this is a violation of MathType immutability to allow a
a RealType to 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
|
MathType |
unary(int op,
Vector names) |
alias, compareTo, getAlias, getName, getNameWithBlanks, getOriginalName, getScalarTypeByName, hashCode, readResolve, validateName
addTimeAlias, findScalarType, guessMaps, prettyString, stringToType, toString
public static final int INTERVAL
public static final RealType XAxis
public static final RealType YAxis
public static final RealType ZAxis
public static final RealType Latitude
public static final RealType Longitude
public static final RealType Altitude
public static final RealType Radius
public static final RealType TimeInterval
public static final RealType Time
public static final RealType Declination
public static final RealType RightAscension
public static final RealType Generic
public RealType(String name) throws VisADException
getRealType(String)
null
for the default Unit and default Set and that
the RealType does not refer to an interval.name
- The name for the RealType.VisADException
- Couldn't create necessary VisAD object.public RealType(String name, int attrMask) throws VisADException
getRealType(String, int)
null
for the default
Unit and default Set.name
- The name for the RealType.attrMask
- The attribute mask. 0 or INTERVAL.VisADException
- Couldn't create necessary VisAD object.public RealType(String name, Unit u, Set set) throws VisADException
getRealType(String, Unit, Set)
name
- The name for the RealType.u
- The default unit for the RealType. May be
null
.set
- The default sampling set for the RealType.
Used when this type is a FunctionType domain.
May be null
.VisADException
- Couldn't create necessary VisAD object.public RealType(String name, Unit u) throws VisADException
getRealType(String, Unit)
name
- The name for the RealType.u
- The default unit for the RealType. May be
null
.VisADException
- Couldn't create necessary VisAD object.public RealType(String name, Unit u, Set set, int attrMask) throws VisADException
getRealType(String, Unit, Set, int)
name
- The name for the RealType.u
- The default unit for the RealType. May be
null
. If non-null
and the RealType refers to an interval,
then the default unit will actually be
u.getAbsoluteUnit()
.set
- The default sampling set for the RealType.
Used when this type is a FunctionType domain.
May be null
.attrMask
- The attribute mask. 0 or INTERVAL.VisADException
- Couldn't create necessary VisAD object.protected RealType(String name, Unit u, int attrMask, boolean b)
protected RealType(String name, Unit u, Set s, int attrMask, boolean b) throws SetException
SetException
public final int getAttributeMask()
public final boolean isInterval()
public Unit getDefaultUnit()
public Set getDefaultSet()
public void setDefaultSet(Set sampling) throws VisADException
VisADException
public boolean equals(Object type)
equals
in class ScalarType
type
- object in questionpublic boolean equalsExceptName(MathType type)
equalsExceptName
in class MathType
public boolean equalsExceptNameButUnits(MathType type)
equalsExceptNameButUnits
in class MathType
type
- MathType to checkpublic MathType cloneDerivative(RealType d_partial) throws VisADException
cloneDerivative
in class MathType
VisADException
public MathType binary(MathType type, int op, Vector names) throws VisADException
binary
in class MathType
VisADException
public MathType unary(int op, Vector names) throws VisADException
unary
in class MathType
VisADException
public Data missingData() throws VisADException
MathType
missingData
in class MathType
VisADException
public static final RealType getRealType(String name)
null
is returned.name
- The name for the RealType.null
.NullPointerException
- if the name is null
.public static final RealType getRealType(String name, Unit u)
null
is returned. Note that the unit
of the returned RealType will be convertible with the unit argument but
might not equal it.name
- The name for the RealType.u
- The unit for the RealType.null
.NullPointerException
- if the name is null
.public static RealType getRealType(String name, int attrMask)
null
is returned. Note that the unit
of the returned RealType will be convertible with the unit argument but
might not equal it.name
- The name for the RealType.attrMask
- The attribute mask for the RealType.null
.NullPointerException
- if the name is null
.public static RealType getRealType(String name, Unit u, Set set)
null
is returned. Note that the unit of the returned RealType will be
convertible with the unit argument but might not equal it.name
- The name for the RealType.u
- The unit for the RealType.set
- The representational set for the RealType.null
.NullPointerException
- if the name is null
.public static final RealType getRealType(String name, Unit u, int attrMask)
null
is returned. Note that the unit of the returned RealType
will be convertible with the unit argument but might not equal it.name
- The name for the RealType.u
- The unit for the RealType.attrMask
- The attribute mask for the RealType.null
.NullPointerException
- if the name is null
.public static final RealType getRealType(String name, Unit u, Set set, int attrMask)
null
is returned. Note that the unit of the returned RealType
will be convertible with the unit argument but might not equal it.name
- The name for the RealType.u
- The unit for the RealType.set
- The representational set for the RealType.attrMask
- The attribute mask for the RealType.null
.NullPointerException
- if the name is null
.public static RealType getRealTypeByName(String name)
public ShadowType buildShadowType(DataDisplayLink link, ShadowType parent) throws VisADException, RemoteException
buildShadowType
in class MathType
VisADException
RemoteException
public String prettyString(int indent)
prettyString
in class MathType
public static void main(String[] args) throws VisADException
VisADException
Copyright © 1996–2023 The SSEC Visualization Project. All rights reserved.