Giter Site home page Giter Site logo

Description of Flashing Light about fret HOT 3 CLOSED

nasa-sw-vnv avatar nasa-sw-vnv commented on September 23, 2024
Description of Flashing Light

from fret.

Comments (3)

tpressburger avatar tpressburger commented on September 23, 2024

Thank you for your interesting scenario! I think you have formulated correctly in your first requirement entering and leaving toggling mode. I think you understand the semantics of unless. However, as there should always be two lamps off, that means that two of the last three of your requirements will be applicable, hence specifying that more than one lamp be on at the same time. Also, saying "after 1 second !L3" doesn't preclude L3 turning back on after two seconds, nor does it preclude L2 or L1 also being on at the same time for 1 second.

So I think a solution is the following (I simplified the example to not specify toggling mode):

  1. The sys shall immediately satisfy L1 & !L2 & !L3
  2. Upon L1 the sys shall for 1 sec satisfy L1 & !L2 & !L3
  3. Upon L2 the sys shall for 1 sec satisfy L2 & !L1 & !L3
  4. Upon L3 the sys shall for 1 sec satisfy L3 & !L1 & !L2
  5. Upon L1 the sys shall after 1 sec satisfy L2
  6. Upon L2 the sys shall after 1 sec satisfy L3
  7. Upon L3 the sys shall after 1 sec satisfy L1

I like using the word "upon" because it implies being triggered by the proposition becoming true from false.

from fret.

leesoons avatar leesoons commented on September 23, 2024

thanks a lot!

from fret.

anmavrid avatar anmavrid commented on September 23, 2024

I am closing this issue since the question has been answered.

from fret.

Related Issues (20)

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.