<?xml version="1.0"?>
<Class xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:noNamespaceSchemaLocation="CoreSchema-test.xsd"
       xsi:schemaLocation="http://www.w3.org/1999/xlink xlink-schema.xsd"
       coreSchemaVersionMajor="0"
       coreSchemaVersionMinor="1"
       classAbsoluteVersion="0">

  <ClassDefinition class-id="2">
    <name>IntegraModule</name>
    <parent title="Class" 
            xlinktype="simple" 
            href="Null" 
            role="Specification" 
            show="embed" />
    <description>A base class for Integra modules .</description>
    <documentation title="Documentation of IntegraModule class." 
                   xlinktype="simple" 
                   href="IntegraModuleDoc.xml"
                   role="Documentation" 
                   show="embed" />
    <tag>module</tag>
    <attribute id="cd.0">
      <name>name</name>
	  <description>The module instance name</description>
      <type>ntgString</type>
    </attribute>
    <attribute id="cd.1">
	  <name>active</name>
	  <description>The module active status.</description>
      <type>ntgBool</type>
    </attribute>
    <attribute id="cd.2">
	  <name>inputs</name>
	  <description>Control or get the number of inputs through this address.</description>
      <type>ntgInt</type>
    </attribute>
    <attribute id="cd.3">
	  <name>outputs</name>
	  <description>Control or get the number of outputs through this address.</description>
      <type>ntgInt</type>
    </attribute>
    <attribute id="cd.4">
	  <name>connectedTo</name>
	  <description>Reference to the connected modules.</description>
      <type>ntgInt</type>
    </attribute>
  </ClassDefinition>

  <ModuleDefinition>
    <attribute id="md.0">
      <unit>text</unit>
      <description>Instance name</description>
      <default>Null</default>
    </attribute>
    <attribute id="md.1">
      <unit>Boolean</unit>
      <description>Status</description>
      <minimum>0</minimum>
      <maximum>1</maximum>
      <default>1</default>
    </attribute>
    <attribute id="md.2">
      <unit>none</unit>
      <description>Inputs</description>
      <minimum>0</minimum>
      <maximum>INF</maximum>
      <default>1</default>
    </attribute>
    <attribute id="md.3">
      <unit>none</unit>
      <description>Outputs</description>
      <minimum>0</minimum>
      <maximum>INF</maximum>
      <default>1</default>
    </attribute>
    <attribute id="md.4">
      <unit>none</unit>
      <description>Connected module IDs</description>
      <minimum>none</minimum>
      <maximum>none</maximum>
      <default>none</default>
    </attribute>
    <moduleIsCore value="true"/>
  </ModuleDefinition>
</Class>
