This is a static archive of the previous Open Grid Forum GridForge content management system saved from host forge.ogf.org file /sf/wiki/do/viewPage/projects.jsdl-wg/wiki/ParameterSweepExtensionLooping at Sun, 06 Nov 2022 11:48:32 GMT SourceForge : View Wiki Page: ParameterSweepExtensionLooping

Project Home

Tracker

Documents

Tasks

Source Code

Discussions

File Releases

Wiki

Project Admin

JSDL calendar
Search Wiki Pages Project: JSDL-WG     Wiki > ParameterSweepExtensionLooping > View Wiki Page
wiki2012: ParameterSweepExtensionLooping

Looping functionality

References:

xsd:decimal http://www.w3.org/TR/2001/REC-xmlschema-2-20010502/#decimal represents arbitrary precision decimal numbers

xsd:float http://www.w3.org/TR/2001/REC-xmlschema-2-20010502/#float corresponds to the IEEE single-precision 32-bit floating point type [IEEE 754-1985]

xsd:double http://www.w3.org/TR/2001/REC-xmlschema-2-20010502/#double corresponds to IEEE double-precision 64-bit floating point type [IEEE 754-1985]

Early thoughts:

xsd type scientific notation (e.g. 12.78e-2) "INF", "-INF", "NaN" 0 (positive 0), -0 (negative 0)
xsd:float, xsd:double yes yes yes
xsd:decimal no no yes

  • I'd prefer INF, -INF and NaN to be disallowed for the start and end attributes, and in addition 0 and -0 to also be disallowed for the step attribute. Trouble is that I can't find an exclude instruction in XML schema to define this.
  • The float and double would be used to represent any scientific notation value likely to be used. The decimal could be the catch-all for any value non-scientific notation, non-INF, and non-NaN, whether it be integer or real. The xsd:integer (which is xsd:decimal with 0 fractionDigits) has the base type of xsd:decimal.


Float

<xsd:element name="LoopFloat" substitutionGroup="sweep:Function">
  <xsd:complexType>
    <xsd:sequence>
      <xsd:element name="Exception" type="xsd:float"
                   maxOccurs="unbounded" minOccurs="0" />
    </xsd:sequence>

    <xsd:attribute name="start" type="xsd:float" use="required" />
    <xsd:attribute name="end" type="xsd:float" use="required" />
    <xsd:attribute name="step" type="xsd:float" use="required" />
  </xsd:complexType>
</xsd:element>

example:

<LoopFloat start="12.45e-2" end="12.89e-2" step="1e-3" />

12.45e-2 12.55e-2 12.65e-2 12.75e-2 12.85e-2

Double

<xsd:element name="LoopDouble" substitutionGroup="sweep:Function">
  <xsd:complexType>
    <xsd:sequence>
      <xsd:element name="Exception" type="xsd:double"
                   maxOccurs="unbounded" minOccurs="0" />
    </xsd:sequence>

    <xsd:attributeGroup>
      <xsd:attribute name="start" type="xsd:double" use="required" />
      <xsd:attribute name="end" type="xsd:double" use="required" />
      <xsd:attribute name="step" type="xsd:double" use="required" />
    </xsd:attributeGroup>
  </xsd:complexType>
</xsd:element>

example:

<LoopDouble start="0.001" end="0.010" step="0.001">
  <Exception>0.003</Exception>
</LoopDouble>

0.001, 0.002, 0.004, 0.005, 0.006, 0.007, 0.008, 0.009, 0.010

Decimal

<xsd:element name="LoopDecimal" substitutionGroup="sweep:Function">
  <xsd:complexType>
    <xsd:sequence>
      <xsd:element name="Exception" type="xsd:decimal"
                   maxOccurs="unbounded" minOccurs="0" />
    </xsd:sequence>

    <xsd:attributeGroup>
      <xsd:attribute name="start" type="xsd:decimal" use="required" />
      <xsd:attribute name="end" type="xsd:decimal" use="required" />
      <xsd:attribute name="step" type="xsd:decimal" use="required" />
    </xsd:attributeGroup>
  </xsd:complexType>
</xsd:element>

example:

<LoopDecimal start="-12345678901234567890" end="-12345678901234567890.7" step="-0.1">
  <Exception>-12345678901234567890.2</Exception>
  <Exception>-12345678901234567890.4</Exception>
  <Exception>-12345678901234567890.6</Exception>
</LoopDecimal>

-12345678901234567890.0, -12345678901234567890.1, -12345678901234567890.3, -12345678901234567890.5, -12345678901234567890.7
 




The Open Grid Forum Contact Webmaster | Report a problem | GridForge Help
This is a static archive of the previous Open Grid Forum GridForge content management system saved from host forge.ogf.org file /sf/wiki/do/viewPage/projects.jsdl-wg/wiki/ParameterSweepExtensionLooping at Sun, 06 Nov 2022 11:48:35 GMT