I haven't seen it personally, but I can imagine a situation where it would be useful. Say you're reading temperatures, with readings retracted after a given time. If you wanted a rule that meant "find a reading above 10 if there's never been a reading above 20" you'd use the pattern below. Maybe a better example would be alerting aircraft delays at an airport. This wasn't a requirement for the system I worked on, but say you wanted to mark all delays over a given threshold at one level of severity, but bump all delays to another level of severity if one goes over another threshold. (Meaning, "Ger yer house in order now!") That would use this pattern as well: when d: Delay(duration > 10) not Delay(duration >
20) then d.setSeverity("meh"); end when d: Delay(duration > 10) Delay(duration >= 20) then d.setSeverity("DOH!"); end --- On Thu, 3/24/11, Wolfgang Laun <wolfgang.laun@gmail.com> wrote:
|