comp.lang.ada
 help / color / mirror / Atom feed
From: gautier_niouzes@hotmail.com
Subject: Re: Can Ada iterate over Nd array?
Date: Mon, 30 Apr 2012 07:48:21 -0700 (PDT)
Date: 2012-04-30T07:48:21-07:00	[thread overview]
Message-ID: <6137402.748.1335797301842.JavaMail.geo-discussion-forums@vbkv21> (raw)
In-Reply-To: <3358586.638.1335605749902.JavaMail.geo-discussion-forums@vbbfk16>

Am Samstag, 28. April 2012 11:35:49 UTC+2 schrieb björn lundin:
> We use a 5 dimensional array for selecting locations
> In our wms/wcs system.  Warehouse control system, that is. 
> A location is described by a 5- coordinat system
> Store
> Rack
> Stack
> Level
> Depth
> 
> This was designed around 1990 so today we might have used other
> Techniques. Dbacces was slow then, 
> --
> Björn Lundin

Sounds familiar (mutatis mutandis)... Here is:

  type Aggregator is record
    loc              : Locator_String;
    [ some other data ]
  end record;

  type Aggregator_array is array(Integer range <>) of Aggregator;

  type Aggregator_stack(max: Natural) is record
    top : Natural:= 0;
    item: Aggregator_array(1..max);
  end record;

  type Monster is
        array(Coverage_type,
              Risk_type,
              Struct_mod_type)
  of
        Aggregator_stack(max);

from a tool which is used to compact data - without loss of important information, of course :-).
Each cell, agg(cov,ris,smo).item(idx) is of type Aggregator... 
The first 3 index types are short enumerated types.

G.



  parent reply	other threads:[~2012-04-30 15:04 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-26  4:42 Can Ada iterate over Nd array? Okasu
2012-04-26  5:36 ` Jeffrey Carter
2012-04-26  6:02   ` Okasu
2012-04-26  6:05     ` Okasu
2012-04-26 10:57       ` ytomino
2012-04-26  8:01     ` Dmitry A. Kazakov
2012-04-27  0:36       ` Randy Brukardt
2012-04-27  1:58         ` Jerrid Kimball
2012-04-27  7:39           ` Martin
2012-04-27 18:08             ` Jeffrey Carter
2012-04-30  7:20               ` Martin
2012-04-30 13:21                 ` Robert A Duff
2012-04-30 15:42                   ` Martin
2012-04-27 16:06         ` Shark8
2012-04-26  9:00     ` Georg Bauhaus
2012-04-26 15:48     ` Adam Beneschan
2012-04-26 20:54       ` Okasu
2012-04-27  0:39       ` Randy Brukardt
2012-04-27 13:30         ` Robert A Duff
2012-04-28  8:24           ` Georg Bauhaus
2012-04-28  9:35             ` björn lundin
     [not found]               ` <raadncdcv9V-hgHSnZ2dnUVZ_v2dnZ2d@earthlink.com>
2012-04-28 23:19                 ` björn lundin
2012-04-30 14:48               ` gautier_niouzes [this message]
2012-05-01  2:02           ` Randy Brukardt
2012-04-27  4:19       ` Nasser M. Abbasi
2012-04-27 16:23       ` Bill Findlay
2012-04-26  9:40 ` gautier_niouzes
     [not found] ` <26754113.2767.1335431755764.JavaMail.geo-discussion-forums@vbki8>
2012-04-26 18:09   ` Jeffrey Carter
2012-04-27  0:28     ` BrianG
2012-04-27 13:46       ` Robert A Duff
2012-04-27 11:09 ` Stephen Leake
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox