Tables

Tables are tables of correspondence between values. A table has a name, a set of typed attributes and a dataset organized in tuples. A table ends with the keyword End.

Syntax

Tables are defined according to the following syntax:

<Table> ::=
        Table   <TableName>
        Attributes
        <a1> : <Quantity1> ;
        <a2> : <Quantity2> ;
        …
        <an> : <Quantityn>;
        Tuples
        [<va11>, <va21>, …, <van1>] ,
        [<va12>, <va22>, …, <van2>] ,
        [<va13>, <va23>, …, <van3>] ,
        …
        [<va1p>, <va2p>, …, <vanp>]
        End

Examples

Let’s assume that we want to model in DEPS the following data table corresponding to the characteristics of a set of batteries:

ref

V

Imax

1

12

30

2

12

40

3

6

30

4

6

20

This previous data table corresponds in DEPS to the following Table:

Table Battery

Attributes
ref :  DipoleIndex;
V :   Voltage;
Imax : Current;

Tuples
[1, 12, 30],
[2, 12, 40],
[3, 6, 30],
[4, 6, 20]
End