Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Description of complex requirements #27

Closed
baobao1225 opened this issue Sep 8, 2021 · 12 comments
Closed

Description of complex requirements #27

baobao1225 opened this issue Sep 8, 2021 · 12 comments

Comments

@baobao1225
Copy link

Hello,Recently, I have been using FRET to describe some of the requirments, and I am facing some difficulties.The simple description is the following.When Compressor is started, the signal needs to stay off for a period of time and then enter the toggled state. The toggled state means that signal turns on and false alternates continuously.We can assume that compressor is the input and signal is the output. I want to ask if there is a description of this requirement.The following picture is the concrete description.The time can be any number.
Requirement

@artimid
Copy link
Contributor

artimid commented Sep 8, 2021 via email

@baobao1225
Copy link
Author

Thank you,I have another question about the semantic of "when",for the FRET requirement "when signal the system shall immediately satisfy response",assumed that the first tick signal is false,the second tick signal is true,the third tick the signal is true,the response must be true at the third tick?

@artimid
Copy link
Contributor

artimid commented Sep 9, 2021 via email

@baobao1225
Copy link
Author

Thanks a lot,I used the simulator,but I am confused that the third point REQ is falsed
image

@artimid
Copy link
Contributor

artimid commented Sep 9, 2021 via email

@baobao1225
Copy link
Author

Thank you a lot,I understand your meaning,I am happy to talk with you.

@baobao1225
Copy link
Author

image
hello,I check the requirments,but I am confused about the result.In my opinion,The requirments describes the toggled behavior,but there is a FTP that it does not appear in the requirment.

@andreaskatis
Copy link
Contributor

Hello,

Could you share with us the variable mapping settings for the component that contains these requirements?

Thank you,

Andreas

@baobao1225
Copy link
Author

image
Thank you very much

1 similar comment
@baobao1225
Copy link
Author

image
Thank you very much

@andreaskatis
Copy link
Contributor

It is a bit too late here for me to play around with this example. In the meantime, since I see that "Compressor" is an input, I would suggest that you try and use it in the "condition" part of the FRETish statement, rather than "scope".

As for FTP, it stands for "first time point". It is essentially an internal flag whose truth designates whether we are in an initial system state, or not.

@baobao1225
Copy link
Author

Thank you a lot,I change the requirments.And then they are sucessful.
image
condition,Compressor are input,and fan ,fan_toggled are output

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants