Table System and Compute Function

Thie goal is to create a mechanism in the XML to represent, look up, and use information in a table. In addition, the goal is to crearte a compute function over responce and pattern results to allow the XML write to computer complex functions over both indivitual items, and lists of iteas. For the later aggregate functions will be supported (SUM, MAX, etc).

Tables

Tables will allow the XML author to create tables that include references to either reponse knowledge or pattern results (including other table lookups), to look up something in a table and return the appropriate response value. The link below gives some example tables, with comments:

Sample Architecture Tables

T is for TableLookup

A two dimensional table

The table will work by first selecting a column. This is done by going through the header and fidning the first one that matches (dependancy is true). Then the system will go through the rows, finding the first that also matches. If a reference is made to a question that has not been asked, the question will be asked. If an another table is referenced, that table will be referenced for an answer.

<item id=T508.4 type="lookuptable" subtype="2">
      <summerystatement>Table for ...</summerystatement>
      <explanation>More Information</explanation> 
      <headers>
           <header>
                <title>Occupancy</title>
         </header>
         <header>
            <title>A^D, E: S</title>
            <selector dependency="..."\>
        </header>
        <header>
            <title>A^D, E: NS</title>
            <selector dependency="..."\>
        </header>
        <header>
            <title>I-1, I-3, I-4: S</title>
            <selector dependency="..."\>
        </header>
        <header>
            <title>I-1, I-3, I-4: NS</title>
            <selector dependency="..."\>
        </header>
 ...
    </headers>
    <rows>
        <row>
            <label>A^d, E</label>
            <selector dependency="..."\>
             <cell>N</cell>
             <cell>N</cell>
             <cell>1</cell>
             <cell>2</cell>
             <cell>2</cell>
             <cell>NP</cell>
             <cell>1</cell>
                ...
        </row>
        <row>
            <label>I-1, I-3, I-4: S</label>
            <selector dependency="..."\>
             <cell></cell>
             <cell></cell>
             <cell>N</cell>
             <cell>N</cell>
             <cell>2</cell>
             <cell>NP</cell>
             <cell>1</cell>
                ...
        </row>
    </rows>
</item>   
          

A symbolic constant

A symbol can be used instead of an integer for a response. It will always be translated to the underlying integer for use in dependencies, responses, and computations

<item id=SN type="symbol">
    <symbol>N</symbol>
    <value>3</value>
</item>

The Compute Operation

A new tag will be added <compute> that works like <value>, but is much more generalized.

<compute>
   [q324] + [q333]
</compute>
Topic attachments
I Attachment History Action Size Date Who Comment
JPEGjpeg 1BuildingHeights.jpeg r2 r1 manage 2595.4 K 2016-06-26 - 01:11 JimSkon Allowable Heights
JPEGjpeg 2separation.jpeg r1 manage 2350.1 K 2016-06-26 - 00:53 JimSkon Separation
JPEGjpeg 3wallfinish.jpeg r1 manage 2230.4 K 2016-06-26 - 01:07 JimSkon Wall Finish
JPEGjpeg 4Alarms.jpeg r2 r1 manage 2681.8 K 2016-06-26 - 01:20 JimSkon  
JPEGjpeg 5StoriesOneExit.jpeg r1 manage 1172.5 K 2016-06-26 - 01:21 JimSkon  
Edit | Attach | Watch | Print version | History: r6 | r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions...
Topic revision: r2 - 2016-06-26 - JimSkon
 
  • Edit
  • Attach
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback