[jsdl-wg] [Fwd: new email address]
Stephen McGough
asm at doc.ic.ac.uk
Thu Nov 20 07:32:30 CST 2008
Forwarded for David Meredith as he's having problems with a new email
address.
steve..
-------- Original Message --------
Subject: new email address
Date: Thu, 20 Nov 2008 12:03:45 +0000
From: david meredith <david.meredith at stfc.ac.uk>
To: jsdl-wg-owner at ogf.org
Hi all,
I have been chatting with Steve Pickles who posted the comments related
to the problems with LoopInteger and LoopDouble on the OGF public
comments site: http://www.ogf.org/gf/docs/comment.php?id=282
I think that the following modifications may? hopefully address the
issues (modified schema attached, examples below). Basically:
a) The loopCount attribute now defines the number of loop iterations as
an integer and the cardinality of the loop can easily be retrospected by
subtracting the number of LoopCountExceptions from loopCount.
b) The LoopCountException, rather than defining the actual double
/value/ of the exception (i.e. the value to skip), now selects the loop
iteration values to skip (always integers).
c) In doing this, the previous issues relating to the precision of
double values when identifying exceptions and determining the loop
cardinality is no longer a problem.
Are we due another telephone conference soon to discuss this and the
public comments ?
cheers,
dave
<!-- example 1-->
<!-- loop has cardinality of 8 (loopCount minus number of
LoopCountExceptions)-->
<!-- loop generates: 2, 3, 4, 5, 7, 9, 10, 11 -->
<!-- note missing 6 and 8 (loop count exceptions 5 and 7) -->
<sweep:Sweep>
<sweep:Assignment>
<sweep:DocumentNode>
<sweep:NamespaceBinding
ns="http://schemas.ggf.org/jsdl/2005/11/jsdl-posix" prefix="jsdl-posix" />
<sweep:Match>/*//jsdl-posix:POSIXApplication[1]/jsdl-posix:Argument[1]</sweep:Match>
</sweep:DocumentNode>
<sweepfunc:LoopInteger loopCount="10" start="2" step="1">
<sweepfunc:LoopCountException>5</sweepfunc:LoopCountException>
<sweepfunc:LoopCountException>7</sweepfunc:LoopCountException>
</sweepfunc:LoopInteger>
</sweep:Assignment>
</sweep:Sweep>
<!-- example 2 -->
<!-- loop has cardinality of 7 (loopCount minus number of
LoopCountExceptions)-->
<!-- loop generates: 2.0, 4.0, 10.0, 12.0, 14.0, 16.0, 18.0 -->
<!-- note missing 6.0, 8.0, 20.0 (loop count exceptions 3, 4, 10)-->
<sweep:Sweep>
<sweep:Assignment>
<sweep:DocumentNode>
<sweep:NamespaceBinding
ns="http://schemas.ggf.org/jsdl/2005/11/jsdl-posix" prefix="jsdl-posix" />
<sweep:Match>/*//jsdl-posix:POSIXApplication[1]/jsdl-posix:Argument[1]</sweep:Match>
</sweep:DocumentNode>
<sweepfunc:LoopDouble loopCount="10" start="2.0" step="2.0">
<sweepfunc:LoopCountException>3</sweepfunc:LoopCountException>
<sweepfunc:LoopCountException>4</sweepfunc:LoopCountException>
<sweepfunc:LoopCountException>10</sweepfunc:LoopCountException>
</sweepfunc:LoopDouble>
</sweep:Assignment>
</sweep:Sweep>
--
David Meredith
e-Science / National Grid Service
Science and Technology Facilities Council
Daresbury Laboratory
Warrington
Cheshire
WA4 4AD
Tel: +44 1925 603762
email: david.meredith at stfc.ac.uk
--
------------------------------------------------------------------------
Dr A. Stephen McGough http://www.doc.ic.ac.uk/~asm
------------------------------------------------------------------------
Technical Coordinator, London e-Science Centre, Imperial College London,
Department of Computing, 180 Queen's Gate, London SW7 2BZ, UK
tel: +44 (0)207-594-8409 fax: +44 (0)207-581-8024
------------------------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.ogf.org/pipermail/jsdl-wg/attachments/20081120/29bcb663/attachment.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: newLoopExample1.xml
Type: text/xml
Size: 4129 bytes
Desc: not available
Url : http://www.ogf.org/pipermail/jsdl-wg/attachments/20081120/29bcb663/attachment.xml
-------------- next part --------------
A non-text attachment was scrubbed...
Name: functions.xsd
Type: text/xml
Size: 2573 bytes
Desc: not available
Url : http://www.ogf.org/pipermail/jsdl-wg/attachments/20081120/29bcb663/attachment-0001.xml
More information about the jsdl-wg
mailing list