requirements - Type Error in Alloy specification -


in requirements engineering (2007) article, "requirement progression in problem frames", there worked example on traffic lights problem have transcribed alloy editor. unfortunately, following error when testing code.

starting solver...

a type error has occurred: must set or relation. instead, has following possible type(s): {primitiveboolean}

the error triggered following predicate:

pred lightunitbreadcrumb [] {     t: time |          ngobserve [t] <=>              odd [ngpulse [t]] ,         sgobserve [t] <=>              odd [sgpulse [t]] } 

referencing ngpulse predicate below:

sig ngp, sgp, nrp, srp in time {} pred ngpulse [t: time] {t in ngp} pred sgpulse [t: time] {t in sgp} pred nrpulse [t: time] {t in nrp} pred srpulse [t: time] {t in srp} 

exactly. explain on page 137 of book why boolean not type in alloy.


Comments

Popular posts from this blog

python - No exponential form of the z-axis in matplotlib-3D-plots -

php - Best Light server (Linux + Web server + Database) for Raspberry Pi -

c# - "Newtonsoft.Json.JsonSerializationException unable to find constructor to use for types" error when deserializing class -