Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents
minLevel2
outlinetrue
stylenone


Introduction

Domain Specific Languages are languages created to support a particular set of tasks, as they are performed in a specific domain. Atomiton's TQL is a collection of number of DSL's each supporting specific function. Just like any GPL, in order for DSL to be successful, it must to have advanced tooling support around it.  Ideally we want all all sort of simulators, debuggers, tools to analyze code coverage. Everything built on one platform. 

In this section we describe the simple reporting that A-Stack (runtime for TQL) offers to deduce your TQL Code coverage. The advantage of finding the TQL Code coverage is to avoid or minimize all runtime errors

...

  1. Download and install A-StackPrime runtime - Version 1.3.1 and beyond.
  2. Download and unzip this test project in the A-Stack 
  3. Add 

    <sff.local.deploy>resources/hellotql/deploy</sff.local.deploy> to sff.local.config.xml file

  4. Let's run two sample queries : Endpoint; ws://{host}:{port}/fid-MYGIDI2UAAAH6AAAAEXDEUQIWS

...

Code Block
languagexml
themeEmacs
titleQuery to execute
<Query>
  <DeleteAll>
      <TempSensor>
        <sensorId ne=""/>
      </TempSensor>
    </DeleteAll>
  <Save format="version,current">
    <!-- This will read -->
    <TempSensor>
      <Simulation>
        true
      </Simulation>
      <PerifMsg>
        $Null()
      </PerifMsg>
      <Peripheral>
        serial
      </Peripheral>
      <Baudrate>
        9600
      </Baudrate>
      <InterfacePort>
        /dev/cu.usbmodem1411
      </InterfacePort>
      <Interface>
        serial
      </Interface>
      <Format>
        ascii
      </Format>
      <Operation>
        receive
      </Operation>
      <UniqueId>
        76522
      </UniqueId>
      <Payload>
        $Null()
      </Payload>
      <TempValue>
        $Null()
      </TempValue>
    </TempSensor>
  </Save>
</Query>

<Query Storage='TqlSubscription'>
  <Save>
    <TqlSubscription Label='TempSensor' sid='20'>
      <Topic>*Atomiton.Sensors.TempSensor.TempValue*</Topic>
    </TqlSubscription>
  </Save>
</Query>


...