学位论文详细信息
Modeling and Reasoning with Multisets and Multirelations in Alloy
Alloy;Multiset;Multirelation;Span
Sun, Peiyuan
University of Waterloo
关键词: Alloy;    Multiset;    Multirelation;    Span;   
Others  :  https://uwspace.uwaterloo.ca/bitstream/10012/11184/7/Sun_Peiyuan.pdf
瑞士|英语
来源: UWSPACE Waterloo Institutional Repository
PDF
【 摘 要 】

Multisets and multirelations arise naturally in modeling; however, most modeling languages either have limited or completely lack support for multisets and multirelations. Alloy, for instance, is a lightweight relational modeling language which provides automatic analysis of models. In Alloy, ordinary sets and relations are the only first-class language semantic constructs; therefore to work with multisets and multirelations, modelers need to invent ad-hoc ways to encode these multiconcepts or rely on a third-party library that provides their implementations, assuming there is such one. In fact, such a library has been missing for Alloy, and implementing a fully functional multiconcepts library is challenging, especially when it is required to encode an algebra of operations over multiconcepts. This thesis presents two sound and practical mathematical formalizations of multiconcepts, namely, index-based and multiplicity-based, which encode multisets and multirelations using only basic concepts such as ordinary sets, total functions and natural numbers. We implement two generic multiconcepts libraries in Alloy based on the corresponding formalizations. Each library has a carefully designed interface and can be seamlessly integrated into existing relational models. We also perform an empirical evaluation on both implementations; the result shows multiplicity-based encoding is more scalable in terms of performance; thus, it is more preferable in practice.

【 预 览 】
附件列表
Files Size Format View
Modeling and Reasoning with Multisets and Multirelations in Alloy 829KB PDF download
  文献评价指标  
  下载次数:17次 浏览次数:16次