简体   繁体   English

sig是抽象的,但合金分析仪是它的一个实例

[英]sig is abstract, but alloy analyzer make an instance of it

I have the following very simple model in Alloy: 我在Alloy中具有以下非常简单的模型:

abstract sig Object {}
pred show(){}
run show for 5

when I execute this model, Why alloy analyzer still makes an instance of Object while it is defined to be abstract! 当我执行此模型时,为什么合金分析仪在定义为抽象的情况下仍然仍然创建Object的实例!

An abstract signature can contain atoms so long as it has no subsignatures. 只要没有子签名,抽象签名就可以包含原子。 This is designed to allow you to build and animate a model incrementally, so you can mark a signature as abstract with the expectation that subsignatures will be introduced later. 这样做的目的是允许您逐步构建和制作模型动画,因此可以将签名标记为抽象,并期望以后会引入子签名。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM