question about system model assignment: default variable on yakindu

0 votes
asked Apr 15, 2022 in System Modelling by Ai_Yoshida (30 points)  

Dear Professor

I'm doing system modeling mandatory assignment, and I have several question regarding to that. My assignment is "chessClock". I have some trouble during create my task on Yakindu.

  1. Is it allowed to add interface on my own?
    There are interface Buttons, interface Beeper, and interface Display originally in my assignment on "homework.sct" originally.
    There are one place "internal". However, it seems necessary to set time variable to the interface, not internal.
    Could you please give me advice what should I put to the internal space, and it is allowed to add interface by my own?

  2. Why whiteDisplay and blackDisplay's default value is -1?
    According to the instruction, I need to give non-negative [min: sec] to the whiteDisplay and blackDisplay. However, their default value is -1. How can I set non-negative value to these? Should I set these to the "internal" space??

Thank you so much for your cooperation in advance.

Sincerely yours,
Ai Yoshida

1 Answer

0 votes
answered Apr 15, 2022 by AdamZsofi (165 points)  

Hi!

Please do not modify the non-internal part of the interface as that will result with an error when you submit your homework. (Just as the comment there says "Interfaces of the chess clock Do not modify!".

If you need any additional variables, you can create as many as you want in the internal part. Why would it be necessary to add your variable to the interface part?

The default value is -1, but you can change the value using actions or when entering/exiting states etc. With other words, create a model that changes the value according to your specification while the chess clock is on and working. But do not change the default -1 value.

Best,
Zsófi

commented Apr 16, 2022 by Ai_Yoshida (30 points)  
Dear Professor Zsófi

Thank you so much for your reply!

Sincerely yours,
Ai Yoshida
...