XTCE 1.2 RTF Avatar
  1. OMG Issue

XTCE12 — Move ValidRangeAppliesToCalibrated Attribute

  • Key: XTCE12-112
  • Legacy Issue Number: 14477
  • Status: closed  
  • Source: NASA ( Mr. James Kevin Rice)
  • Summary:

    Description Kevin Rice 2007-10-22 21:53:45 BST
    ValidRangeAppliesToCalibrated should be moved to ValidRange element. Right now
    this attribute is in the main element for the datatype but should probably be
    moved to a specific element to which it refers.

  • Reported: XTCE 1.1 — Thu, 17 Sep 2009 04:00 GMT
  • Disposition: Resolved — XTCE 1.2
  • Disposition Summary:

    Accept that @validRangeAppliesToCalibrated is misplaced

    The attribute @validRangeAppliesToCalibrated only makes sense where there is a ValidRange element and this element is currently only defined for IntegerDataType and FloatDataType. Accept the proposal to relocate this attribute to the element for which it pertains.

    This takes changes to first remove the attribute from the NumericDataType type definition. The attribute line shown below is to be deleted:

    <complexType name="NumericDataType">
    ...
    <attribute name="validRangeAppliesToCalibrated" type="boolean" default="true"/>
    </complexType>

    Then this attribute needs to be added to the types IntegerDataType and FloatDataType. These are shown below. Some content removed in favor of ellipses for clarity.

    <complexType name="FloatDataType">
    ...
    <complexContent>
    <extension base="xtce:NumericDataType">
    <sequence>
    <element name="ValidRange" minOccurs="0">
    ...
    <complexType>
    <complexContent>
    <extension base="xtce:FloatRangeType">
    <attribute name="validRangeAppliesToCalibrated" type="boolean" default="true"/>
    </extension>
    </complexContent>
    </complexType>
    </element>
    </sequence>
    ...
    </extension>
    </complexContent>
    </complexType>

    <complexType name="IntegerDataType">
    ...
    <complexContent>
    <extension base="xtce:NumericDataType">
    <sequence>
    <element name="ValidRange" minOccurs="0">
    ...
    <complexType>
    <complexContent>
    <extension base="xtce:IntegerRangeType">
    <attribute name="validRangeAppliesToCalibrated" type="boolean" default="true"/>
    </extension>
    </complexContent>
    </complexType>
    </element>
    </sequence>
    ...
    </extension>
    </complexContent>
    </complexType>

  • Updated: Tue, 10 Jul 2018 14:22 GMT