<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Ok, I thought about using temporal operators. But I think using your
eval()-condition would be more performance-friendly than several
temporal operators.<br>
I will think about your calculation. Thank you! :)<br>
<br>
~Tina<br>
<br>
<blockquote
cite="mid:AANLkTinKckd+KqFqmS2FcTae6bqN7p7sJ79j_JcSNHe+@mail.gmail.com"
type="cite">Given that sA, eA, dB are start time, end time and
duration of event A, we have, for any two events, the interval
[s,e] containing both defined by:<br>
s = min( sA, sB )<br>
e = max( eA, eB ) = max( sA+dA, sB+dB )<br>
<br>
Thus, the condition for A and B happening withing an interval of
duration D is:<br>
e - s <= D<br>
<br>
You can put this expression into an eval() CE.<br>
<br>
-W<br>
<br>
<br>
<div class="gmail_quote">On 13 January 2011 15:45, Tina Vießmann <span
dir="ltr"><<a moz-do-not-send="true"
href="mailto:tviessmann@stud.hs-bremen.de">tviessmann@stud.hs-bremen.de</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid
rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left:
1ex;">Hi,<br>
<br>
I'm trying to find a easy way to express that two events A and
B have to<br>
happen during the same time interval. The events have each a
duration ><br>
0.<br>
<br>
A example condition could be: The event A and B have to happen
during the<br>
same 60 seconds.<br>
For me it includes several possibilites:<br>
* A can start before B and<br>
~ end before B starts<br>
~ end during B<br>
~ end after B ends<br>
* The same can be possible for B<br>
* A and B start/end/both at the same time<br>
In any case the maximum duration from the first start time to
the last end<br>
time is e.g. 60s.<br>
<br>
Is there a easy way to express that. I can only think of
specifying the<br>
several possibilities as conditions.<br>
<br>
Thank you! :)<br>
Tina<br>
<br>
<br>
_______________________________________________<br>
rules-users mailing list<br>
<a moz-do-not-send="true"
href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a moz-do-not-send="true"
href="https://lists.jboss.org/mailman/listinfo/rules-users"
target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</blockquote>
</div>
<br>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
rules-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a>
</pre>
</blockquote>
<br>
</body>
</html>