GithubHelp home page GithubHelp logo

stslib's People

Contributors

alberth avatar cma avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

stslib's Issues

Syntesized supervisor contains deadlock

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)
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.