Comments (9)
Hello @SoftPro,
Let me see if I understand this correctly. So you have variables in the FRETish requirements that do not correspond to model variables. Why are these variables used in the requirements? Are they auxiliary expressions of model variables?
from fret.
Hello, @anmavrid
I think my previous expression may not be very clear. You can take a look at this example.
Define the sub mode interval under a mode, and then define the specification based on the sub mode interval, but in fact, the sub mode is not defined in the system.
in mode A the sys shall until conditionA satisfy modeB.
in modeB unless P the sys shall after 1seconds satisfy P.
in modeB when P the sys shall after 1 seconds satisfy !P.
But modelB does not exist in the model.
from fret.
Hello @SoftPro,
Thanks for the example. I see that you define modeB as a submode of A.
Do I understand correctly that modeB should be true from the beginning of mode A until conditionA becomes true? So, essentially this is what "sets" modeB in requirement 1, so that modeB can be used in the other 2 requirements although it does not exist in the model.
from fret.
Hello, @anmavrid
Yes, then if these requirements are verified using cocosim on simulink, is it impossible to verify these properties because the modeB variable does not exist in the model.
from fret.
Got it! You can assign the modeB variable through the variable mapping in FRET (in the analysis portal). Let me work on your example and show you how to do that. I will get back to you.
from fret.
Hi @SoftPro,
This is an excellent question. There are a couple of ways you can do that depending on whether you want to perform realizability analysis in FRET or verification of a Simulink model with CoCoSim. What would you like to do?
-
For realizability analysis:
You can declare requirement 1 (in mode A the sys shall until conditionA satisfy modeB) as an assumption. You can do that by including the word assumption in the requirement ID (FRET requirement editor). In this case modeB can be assigned as controlled (output) variable in the FRET analysis portal. -
For analysis with CoCoSim and for realizability analysis (but this solution might be more challenging:
You can assign modeB as an internal variable (through the FRET analysis portal) and then provide the definition of the variable through "variable assignment" in the analysis portal. The definition of the variable would be something similar to the first requirement:
modeB = in mode A and until conditionA
Note that this is a temporal expression and thus, it might be challenging to express.
Please let us know if you have questions. Our team is here to support you! @andreaskatis @tpressburger
Thank you,
Anastasia
from fret.
Hello, @anmavrid
Thank you very much for your answer. What I want is the second solution. The problem can be solved through intermediate variables.
Recently, I was studying how to convert fresh language into cocospec, but I found few papers. I don't know whether I can provide some more detailed information.I sent you an email a few days ago. If you can provide relevant information, I will be very grateful. If not, it's all right.
from fret.
Absolutely - I am sending you more info.
Sorry, I missed your email because it was sent to my private gmail. For quicker communication please email us at: [email protected], [email protected], and [email protected].
from fret.
I am closing this issue because the discussion has transferred.
from fret.
Related Issues (20)
- Variable Mapping Import HOT 5
- How to combine fret and cocosim to a fret-cocosim workflow? HOT 17
- Description of Flashing Light HOT 3
- Difference between 'at the next time point' and 'for 1 time unit' HOT 4
- How to understand the result of diagnose? HOT 16
- Unsuccessful Installation HOT 3
- Error "incompatible architecture (have (x86_64), need (arm64e))" trying to start FRET on an M1 machine HOT 3
- Export requirements status field in json format HOT 4
- Electron GPU initialization fails on Ubuntu 22.04 HOT 6
- could not install fret HOT 5
- Realizability GUI issue HOT 5
- Broken link in docs HOT 2
- Error on Install: regex.h no such file or directory HOT 3
- Installation on Mac M1 Monterey throwing webpack/native dependency errors HOT 8
- Bug: All Caps "Immediately" keyword causes blank screen HOT 4
- Unable to run executable built with Docker on Ubuntu 22.04 HOT 2
- Requirement Description Text Box Stops Various Keys (and highlighting) from Working HOT 4
- Trailing bit of requirement after a colon HOT 2
- Search Bar Doesn't Respond to Enter Key HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fret.