Re: Reconstructing MathTypes

Steve Emmerson wrote:
> 
> Mathias,
> 
> >Date: Tue, 17 Jul 2001 19:13:32 +0200
> >From: =?iso-8859-1?Q?Mathias_St=FCmpert?= <atzes@xxxxxx>
> >To: "VisAD List" <visad-list@xxxxxxxxxxxxx>
> >Subject: Reconstructing MathTypes
> >Keywords: 200107171713.f6HHDa105410
> 
> The above message contained the following:
> 
> > I have a problem with reconstructing MathTypes from a formerly
> > constructed LinearNDSet. I constructed the set with a RealTupleType as
> > MathType. When I'm trying to get the MathTypes out of the set via
> > LinearNDSet.getLinear1DComponent(int).getType() I expect a RealType but
> > what I get is a SetType of the expected RealType. Is this behavior
> > normal? ...
> 
> The behavior is correct. The return type of
> LinearNDSet.getLinear1DComponent(int) is a Linear1DSet, which is a
> subclass of Set. Invoking getType() on a Set always returns a SetType.

And invoking getDomain() on the SetType will return a
RealTupleType. And getComponent(0) on that will give you
your RealType.

Cheers,
Bill
----------------------------------------------------------
Bill Hibbard, SSEC, 1225 W. Dayton St., Madison, WI  53706
hibbard@xxxxxxxxxxxxxxxxx  608-263-4427  fax: 608-263-6738
http://www.ssec.wisc.edu/~billh/vis.html


  • 2001 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the visad archives: