Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Expand
titleExpand to see legends and methodology

Include Page
Legends and methodologyLegends and methodologyMethodology
Methodology

Go to page

Anchor
TmNamespace TmContent Macro grammar
TmNamespace TmContent Macro grammar
Gliffy
nameTmNamespace TmContent Macro grammar

Panel
borderStylesolid
titleTmNamespace TmContent Macro
Example
<Macro name="RetryQuery">
  <Argument>
    <!-- XML Content -->
  </Argument>
  <Result>
    <!-- XML Content -->
  </Result>
</Macro>

 


Referenced by:


Namespace, TQL model content, Macro

  • TmContent.TmNamespace: nested namespace

...

Panel
borderStylesolid
titleTmDataContent (Data)
Example
 

<DataModel Name="Region">

            <Sid name="RegionID" />

            <!-- List of TmDataAttribute -->

</DataModel>

<ThingModel Name="Sensor">

             <Sid name="SensorID" />

             <!-- List of TmThingAttribute and TmAction -->

</ThingModel>

<AppModel Name="PesticideCalculator">

             <!-- List of TmThingAttribute and TmAction -->

</AppModel>


Referenced by:


TmDataContent

  • Inherits: Inheritance descriptor.
  • Combine:
  • TmDataAttribute: TQL data model attribute definition.
  • StandAloneConstraint: Stand-alone constraint definition.
  • TmUnique: Unique constraint definition.

...

Panel
borderStylesolid
titleTmThingContent (Thing)
Example

 <ThingFacet Name="GPSFacet">

      <!-- List of TmThingAttribute and TmAction -->

</ThingFacet>


Referenced by:


TmThingContent

  • Inherits: Inheritance descriptor.
  • Combine:
  • TmThingAttribute: TQL thing model attribute definition.
  • StandAloneConstraint: Stand-alone constraint definition.
  • TmUnique: Unique constraint definition.
  • TmAction: Thing action definition

...

Panel
borderStylesolid
titleTmAppContent (App)
Example

 <AppFacet name="OptimumValueAlgorithm">
    <!-- List of TmThingAttribute and TmAction -->
</AppFacet>


Referenced by:


TmAppContent

  • Inherits: Inheritance descriptor.
  • Combine:
  • TmThingAttribute: TQL thing model attribute definition.
  • StandAloneConstraint: Stand-alone constraint definition.
  • TmUnique: Unique constraint definition.
  • TmAction: Thing action definition.

...

Panel
borderStylesolid
titleTmUnique
Example

<ThingFacet Name="PhidgetRFID">

     ...

    <String Name="InterfaceIndex" />

    <Unique Name="RFIDIndex" Value="InterfaceIndex" />

    ...

</ThngFacet>

 


Referenced by:


Unique constraint definition

  • Name: Name is optional.
  • Value: List of attribute names.

...

Example
Panel
borderStylesolid
titleTmDataAttribute


 

Referenced by:


TmDataAttribute

  • Attribute: Cherry-picked attribute definition.

...

Panel
borderStylesolid
titleTmDataAtom
Example
 

<DataModel Name="Region">

            ...

            <String name="regionName" />

            ...

</DataModel>



Referenced by:

...

Example
Panel
borderStylesolid
titleTmDataComposite


 

Referenced by:

...

Panel
borderStylesolid
titleTmDataAdHocComposite
Example

<DataModel name="SensorModel">

            ...

            <DataModel name="Device">

                   <String name="Name" />

                   <String name="Type" />

            </DataModel>

            ...

</DataModel>

 

Referenced by:

Ad-hoc/untyped composite attribute

...

Panel
borderStylesolid
titleTmAttributeBase
Example
 

<Def name="StudentType" inherits="Person">

     <String name="Occupation" default="student" eq="student" cardinality="1"/>

</Def>


Referenced by:


TmAttributeBase

  • Name: Model attribute name.
  • Cardinality: Nested cardinalities are not yet supported.
  • Format: Attribute value format specifier.
  • Codec: Attribute value coder/decoder specifier.
  • InlineConstraint: Inline constraint.

...

Example
Panel
borderStylesolid
titleTmThingAttribute


 

Referenced by:


TmThingAttribute

  • Attribute: Cherry-picked attribute definition.

...

Panel
borderStylesolid
titleTmThingAtom
Example

<ThingFacet name="Actuator">

     <String name="deviceState"  knownBy="deviceListener"/>

</ThingFacet>


Referenced by:


TmThingAtom

  • Update: Currently only 'auto' value is supported.
  • KnownBy: Associated action[s] name[s], comma-separated list.

...

Panel
borderStylesolid
titleTmThingComposite
Example

 <ThingModel name="MySensorModel" combines="SensorFacet">

            <SensorModel Name="sensorModel"/>

</ThingModel>



Referenced by:


TmThingComposite

  • Update: Currently only 'auto' value is supported.
  • KnownBy: Associated action[s] name[s], comma-separated list.

...

Panel
borderStylesolid
titleTmThingAdHocComposite
Example
 

<ThingModel name="SensorModel" combines="SensorFacet">

            ...

            <DataModel name="Device">

                   <String name="Name" />

                   <String name="Type" />

            </DataModel>

            ...

</ThingModel>


Referenced by:


Ad-hoc/untyped composite attribute

...

Panel
borderStylesolid
titleTmAction
Example

     <Action Name="PhidgetReadRFIDTagAc" Documentation="Read the Tag Automatically in the vicinity">

        <Workflow Limit="1" Live="1" Timeout="-1">

            <Task name="Main" while="true">

           ...

            </Task>

        </Workflow>

    </Action>


Referenced by:


TQL model action

...

Example
Panel
borderStylesolid
titleCondition


 

Referenced by:

...

Panel
borderStylesolid
titleConditionExpression
Example
 

<Def name="CompanyJanitor" inherits="Employee">

       <And>

              <Constraint target="Employment.BusinnesRole" eq="janitor"/>

              <Constraint target="Employment.Organization" eq="MyCompany"/>

       </And>

</Def>


Referenced by:

...

Panel
borderStylesolid
titleConstraintContent
Example
 

<Def name="PartnerEmployee" inherits="Employee">

       <Constraint target="Employment.Organization" ne="MyCompany"/>

</Def>


Referenced by:

...

Panel
borderStylesolid
titleStandAloneConstraint
Example

 <Def name="Janitor" inherits="Employee">

       <Constraint target="Employment.BusinnesRole" eq="janitor"/>

</Def>


Referenced by:

...

Panel
borderStylesolid
titleNestedConstraint
Example

<Def name="CompanyVIP" inherits="Employee">

       <Or>

            <And>

              <Constraint target="Employment.BusinnesRole" ne=""/>

              <Constraint target="Employment.Organization" eq="MyCompany"/>

           </And>

           <Constraint target="Employment.BusinnesRole" eq="BoardMember"/>

     </Or>

</Def>


Referenced by:

...

Panel
borderStylesolid
titleInlineConstraint
Example
 

<Def name="Manager" inherits="Employee">

          <String name="Employment.BusinnesRole" default="manager" eq="manager" cardinality="1" modifiers="hidden,readonly"/>

 </Def>


Referenced by:

...