chuanma / stslib Goto Github PK
View Code? Open in Web Editor NEWBDD-based State Tree Structure Library to help you learn STS
BDD-based State Tree Structure Library to help you learn STS
I wanted an easier way to build the application, so I added a toplevel makefile and changed the others a bit
Consider the STS model and specifications below. It consists of a car window control. The motor can move up and down, and the system has two sensors. The sensors can be On(Aan) and Off(Uit).
The motor may only start to move up (down) when the maximally down (up) sensor is on. The motor may only stop if the motor is moving down (up) and the maximally down (up) sensor is on.
The generated state-space contains a deadlock location:
Both sensors are On (Aan) and the motor is Stopped. This location is not marked. There are no outgoing transitions.
STS-file:
root = CarWin_Simple
{
CarWin_Simple = AND {Motor, UpSensor, DownSensor}
Motor = OR {Stopped, MovingDown, MovingUp}
UpSensor = OR {Off, On}
DownSensor = OR {Uit, Aan}
}
Motor
{motorStop, motorMoveUp, motorMoveDown}
{upSOn, downSOff, upSOff, downSOn}
{
[Stopped motorMoveDown MovingDown]
[Stopped motorMoveUp MovingUp]
[MovingDown downSOn MovingDown]
[MovingDown motorMoveUp MovingUp]
[MovingDown motorStop Stopped]
[MovingDown upSOff MovingDown]
[MovingUp downSOff MovingUp]
[MovingUp motorMoveDown MovingDown]
[MovingUp motorStop Stopped]
[MovingUp upSOn MovingUp]
}
UpSensor
{}
{upSOn, upSOff}
{
[Off upSOn On]
[On upSOff Off]
}
DownSensor
{}
{downSOff, downSOn}
{
[Uit downSOn Aan]
[Aan downSOff Uit]
}
{Stopped, Off, Aan}
{{Stopped, Off, Uit}}
{}
SPEC file:
{
}
{
({MovingDown, Uit}, motorStop)
({MovingUp, Off}, motorStop)
({Off, Stopped}, motorStop)
({Uit, Stopped}, motorStop)
({Aan}, motorMoveDown)
({On}, motorMoveUp)
({Stopped}, motorStop)
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.