TCC,有历史记录
TCC, with History
摘要:
现代计算机系统充斥着大量的异步事件。越来越需要一种声明性语言,允许业务用户指定复杂的事件处理规则。这样的规则应该能够关联不同的事件流,检测事件的缺失,例如,应该可以精确地陈述诸如“每七个交易时段,道琼斯连续上涨,并且IBM的股票在此期间比其平均值下跌3%,评估IBM头寸”的规则,“如果500 ms内没有收到读数,则将传感器判定为故障”等。此外,该语言应该以事件驱动的方式有效地实现。我们提出了定时(默认)并发约束,TCC,编程框架作为这样的复杂事件处理的基础。虽然非常丰富,TCC框架从一个瞬间到下一个瞬间“忘记”信息。我们做了两个扩展。首先,我们扩展了TCC模型,将以前时刻的存储作为当前时刻的“过去”信息。这允许使用过去的丰富查询来编写规则。其次,我们表明,许多强大的属性的代理语言可以折叠到查询语言,允许代理和查询被定义为相互递归,建立在RCC \cite{radha-fsttcs05}中描述的直觉逻辑的测试解释。我们表明,这允许查询移动“来回”在过去,例如。{}“如果上一次IBM股票价格在一天内下跌10%,第二天甲骨文的交易量增加了20%以上,请进行审查。“我们为TCC + Histories提供了一个形式化的语义,并建立了一些基本的属性。
英文摘要:
Modern computer systems are awash in a sea of asynchronous events. There is an increasing need for a declarative language that can permit business users to specify complex event-processing rules. Such rules should be able to correlate different event streams, detect absence of events (negative information), permit aggregations over sliding windows, specify dependent sliding windows etc. For instance it should be possible to precisely state a rule such as "Every seventh trading session that DowJones has risen consecutively, and IBM's stock is off 3% over its average in this period, evaluate IBM position", "Declare the sensor as faulty if no reading has been received for 500 ms", etc. Further, the language should be implementable efficiently in an event-driven fashion. We propose the Timed (Default) Concurrent Constraint, TCC, programming framework as a foundation for such complex event processing. While very rich, the TCC framework "forgets" information from one instant to the next. We make two extensions. First, we extend the TCC model to carry the store from previous time instants as "past" information in the current time instant. This permits rules to to be written with rich queries over the past. Second, we show that many of the powerful properties of the agent language can be folded into the query language by permitting agents and queries to be defined mutually recursively, building on the testing interpretation of intuitionistic logic described in RCC \cite{radha-fsttcs05}. We show that this permits queries to move "back and forth" in the past, e.g.{} "Order a review if the last time that IBM stock price dropped by 10% in a day, there was more than 20% increase in trading volume for Oracle the following day." We provide a formal semantics for TCC + Histories and establish some basic properties.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。