Skip to content

Reachability step 1: send request from simulation view#82

Merged
jhbengtsson merged 11 commits intomainfrom
reachability_simulation
Nov 28, 2022
Merged

Reachability step 1: send request from simulation view#82
jhbengtsson merged 11 commits intomainfrom
reachability_simulation

Conversation

@WassawRoki
Copy link
Copy Markdown

@WassawRoki WassawRoki commented Nov 21, 2022

Closes #89, #76.

Clocks and request from other state than initial will come in a later PR (hence the TODOs to mark, where changes are still needed).

Result (yes/no) is shown in pop-up in the bottom of the view. If the state is not reachable, the backend doesn't return anything at all, so at timeout, a pop-up in the bottom of the view states that the query fail, which might be due to the state not being reachable. Highlight of path comes in later version (not part of this PR).

  • ret så vi sender simulation start query med

@EmilieSonne EmilieSonne changed the title We are now able to right click a location in simulation and ask for a reachability check Reachability step 1: send request from simulation view Nov 24, 2022
@EmilieSonne EmilieSonne linked an issue Nov 24, 2022 that may be closed by this pull request
2 tasks
Comment thread src/main/java/ecdar/backend/BackendHelper.java Outdated
Comment thread src/main/java/ecdar/backend/BackendHelper.java
Comment thread src/main/java/ecdar/backend/BackendHelper.java
Copy link
Copy Markdown

@S3JER S3JER left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Check lige mine kommentar, der mangler lidt dokumentation.

Comment thread src/main/java/ecdar/backend/QueryHandler.java Outdated
Comment thread src/main/java/ecdar/presentations/SimLocationPresentation.java
Comment thread src/main/java/ecdar/presentations/SimLocationPresentation.java
Comment thread src/main/java/ecdar/controllers/SimLocationController.java
Comment on lines +95 to +111
private static String getSimulationQueryString() {
var stringBuilder = new StringBuilder();

var appendComponentWithSeparator = false;
for (var componentName:ListOfComponents) {
if (appendComponentWithSeparator){
stringBuilder.append("||" + componentName);
}
else {
stringBuilder.append(componentName);
}
if (!appendComponentWithSeparator) {
appendComponentWithSeparator = true;
}
}
return stringBuilder.toString();
}
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tager I kun højde for parallel composition af to component?
Hvad med conjunction og quotient?

Copy link
Copy Markdown

@EmilieSonne EmilieSonne Nov 25, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ja, det er kun den der fremgår af den grammatik, I sendte til os, og vi kan også kun lave simulation på parallel compositions lige nu. Eller har vi overset noget? :)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Altså, det fungere også både for conjunction og quotient, men hvis I ikke kommer til at lave det, kan i bare resolve denne conversation

@jhbengtsson jhbengtsson merged commit 38c47d6 into main Nov 28, 2022
@jhbengtsson jhbengtsson deleted the reachability_simulation branch November 28, 2022 12:12
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

Successfully merging this pull request may close these issues.

Reachability: send request (13) Reachability: show response (Y/N) (3)

7 participants