Date: Fri, 29 Mar 2024 10:09:28 +0100 (CET) Message-ID: <1148282815.143.1711703368908@vmisdata19.uni-oldenburg.de> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_142_48815403.1711703368907" ------=_Part_142_48815403.1711703368907 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
This site describes MEP functions available to use a Multi Dimensional Array (MDA) store. Such a MDA is basically= a grid, whose borders, and distances between borders can be defined. As an= example, the map of a city can be overlayed by a MDA to get equal sized zo= nes or cells.
Functions for MDA stores are the following:
This function creates a new dimension for any MDA store.
Arguments:
The number of cells is than the number of borders minus 1.
Return value: List<Double>
All borders defining the dimension
Example:
0...100 | 100.01... 200 |
can be defined by
MDADim(= 0.0, 200.0, ToInteger(3))
returning
0 | 100 | 200 |
This function creates a new MDA store.
Arguments:
Return value: null
Example:
MDAInit= ("MyStore", ToList(MDADim(0.0, 200.0, ToInteger(3))))
This function drops an existing MDA store.
Argument: The name for the store
Return value: null
Example:
MDADrop= ("MyStore")
This function retrieves the index of an :warning:one-dimensional:warning=
: MDA store for a given value. In other words, it answers the quesion =
in which cell the values lies.
Short-cut for MDAIndices with one d=
imension.
Arguments:
Note that it must be an one-dimensional MDA
Return value: Integer
The cell in which cell the values lies, or -1, if the value is outs= ide the boundaries.
Example:
Using the Nexmark sources:
MDAInde= x("MyStore", price)
This function retrieves the index of multi-dimensional MDA store fo= r a given value. In other words, it answers the quesion in which cell the v= alues lies.
Arguments:
Return value: List<Integer>
The cell in which cell the values lies, or -1 for any dimension, if= the value is outside the boundaries of that dimension.
Example:
Using the Nexmark sources:
MDAInde= x("MyStore", ToList(price, ToDouble(initialbid)))
This function adds a new dimension to an existing MDA store.
Arguments:
Return value: null
Example:
MDAAddD= im("MyStore", MDADim(0.0, 200.0, ToInteger(3)))
This function removes an existing dimension from an existing MDA store.<= /p>
Arguments:
Return value: null
Example:
MDARemo= veDim("MyStore", ToInteger(0))
This function replaces en existing dimension of an existing MDA store wi= th a new dimension.
Arguments:
Return value: null
Example:
MDAExch= angeDim("MyDim", ToInteger(0), MDADim(200.0, 400.0, ToInteger(5)))