Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
202 commits
Select commit Hold shift + click to select a range
d102d01
WIP: Merging Ecdar 2.2 simulator into main
Nielswps Jul 12, 2022
a5b558c
WIP: Compiling system with functionalities from Main working (simulat…
Nielswps Jul 13, 2022
e0a5109
WIP: Design updated for simulator and side panes logic/naming updated…
Nielswps Jul 13, 2022
7319c9b
WIP: ProtoBuf messages updated and implementation of these into the G…
Nielswps Jul 13, 2022
260dd22
Minor clean up
Nielswps Jul 13, 2022
e084250
WIP: Spacing for trace and transition headers added
Nielswps Jul 13, 2022
14e6631
WIP: BackendDriver usage for simulation started
Nielswps Jul 14, 2022
8a88c62
WIP: Components can be shown within the simulator
Nielswps Jul 14, 2022
a22f559
ProtoBuf messages updated and no longer used messages commented out o…
Nielswps Jul 15, 2022
4f07556
TestFX added and protos updated
Nielswps Jul 15, 2022
e7d6f93
JUnit5 upgrade
Nielswps Jul 15, 2022
17edbc6
Comment updated in preparation for query implementation in simulator …
Nielswps Aug 9, 2022
7a9a04e
WIP: Toggle for GUI mode added (sizing of toggle not working)
Nielswps Aug 19, 2022
49d216f
WIP: Dialog for initializing simulation added
Nielswps Aug 22, 2022
848fc69
Show tooltip when query was unsuccessful
APaludan Sep 22, 2022
28fb8f7
replacement af >= <= med deres unicode
jhbengtsson Sep 22, 2022
0086c97
Modify getter of query, such that it complies with the backend expect…
EmilieSonne Sep 22, 2022
4ded5e7
Refinement symbol replaced with unicode in dropdown
jhbengtsson Sep 22, 2022
b0028ec
fix typo
APaludan Sep 26, 2022
a1bed78
unittest af getQuery();
jhbengtsson Sep 26, 2022
03aac31
changeRefinementSymbols added to display >= and <= correctly
jhbengtsson Sep 29, 2022
4238fb6
refactoring
APaludan Sep 30, 2022
6297e2e
ikke længere i en funktion men direkte i changelistener
jhbengtsson Oct 3, 2022
4ed3820
Merge pull request #26 from Ecdar-SW5/error-messages
APaludan Oct 3, 2022
568df22
to static metoder på query.java til at replace refinement og unicode …
jhbengtsson Oct 5, 2022
2adb417
Merge pull request #22 from Ecdar-SW5/ValidateChangeQueryText
jhbengtsson Oct 5, 2022
5e25f84
Update QueryPresentation.fxml
WassawRoki Oct 5, 2022
4a95a24
center query icons
APaludan Oct 5, 2022
87e6bc9
Merge pull request #30 from Ecdar-SW5/21-5-width-of-query-symbolicon-…
Ibra4i Oct 5, 2022
baa1b68
When ENTER is pressed, we check if a query type has been selected bef…
EmilieSonne Oct 5, 2022
2b3d396
Simulator merge
Nielswps Oct 11, 2022
8149c93
Simulator (#35)
Nielswps Oct 13, 2022
e46356b
WIP: ''Fix'' to allow for compilation
Nielswps Oct 13, 2022
212d215
Merge remote-tracking branch 'SW5/5-20-simulation-and-debugging' into…
Nielswps Oct 13, 2022
1775466
Merge branch 'Ecdar-SW5-5-20-simulation-and-debugging' into simulator
Nielswps Oct 13, 2022
9a76f3a
Merge pull request #36 from Nielswps/simulator
jhbengtsson Oct 13, 2022
c2634a3
align with condition for disabling action button
EmilieSonne Oct 13, 2022
a824223
Hide generated component tab if there are no generated components (#31)
jhbengtsson Oct 13, 2022
1695dd5
Merge pull request #33 from Ecdar-SW5/19-it-should-not-be-possible-to…
jhbengtsson Oct 14, 2022
d92fe7d
first try
WassawRoki Oct 25, 2022
9dcbd83
Update .gitmodules
APaludan Oct 25, 2022
bcc3fce
send query requests with new grpc protocol
APaludan Oct 25, 2022
a8a9846
more work on grpc protocol
APaludan Oct 27, 2022
f99bd9f
The popup will no longer be place outside the window
WassawRoki Oct 27, 2022
852c024
more simulation work
APaludan Oct 28, 2022
e07c6f3
Update QueryPresentation.java
WassawRoki Oct 28, 2022
6bb427a
WIP: Merge started - Backend communication failes due to missing Igno…
Nielswps Nov 1, 2022
011c89c
Moved SimulationHandler
Nielswps Nov 1, 2022
622dbb4
getComponentsInfoBuilder changed to require string instead of query t…
Nielswps Nov 1, 2022
2a4a213
Merge pull request #45 from Nielswps/be_refac-sw5-merge
APaludan Nov 3, 2022
808652d
We might have it
WassawRoki Nov 3, 2022
a8bfef6
Clena up
WassawRoki Nov 3, 2022
a2828cd
WIP - Consume state in failing query
Sigurd00 Nov 3, 2022
a81776c
Merge pull request #43 from Ecdar-SW5/querry-dropdown-scroolable
WassawRoki Nov 3, 2022
050ba26
review fixes
WassawRoki Nov 3, 2022
0b8e3c3
initialize sim
APaludan Nov 3, 2022
e00cfad
det virker en lille smule nu
APaludan Nov 4, 2022
5a8c2e1
Merge pull request #52 from Ecdar-SW5/Visual-part-of-simu
WassawRoki Nov 4, 2022
464e4df
Update SimulationHandler.java
APaludan Nov 4, 2022
aec2144
Now sets failing location for all locations in the response
Sigurd00 Nov 4, 2022
0fe1a53
Merge branch '5-20-simulation-and-debugging' into new-grpc-protocol
jhbengtsson Nov 4, 2022
06a92be
Merge pull request #56 from Ecdar-SW5/new-grpc-protocol
jhbengtsson Nov 4, 2022
bbcc2ee
Variante, nickname sign replacenment
Ibra4i Oct 28, 2022
b8c9e5e
Re-replace unicode to <= and >= before serializing
EmilieSonne Oct 28, 2022
2610d4f
Replace Signes to guard fields
Ibra4i Nov 4, 2022
820e900
lav static class to refactor code (using two methods only)
EmilieSonne Nov 4, 2022
60d9856
Use StringHelper for queries
EmilieSonne Nov 4, 2022
32cb668
Refacorizing Guard/Invarient code
Ibra4i Nov 4, 2022
4282b1a
Ooops!
Ibra4i Nov 4, 2022
3af1435
StringHelperTest
Ibra4i Nov 4, 2022
c6b8485
Parameterized test
EmilieSonne Nov 4, 2022
2c3a197
Parameterized test af convert unicode to symbol
EmilieSonne Nov 4, 2022
629affb
minor fixes for PR
EmilieSonne Nov 4, 2022
02e3d5b
Deleted
Ibra4i Nov 4, 2022
b08d731
Make parameterized tests run with gradle
mads256h Nov 7, 2022
82f2969
Paint locations red on failure response.
Sigurd00 Nov 4, 2022
bcab567
Reset color and failing state on new query.
Sigurd00 Nov 7, 2022
37457e3
displays failure message, still needs component name
Nov 7, 2022
550758a
Fixed java.util.ConcurrentModificationException
Sigurd00 Nov 7, 2022
02e6422
Modified build.gradle, fixes java.lang.illegalAccessError
Nov 7, 2022
9c50f14
Revert "Modified build.gradle, fixes java.lang.illegalAccessError"
Nov 7, 2022
0f6f498
Remove unused imports and fields
Sigurd00 Nov 7, 2022
b1b90bc
QueryPanel Checkmark enabled in View Dropdown
VictorDore Nov 8, 2022
f223e71
Documentation for public methods
Sigurd00 Nov 8, 2022
e30c77a
Change get for each response
Sigurd00 Nov 8, 2022
6b21244
Merge pull request #64 from Ecdar-SW5/querypanel-check
VictorDore Nov 8, 2022
15866b5
Initial work on painting failing actions
Sigurd00 Nov 8, 2022
a39b1af
Refactor observer so it is added in the edge presentation.
Sigurd00 Nov 9, 2022
5a5e6a4
Red replaced by Lime in enabled colors
VictorDore Nov 9, 2022
7552cdf
Merge pull request #67 from Ecdar-SW5/remove-red
VictorDore Nov 9, 2022
1df55c6
Merge pull request #55 from Ecdar-SW5/SignsReplacement
APaludan Nov 10, 2022
dda9acf
Set color back to component color when action doesnt fail. Other cleanup
Sigurd00 Nov 10, 2022
d327874
Fix comment
Sigurd00 Nov 10, 2022
f61d618
cloning
WassawRoki Nov 10, 2022
ae1c02c
bingbong
WassawRoki Nov 10, 2022
5c64f42
Consume correct response
Sigurd00 Nov 10, 2022
64197b5
Keep red color when selecting nails. Keep red color when swapping com…
Sigurd00 Nov 15, 2022
a2533aa
Merge branch 'main' into new-grpc-protocol
APaludan Nov 16, 2022
6abd4a6
fix build error
APaludan Nov 16, 2022
43854b7
fix test
APaludan Nov 16, 2022
639d24b
fix test fr
APaludan Nov 17, 2022
0db2ea2
PR changes
Dolmer1 Nov 17, 2022
791a154
Merge branch 'new-grpc-protocol' of https://github.com/Ecdar-SW5/Ecda…
Dolmer1 Nov 17, 2022
ee8ff14
Merge pull request #73 from Ecdar-SW5/Simu
WassawRoki Nov 17, 2022
36f559f
Update .gitmodules
APaludan Nov 17, 2022
8f0c405
maybe github checks works now?
APaludan Nov 17, 2022
d1b7b94
deleted variable that is never used
Dolmer1 Nov 17, 2022
4a6729c
Merge branch 'new-grpc-protocol' of https://github.com/Ecdar-SW5/Ecda…
Dolmer1 Nov 17, 2022
f2fc61c
Update build.yml
APaludan Nov 17, 2022
c1d0e59
Merge pull request #74 from Ecdar-SW5/APaludan-patch-1
APaludan Nov 17, 2022
caa80a9
Update SimulationTest.java
APaludan Nov 17, 2022
874f4e2
remove unused imports
APaludan Nov 18, 2022
51fd6ec
edit comment
APaludan Nov 18, 2022
36d48e4
Merge pull request #69 from Ecdar-SW5/new-grpc-protocol
APaludan Nov 18, 2022
c83b4ed
Merge branch 'main' into paint-failing-location
Sigurd00 Nov 18, 2022
a13aa70
Merge pull request #61 from Ecdar-SW5/FailureMessage-In-Modal
Sigurd00 Nov 18, 2022
f81f68b
Merge branch 'main' into paint-failing-action
Sigurd00 Nov 18, 2022
44a435d
Merge pull request #58 from Ecdar-SW5/paint-failing-location
Sigurd00 Nov 18, 2022
067f700
Merge branch 'main' into paint-failing-action
Sigurd00 Nov 18, 2022
080597d
small changes after merge
Sigurd00 Nov 18, 2022
f63033a
Update submodule
Sigurd00 Nov 18, 2022
5ed4439
Implemented specific component in consumer
Sigurd00 Nov 21, 2022
57a3759
Merge pull request #65 from Ecdar-SW5/paint-failing-action
Sigurd00 Nov 21, 2022
b325036
Merge branch 'main' into 5-20-simulation-and-debugging
WassawRoki Nov 21, 2022
27a8b93
fixed
WassawRoki Nov 21, 2022
dd6179d
Update Component.java
jhbengtsson Nov 21, 2022
bccc37d
Update SimulatorController.java
jhbengtsson Nov 21, 2022
e3b6a39
Remove unused imports
Sigurd00 Nov 21, 2022
f04ec3a
It works
WassawRoki Nov 21, 2022
ea36ec8
Change build.gradle file. Surely it works now (#66)
Sigurd00 Nov 21, 2022
2ce8dca
reachability check på én location i sim med flere components. mangler…
EmilieSonne Nov 23, 2022
1c05055
et lille skriv
seba6505 Nov 23, 2022
2b66254
Merge pull request #78 from Ecdar-SW5/5-20-simulation-and-debugging
WassawRoki Nov 24, 2022
1902331
Added fields for signaturearrow I/O
HTHNLNDN Nov 24, 2022
ec2243b
Merge pull request #93 from Ecdar-SW5/Consume-error-in-GUI-for-compon…
HTHNLNDN Nov 24, 2022
507c57e
showtoast based in reachability response status
jhbengtsson Nov 24, 2022
8365a17
panting faling inputs based on label
seba6505 Nov 24, 2022
5ca2d3f
fixed error
seba6505 Nov 24, 2022
369074b
test and refactoring of getLocationReachableQuery, and some minor cha…
EmilieSonne Nov 24, 2022
d114609
showtoast messages changed
jhbengtsson Nov 24, 2022
32dbcb1
Merge pull request #94 from Ecdar-SW5/76-show-reachability-response-a…
jhbengtsson Nov 24, 2022
2f5ddc0
renamed variable
Dolmer1 Nov 24, 2022
02b447e
Improve readability
EmilieSonne Nov 25, 2022
7a169bf
ændret så vi ikke konverterer til string men bruger metoden til at se…
jhbengtsson Nov 25, 2022
2294096
docs
jhbengtsson Nov 25, 2022
a12a403
docs
jhbengtsson Nov 25, 2022
38c47d6
Merge pull request #82 from Ecdar-SW5/reachability_simulation
jhbengtsson Nov 28, 2022
1aa97e9
slette nogle ting
seba6505 Nov 30, 2022
6bec940
Updated QueryHandler to handle new gRPC values
HTHNLNDN Nov 30, 2022
e57fbf7
Reachability: send request with startSimulation query as input (#104)
EmilieSonne Nov 30, 2022
bb2521a
Simulation logic (#81)
EmilieSonne Nov 30, 2022
bc25107
somehow works
seba6505 Dec 1, 2022
14bf97e
update handleQueryResponse to support new protos
APaludan Dec 1, 2022
6333fb7
added a radio button connected
Casper-NS Nov 29, 2022
37a15cf
fixed a mistake for default j-ecdar
Casper-NS Nov 29, 2022
78c249d
Made the multithreading work
Casper-NS Nov 30, 2022
e2a1873
renamed a parameter
Casper-NS Dec 1, 2022
b81cd27
Added a failed IO strings to component, and match them with the current
HTHNLNDN Dec 2, 2022
0a6f3d3
Merge branch 'main' into Consume-error-in-GUI-for-component
HTHNLNDN Dec 2, 2022
a62caed
Update QueryHandler.java
APaludan Dec 2, 2022
96f1060
Merge pull request #111 from Ecdar-SW5/new-protos
HTHNLNDN Dec 6, 2022
6bc26f4
Merge branch 'main' into Consume-error-in-GUI-for-component
HTHNLNDN Dec 6, 2022
f31c1fa
Fixed for new main and proto
HTHNLNDN Dec 6, 2022
2726e8c
works when clock reduction is disabledisaebeld
seba6505 Dec 6, 2022
6d9c828
Merge pull request #105 from Ecdar-SW5/group16-threadsafe-engine-option
Casper-NS Dec 6, 2022
df4e18c
Made coloring consistent across components, added checks for only f…
seba6505 Dec 6, 2022
2030cde
Added check for specific components
seba6505 Dec 6, 2022
1ec7774
så vi ikke glemmer den :)
APaludan Dec 6, 2022
c247b64
Update src/main/java/ecdar/backend/QueryHandler.java
VictorDore Dec 6, 2022
697d232
Merge pull request #109 from Ecdar-SW5/Consume-error-in-GUI-for-compo…
VictorDore Dec 7, 2022
39d2023
changed radiobutton to be a checkbox instead
Casper-NS Dec 7, 2022
9f20760
Merge pull request #126 from Ecdar-SW5/group16-checkbox
Casper-NS Dec 7, 2022
0e4d797
Combined branch (#124)
EmilieSonne Dec 9, 2022
dafdd51
Proto commit update
Nielswps Jan 20, 2023
9e2e31e
Merged with current and SW5 mains
Nielswps Jan 20, 2023
9d34a35
WIP: Moved BackendInstance
Nielswps Jan 27, 2023
dab6432
WIP: Issue with having to double press components to update active mo…
Nielswps Jan 27, 2023
77332e7
Clean-up based on PR walkthrough
Nielswps Jan 27, 2023
f52782f
Missing test dependency FIXED
Nielswps Jan 27, 2023
6dc83cb
Merged with main to remove Grid
Nielswps Feb 3, 2023
42329b7
Merge issues FIXED
Nielswps Feb 3, 2023
8cb5296
Merge of simulator and main (#17)
Nielswps Apr 15, 2023
0d55c10
Merge branch 'main' into simulator
Nielswps Apr 15, 2023
f44bb6f
WIP: QueryPane resizing refresh increased
Nielswps Apr 15, 2023
92f6fba
Refactoring
Nielswps Apr 16, 2023
93338f9
WIP: Simulation RPC requests moved to Engine to utilize connection pool
Nielswps Apr 16, 2023
1667bdb
ToDos cleaned up
Nielswps Apr 16, 2023
3fe0b9f
Default engine loading FIX (#153)
Nielswps Apr 20, 2023
3071bed
WIP: Merge with main
Nielswps Apr 20, 2023
b52a69a
Feature/visitor pattern (#20)
Nielswps May 12, 2023
d464c82
WIP: Rough tracelog state design draft
Nielswps May 14, 2023
e502b76
WIP: Decision design draft implemented and refactoring
Nielswps May 17, 2023
b9d7f5c
WIP: minWidth removed from right sim pane
Nielswps May 17, 2023
2a16104
Highlighting of simulation extracted into helper class
Nielswps May 18, 2023
99d4ba9
Decision edges highlighting ADDED and tracelog fading FIXED
Nielswps May 25, 2023
29bdd7d
Constraint formatting improved and combination logic initiated
Nielswps May 25, 2023
7ea8b2f
WIP: Working clocke constraint merging and string generation
Nielswps May 30, 2023
484afd1
WIP: Decisions are now updated on preview, decoupling of protobuf fro…
Nielswps May 30, 2023
e3e3b7b
WIP: Unused import removed
Nielswps Jun 11, 2023
0eebe8e
Proto updated to use state-from-step and simulation test update to us…
Nielswps Jun 13, 2023
820fd2b
WIP: Concrete sim delay REMOVED, restart sim confirm dialog ADDED, an…
Nielswps Jun 27, 2023
2dd722a
WIP: Unused state pane files REMOVED
Nielswps Jun 27, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@ jobs:
submodules: recursive

- name: Set up JDK 11
uses: actions/setup-java@v1
uses: actions/setup-java@v2
with:
distribution: 'adopt'
java-version: 11
java-package: jdk
- name: Cache Gradle packages
Expand Down
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ lib/
.idea/
/out/

#VsCode
/bin/
.vscode/

### Gradle ###
.gradle
/build/
Expand Down
3 changes: 2 additions & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
[submodule "src/main/proto"]
path = src/main/proto
url = https://github.com/Ecdar/Ecdar-ProtoBuf.git
url = https://github.com/Ecdar-SW5/Ecdar-ProtoBuf.git

17 changes: 15 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,20 @@ javafx {
modules = ['javafx.controls', 'javafx.fxml', 'javafx.swing']
}

run {
mainClassName = 'com.jfxbase/com.jfxbase.sample.Main'
applicationDefaultJvmArgs += [
"--add-opens", "javafx.graphics/javafx.css=ALL-UNNAMED",
"--add-opens", "javafx.base/com.sun.javafx.runtime=ALL-UNNAMED",
"--add-opens", "javafx.controls/com.sun.javafx.scene.control.behavior=ALL-UNNAMED",
"--add-opens", "javafx.controls/com.sun.javafx.scene.control=ALL-UNNAMED",
"--add-opens", "javafx.base/com.sun.javafx.binding=ALL-UNNAMED",
"--add-opens", "javafx.base/com.sun.javafx.event=ALL-UNNAMED",
"--add-opens", "javafx.graphics/com.sun.javafx.stage=ALL-UNNAMED",
"--add-opens", "javafx.graphics/com.sun.javafx.scene=ALL-UNNAMED",
]
}

group 'ecdar'
if (project.hasProperty('ecdarVersion')) {
version = project.ecdarVersion
Expand Down Expand Up @@ -47,7 +61,6 @@ def protocVersion = protobufVersion

dependencies {
implementation fileTree(dir: 'lib', include: ['*.jar'])

implementation 'com.jfoenix:jfoenix:9.0.10'
implementation group: 'de.codecentric.centerdevice', name: 'javafxsvg', version: '1.3.0'
implementation 'org.kordamp.ikonli:ikonli-core:12.3.1'
Expand Down Expand Up @@ -76,14 +89,14 @@ dependencies {
testImplementation "io.grpc:grpc-testing:${grpcVersion}"

testImplementation 'org.junit.jupiter:junit-jupiter-api:5.9.0'
testImplementation 'org.junit.jupiter:junit-jupiter-params:5.0.0-M4'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.9.0'
testImplementation 'org.testfx:testfx-junit:4.0.15-alpha'
testImplementation 'org.testfx:openjfx-monocle:jdk-12.0.1+2'
testImplementation 'org.mockito:mockito-core:3.12.4'
testImplementation 'org.mockito:mockito-junit-jupiter:4.8.0'
}


test {
useJUnitPlatform { includeEngines 'junit-jupiter' }

Expand Down
25 changes: 5 additions & 20 deletions src/main/java/ecdar/Ecdar.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import ecdar.backend.BackendException;
import ecdar.backend.BackendHelper;
import ecdar.code_analysis.CodeAnalysis;
import ecdar.controllers.EcdarController;
import ecdar.issues.ExitStatusCodes;
import ecdar.presentations.*;
import ecdar.utility.keyboard.Keybind;
Expand Down Expand Up @@ -135,8 +134,8 @@ public static void showHelp() {
presentation.showHelp();
}

public static BooleanProperty toggleFilePane() {
return presentation.toggleFilePane();
public static BooleanProperty toggleLeftPane() {
return presentation.toggleLeftPane();
}

/**
Expand All @@ -163,7 +162,7 @@ public static BooleanProperty toggleRunBackgroundQueries() {
}

public static BooleanProperty toggleQueryPane() {
return presentation.toggleQueryPane();
return presentation.toggleRightPane();
}

public static BooleanProperty isSplitProperty() {
Expand Down Expand Up @@ -256,8 +255,6 @@ public void start(final Stage stage) {
// We're now ready! Let the curtains fall!
stage.show();

EcdarController.reachabilityServiceEnabled = true;

// Register a key-bind for showing debug-information
KeyboardTracker.registerKeybind("DEBUG", new Keybind(new KeyCodeCombination(KeyCode.F12), () -> {
// Toggle the debug mode for the debug class (will update misc. debug variables which presentations bind to)
Expand Down Expand Up @@ -311,7 +308,7 @@ public void start(final Stage stage) {
}
});

project = presentation.getController().projectPane.getController().project;
project = presentation.getController().getEditorPresentation().getController().projectPane.getController().project;
}

private void loadFonts() {
Expand Down Expand Up @@ -378,22 +375,10 @@ public static void initializeProjectFolder() throws IOException {

// If we found a component set that as active
serializationDone = true;

// Update reachability check timer when components change
getProject().getComponents().addListener((ListChangeListener<Component>) c -> {
while (c.next()) {
c.getAddedSubList().forEach(component -> {
component.getLocations().addListener((ListChangeListener<? super Location>) loc -> EcdarController.runReachabilityAnalysis());
component.getDisplayableEdges().addListener((ListChangeListener<? super DisplayableEdge>) de -> EcdarController.runReachabilityAnalysis());
component.declarationsTextProperty().addListener((observable, oldValue, newValue) -> EcdarController.runReachabilityAnalysis());
component.includeInPeriodicCheckProperty().addListener((observable, oldValue, newValue) -> EcdarController.runReachabilityAnalysis());
});
}
});
}

public static ComponentPresentation getComponentPresentationOfComponent(Component component) {
return getPresentation().getController().projectPane.getController().getComponentPresentations().stream().filter(componentPresentation -> componentPresentation.getController().getComponent().equals(component)).findFirst().orElse(null);
return getPresentation().getController().getEditorPresentation().getController().projectPane.getController().getComponentPresentations().stream().filter(componentPresentation -> componentPresentation.getController().getComponent().equals(component)).findFirst().orElse(null);
}

private static String getVersion() {
Expand Down
31 changes: 31 additions & 0 deletions src/main/java/ecdar/abstractions/ClockConstraint.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
package ecdar.abstractions;

import javafx.util.Pair;

public class ClockConstraint {
public final Pair<String, String> clocks;
public final char comparator;
public final int constant;
public final boolean isStrict;

public ClockConstraint(String leftClock, String rightClock, int constant, char comparator, boolean isStrict) {
this.clocks = new Pair<>(leftClock, rightClock);
this.constant = constant;
this.comparator = comparator;
this.isStrict = isStrict;
}

@Override
public String toString() {
if (clocks.getValue() != null) {
return clocks.getKey() + " - " +
clocks.getValue() + " " +
comparator + (isStrict ? "= " : " ") +
constant;
} else {
return clocks.getKey() + " " +
comparator + (isStrict ? "= " : " ") +
constant;
}
}
}
Loading