Created
May 21, 2020 19:12
-
-
Save note/e2c79ab44d445faf3fc6f1977e4ce397 to your computer and use it in GitHub Desktop.
Alloy tutorial: Static modelling
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Wheel: {Wheel0, Wheel1, Wheel2} | |
sig Wheel {} | |
// Bicycle: {Bicycle0, Bicycle1, Bicycle2} | |
sig Bicycle { | |
// Bicycle.front: { | |
// Bicycle0 -> Wheel2, | |
// Bicycle1 -> Wheel2, | |
// Bicycle2 -> Wheel1 | |
// } | |
front: Wheel, | |
rear: Wheel | |
} | |
run {} for 3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment