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

Top-down development #9

Open
wants to merge 66 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 45 commits
Commits
Show all changes
66 commits
Select commit Hold shift + click to select a range
116f0db
Add ability to create empty composite block
Sdmitrioul Apr 14, 2023
bd62c4c
Add maket button for edit
Sdmitrioul Apr 17, 2023
4da7caa
Refactor methods
Sdmitrioul Apr 18, 2023
d8f4ff8
refactor abstractfbcell
Sdmitrioul Apr 18, 2023
2cc3484
Add button to fbCells
Sdmitrioul Apr 20, 2023
70c65a6
Add first version of edit component state
Sdmitrioul Apr 23, 2023
c4192fa
Add ability to add ports
Sdmitrioul Apr 25, 2023
e7666a7
Add ability to add parameters and socket with plugins
Sdmitrioul Apr 28, 2023
66f8122
Some fixes
Sdmitrioul Apr 30, 2023
a13f1ac
Fix button styles in different colors
Sdmitrioul May 2, 2023
6f56bf2
Fix dragging problem
Sdmitrioul May 2, 2023
f990193
Add creating new port on connection
Sdmitrioul May 5, 2023
731a2c8
Add converting type
Sdmitrioul May 26, 2023
6807b43
Fix connections issue
Sdmitrioul May 27, 2023
2262a0e
Refactor action folder
Sdmitrioul May 27, 2023
0e4fde5
Extract abstract class
Sdmitrioul May 27, 2023
98b0e88
Add creating view for block
Sdmitrioul May 28, 2023
4d2ee8b
Fix small bug
Sdmitrioul May 28, 2023
659f70f
Add comlition provider object
Sdmitrioul May 29, 2023
85c1e00
Refactor network example
Sdmitrioul May 29, 2023
895af9f
Added port type on connecting in editor mode
Sdmitrioul May 30, 2023
03c2712
Add network extractor
Sdmitrioul May 30, 2023
17a2d61
Fix deleting connections on deleting port
Sdmitrioul May 31, 2023
37226ff
Add notification user if block uses in several places
Sdmitrioul Jun 1, 2023
7185521
Extract common logic from magnetize function
Sdmitrioul Jun 4, 2023
3d209df
Add custom notifier in scenes
Sdmitrioul Jun 4, 2023
11b269b
Add exceptions in scenes
Sdmitrioul Jun 4, 2023
61a6331
Return unresolved files .name, codeStyle
Sdmitrioul Jun 4, 2023
774de34
Return compiler file
Sdmitrioul Jun 4, 2023
e174eae
Return jarRepositories and encodings file
Sdmitrioul Jun 4, 2023
1a2bc2a
Fix encodings tab
Sdmitrioul Jun 4, 2023
147a40e
Return vcs file
Sdmitrioul Jun 4, 2023
f579a69
Return Kotlin scripting file
Sdmitrioul Jun 4, 2023
299502b
Return misc file
Sdmitrioul Jun 4, 2023
fa856f2
Remove from using deprecated api
Sdmitrioul Jun 4, 2023
3b87e61
Refactor TypeDescriptorAdapter: add broken ports, extract common log…
Sdmitrioul Jun 5, 2023
4ab763f
Refactor FBNetworkComponentController
Sdmitrioul Jun 5, 2023
f763ddf
Refactor DiagramView
Sdmitrioul Jun 5, 2023
e6d77ce
Replace error with exception in DiagramFacility
Sdmitrioul Jun 5, 2023
f49f9da
Add handling exception while creating edges layer
Sdmitrioul Jun 5, 2023
ff70513
Replace error with exception while creating ConnectionEntry
Sdmitrioul Jun 5, 2023
65fac58
Revert changes in delivery service
Sdmitrioul Jun 5, 2023
69dcb06
Revert changes in blinky samples
Sdmitrioul Jun 5, 2023
502753a
Return dictionaries files
Sdmitrioul Jun 6, 2023
84d4e8a
Return uidesiger file
Sdmitrioul Jun 6, 2023
847e19d
Rename SocketPluginDeclaration.kt to AdapterDeclaration
Sdmitrioul Jun 19, 2023
bd271a6
Delete port button
Sdmitrioul Jun 19, 2023
cefa1e8
Remove DataTypeUtil.kt
Sdmitrioul Jun 19, 2023
7da6057
Simplify condition
Sdmitrioul Jun 19, 2023
09f5963
Simplified condition NetworkExtractorAction
Sdmitrioul Jun 19, 2023
82754ca
Delete unused exception
Sdmitrioul Jun 19, 2023
606a481
Extract common code
Sdmitrioul Jun 19, 2023
e2d6328
Make just function for supplier
Sdmitrioul Jun 19, 2023
cca90d6
Make local functions in fb completion provider
Sdmitrioul Jun 19, 2023
7ebea66
Renamed reference
Sdmitrioul Jun 19, 2023
282b9d8
Add port icons
Sdmitrioul Jul 21, 2023
9d36fc1
Add broken ports base
Sdmitrioul Jul 21, 2023
dcf905b
Restore idea files
Sdmitrioul Jul 21, 2023
a530e23
Replace e
Sdmitrioul Jul 21, 2023
6df6206
Restore code/4diac-integration/solutions/stdlib/models/iec61499.4diac…
Sdmitrioul Jul 21, 2023
6e1c666
Restore fbme.iml
Sdmitrioul Jul 21, 2023
9b6dd9b
Restore fbme.iml
Sdmitrioul Jul 21, 2023
6741bc4
Restore jarRepositories.xml
Sdmitrioul Jul 21, 2023
71fb3c6
Restore Project_Default.xml
Sdmitrioul Jul 21, 2023
e5acaaf
Delete components
Sdmitrioul Jul 21, 2023
5cfd13c
Delete components
Sdmitrioul Jul 21, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 0 additions & 6 deletions .idea/inspectionProfiles/Project_Default.xml

This file was deleted.

13 changes: 0 additions & 13 deletions .idea/inspectionProfiles/Project_check.xml

This file was deleted.

8 changes: 0 additions & 8 deletions .idea/modules/fbme.iml

This file was deleted.

15 changes: 0 additions & 15 deletions .idea/runConfigurations/Remote_debug_MPS.xml

This file was deleted.

27 changes: 0 additions & 27 deletions .idea/runConfigurations/Test_Teamcity_configuration_generation.xml

This file was deleted.

3 changes: 0 additions & 3 deletions .idea/scopes/Checked_source_files.xml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2409,7 +2409,7 @@
</node>
<node concept="3Tm1VV" id="NsL_pTivx6" role="1B3o_S" />
<node concept="2AHcQZ" id="NsL_pTiyGm" role="2AJF6D">
<ref role="2AI5Lk" to="wyt6:~Override" />
<ref role="2AI5Lk" to="wyt6:~Override" resolve="Override" />
</node>
</node>
<node concept="2tJIrI" id="7fNS1Avd1cM" role="jymVt" />
Expand Down Expand Up @@ -3452,7 +3452,7 @@
</node>
</node>
<node concept="2AHcQZ" id="3m7NxmgdDk4" role="2AJF6D">
<ref role="2AI5Lk" to="wyt6:~Override" />
<ref role="2AI5Lk" to="wyt6:~Override" resolve="Override" />
</node>
</node>
<node concept="2tJIrI" id="2hzhDSCJnar" role="jymVt" />
Expand Down Expand Up @@ -3515,7 +3515,7 @@
</node>
</node>
<node concept="2AHcQZ" id="2hzhDSCJrIf" role="2AJF6D">
<ref role="2AI5Lk" to="wyt6:~Override" />
<ref role="2AI5Lk" to="wyt6:~Override" resolve="Override" />
</node>
</node>
<node concept="2tJIrI" id="7fNS1AuVdjo" role="jymVt" />
Expand Down
Original file line number Diff line number Diff line change
@@ -1,43 +1,20 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE AdapterType SYSTEM "http://www.holobloc.com/xml/LibraryElement.dtd">
<AdapterType Comment="Interface for a resetable time out service" Name="ARTimeOut">
<Identification Description="Copyright (c) 2017 fortiss GmbH&#13;&#10; &#13;&#10;This program and the accompanying materials are made&#13;&#10;available under the terms of the Eclipse Public License 2.0&#13;&#10;which is available at https://www.eclipse.org/legal/epl-2.0/&#13;&#10;&#13;&#10;SPDX-License-Identifier: EPL-2.0" Standard="61499-1"/>
<VersionInfo Author="Alois Zoitl" Date="2017-09-22" Organization="fortiss GmbH" Remarks="initial API and implementation and/or initial documentation" Version="1.0"/>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE AdapterType SYSTEM "https://www.holobloc.com/xml/LibraryElement.dtd">

<AdapterType Name="ARTimeOut">
<InterfaceList>
<EventInputs>
<Event Comment="Request from Socket" Name="TimeOut" Type="Event"/>
<Event Name="TimeOut" />
</EventInputs>
<EventOutputs>
<Event Comment="start/reset timeout notifcation" Name="START" Type="Event">
<With Var="DT"/>
<Event Name="START">
<With Var="DT" />
</Event>
<Event Comment="stop timeout notification" Name="STOP" Type="Event"/>
<Event Name="STOP" />
</EventOutputs>
<InputVars/>
<OutputVars>
<VarDeclaration Comment="timeout duration" InitialValue="" Name="DT" Type="TIME"/>
<VarDeclaration Name="DT" Type="TIME" />
</OutputVars>
</InterfaceList>
<Service Comment="Interface for a resetable time out service" LeftInterface="SOCKET" RightInterface="PLUG">
<ServiceSequence Comment="" Name="Timeout">
<ServiceTransaction>
<InputPrimitive Event="START" Interface="PLUG" Parameters="TD"/>
<OutputPrimitive Event="START" Interface="SOCKET" Parameters="TD"/>
</ServiceTransaction>
<ServiceTransaction>
<InputPrimitive Event="TimeOut" Interface="SOCKET" Parameters=""/>
<OutputPrimitive Event="TimeOut" Interface="PLUG"/>
</ServiceTransaction>
</ServiceSequence>
<ServiceSequence Comment="" Name="normal operation">
<ServiceTransaction>
<InputPrimitive Event="Start" Interface="PLUG" Parameters="TD"/>
<OutputPrimitive Event="Start" Interface="SOCKET" Parameters="TD"/>
</ServiceTransaction>
<ServiceTransaction>
<InputPrimitive Event="STOP" Interface="PLUG" Parameters=""/>
<OutputPrimitive Event="STOP" Interface="SOCKET" Parameters=""/>
</ServiceTransaction>
</ServiceSequence>
</Service>
</AdapterType>

Original file line number Diff line number Diff line change
@@ -1,43 +1,20 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE AdapterType SYSTEM "http://www.holobloc.com/xml/LibraryElement.dtd">
<AdapterType Comment="Interface for a time out service roughly based on the definitions of ROOM" Name="ATimeOut">
<Identification Description="Copyright (c) 2017 fortiss GmbH&#13;&#10; &#13;&#10;This program and the accompanying materials are made&#13;&#10;available under the terms of the Eclipse Public License 2.0&#13;&#10;which is available at https://www.eclipse.org/legal/epl-2.0/&#13;&#10;&#13;&#10;SPDX-License-Identifier: EPL-2.0" Standard="61499-1"/>
<VersionInfo Author="Alois Zoitl" Date="2017-09-22" Organization="fortiss GmbH" Remarks="initial API and implementation and/or initial documentation" Version="1.0"/>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE AdapterType SYSTEM "https://www.holobloc.com/xml/LibraryElement.dtd">

<AdapterType Name="ATimeOut">
<InterfaceList>
<EventInputs>
<Event Comment="Request from Socket" Name="TimeOut" Type="Event"/>
<Event Name="TimeOut" />
</EventInputs>
<EventOutputs>
<Event Comment="start timeout notifcation" Name="START" Type="Event">
<With Var="DT"/>
<Event Name="START">
<With Var="DT" />
</Event>
<Event Comment="stop timeout notification" Name="STOP" Type="Event"/>
<Event Name="STOP" />
</EventOutputs>
<InputVars/>
<OutputVars>
<VarDeclaration Comment="timeout duration" InitialValue="" Name="DT" Type="TIME"/>
<VarDeclaration Name="DT" Type="TIME" />
</OutputVars>
</InterfaceList>
<Service Comment="Interface for a time out service roughly based on the definitions of ROOM" LeftInterface="SOCKET" RightInterface="PLUG">
<ServiceSequence Comment="" Name="Timeout">
<ServiceTransaction>
<InputPrimitive Event="START" Interface="PLUG" Parameters="TD"/>
<OutputPrimitive Event="START" Interface="SOCKET" Parameters="TD"/>
</ServiceTransaction>
<ServiceTransaction>
<InputPrimitive Event="TimeOut" Interface="SOCKET" Parameters=""/>
<OutputPrimitive Event="TimeOut" Interface="PLUG"/>
</ServiceTransaction>
</ServiceSequence>
<ServiceSequence Comment="" Name="normal operation">
<ServiceTransaction>
<InputPrimitive Event="Start" Interface="PLUG" Parameters="TD"/>
<OutputPrimitive Event="Start" Interface="SOCKET" Parameters="TD"/>
</ServiceTransaction>
<ServiceTransaction>
<InputPrimitive Event="STOP" Interface="PLUG" Parameters=""/>
<OutputPrimitive Event="STOP" Interface="SOCKET" Parameters=""/>
</ServiceTransaction>
</ServiceSequence>
</Service>
</AdapterType>

Original file line number Diff line number Diff line change
@@ -1,53 +1,52 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE FBType SYSTEM "http://www.holobloc.com/xml/LibraryElement.dtd">
<FBType Comment="Event-Driven Down Counter" Name="E_CTD">
<Identification Classification="Event-driven blocks" Description="Copyright (c) 2017 fortiss GmbH&#13;&#10; &#13;&#10;This program and the accompanying materials are made&#13;&#10;available under the terms of the Eclipse Public License 2.0&#13;&#10;which is available at https://www.eclipse.org/legal/epl-2.0/&#13;&#10;&#13;&#10;SPDX-License-Identifier: EPL-2.0" Function="Down-counter" Standard="61499-1-A.x"/>
<VersionInfo Author="Alois Zoitl" Date="2017-09-22" Organization="fortiss GmbH" Remarks="initial API and implementation and/or initial documentation" Version="1.0"/>
<CompilerInfo/>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE FBType SYSTEM "https://www.holobloc.com/xml/LibraryElement.dtd">

<FBType Name="E_CTD">
<InterfaceList>
<EventInputs>
<Event Comment="Count Down" Name="CD" Type="Event"/>
<Event Comment="Load counter value" Name="LD" Type="Event">
<With Var="PV"/>
<Event Name="CD" />
<Event Name="LD">
<With Var="PV" />
</Event>
</EventInputs>
<EventOutputs>
<Event Comment="Count Down Output Event" Name="CDO" Type="Event">
<With Var="Q"/>
<With Var="CV"/>
<Event Name="CDO">
<With Var="Q" />
<With Var="CV" />
</Event>
<Event Comment="Reset Output Event" Name="LDO" Type="Event">
<With Var="Q"/>
<With Var="CV"/>
<Event Name="LDO">
<With Var="Q" />
<With Var="CV" />
</Event>
</EventOutputs>
<InputVars>
<VarDeclaration Comment="Preset Value" Name="PV" Type="UINT"/>
<VarDeclaration Name="PV" Type="UINT" />
</InputVars>
<OutputVars>
<VarDeclaration Comment="CV &lt;= 0" Name="Q" Type="BOOL"/>
<VarDeclaration Comment="" Name="CV" Type="UINT"/>
<VarDeclaration Name="Q" Type="BOOL" />
<VarDeclaration Name="CV" Type="UINT" />
</OutputVars>
</InterfaceList>
<BasicFB>
<ECC>
<ECState Comment="" Name="START" x="240.0" y="90.0"/>
<ECState Comment="" Name="CU" x="865.0" y="90.0">
<ECAction Algorithm="CD" Output="CDO"/>
<ECState Name="START" x="240" y="90" />
<ECState Name="CU" x="865" y="90">
<ECAction Output="CDO" Algorithm="CD" />
</ECState>
<ECState Comment="" Name="LD" x="450.0" y="610.0">
<ECAction Algorithm="LD" Output="LDO"/>
<ECState Name="LD" x="450" y="610">
<ECAction Output="LDO" Algorithm="LD" />
</ECState>
<ECTransition Comment="" Condition="CD[(CV &gt;= 1)]" Destination="CU" Source="START" x="1035.0" y="460.0"/>
<ECTransition Comment="" Condition="1" Destination="START" Source="CU" x="630.0" y="90.0"/>
<ECTransition Comment="" Condition="LD" Destination="LD" Source="START" x="395.0" y="510.0"/>
<ECTransition Comment="" Condition="1" Destination="START" Source="LD" x="240.0" y="610.0"/>
<ECTransition Source="START" Destination="CU" x="1035" y="460" Condition="CD[(CV &amp;#62;= 1)]" />
<ECTransition Source="CU" Destination="START" x="630" y="90" Condition="1" />
<ECTransition Source="START" Destination="LD" x="395" y="510" Condition="LD" />
<ECTransition Source="LD" Destination="START" x="240" y="610" Condition="1" />
</ECC>
<Algorithm Comment="Count Down" Name="CD">
<ST Text="CV := CV - 1;&#10;Q := (CV &lt;= 0);&#10;&#10;"/>
<Algorithm Name="CD">
<ST Text="CV := CV - 1;&amp;#38;#10;Q := (CV &amp;#60;= 0);&amp;#38;#10;" />
</Algorithm>
<Algorithm Comment="Load" Name="LD">
<ST Text="CV := PV;&#10;Q:= (CV &lt;= 0);&#10;"/>
<Algorithm Name="LD">
<ST Text="CV := PV;&amp;#38;#10;Q := (CV &amp;#60;= 0);&amp;#38;#10;" />
</Algorithm>
</BasicFB>
</FBType>

Original file line number Diff line number Diff line change
@@ -1,52 +1,52 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE FBType SYSTEM "http://www.holobloc.com/xml/LibraryElement.dtd">
<FBType Comment="Event driven up counter" Name="E_CTU">
<Identification Description="Copyright (c) 2017 fortiss GmbH&#13;&#10; &#13;&#10;This program and the accompanying materials are made&#13;&#10;available under the terms of the Eclipse Public License 2.0&#13;&#10;which is available at https://www.eclipse.org/legal/epl-2.0/&#13;&#10;&#13;&#10;SPDX-License-Identifier: EPL-2.0" Standard="61499-1 Annex 2"/>
<VersionInfo Author="Alois Zoitl" Date="2017-09-21" Organization="fortiss GmbH" Remarks="initial API and implementation and/or initial documentation" Version="1.0"/>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE FBType SYSTEM "https://www.holobloc.com/xml/LibraryElement.dtd">

<FBType Name="E_CTU">
<InterfaceList>
<EventInputs>
<Event Comment="Count up" Name="CU" Type="Event">
<With Var="PV"/>
<Event Name="CU">
<With Var="PV" />
</Event>
<Event Comment="Reset" Name="R" Type="Event"/>
<Event Name="R" />
</EventInputs>
<EventOutputs>
<Event Comment="Count up output" Name="CUO" Type="Event">
<With Var="Q"/>
<With Var="CV"/>
<Event Name="CUO">
<With Var="Q" />
<With Var="CV" />
</Event>
<Event Comment="Reset output" Name="RO" Type="Event">
<With Var="Q"/>
<With Var="CV"/>
<Event Name="RO">
<With Var="Q" />
<With Var="CV" />
</Event>
</EventOutputs>
<InputVars>
<VarDeclaration Comment="Process Value" Name="PV" Type="UINT"/>
<VarDeclaration Name="PV" Type="UINT" />
</InputVars>
<OutputVars>
<VarDeclaration Comment="True if CV &gt;= PV" Name="Q" Type="BOOL"/>
<VarDeclaration Comment="Counter Value" Name="CV" Type="UINT"/>
<VarDeclaration Name="Q" Type="BOOL" />
<VarDeclaration Name="CV" Type="UINT" />
</OutputVars>
</InterfaceList>
<BasicFB>
<ECC>
<ECState Comment="Initial State" Name="START" x="550.0" y="425.0"/>
<ECState Comment="" Name="CU" x="1570.0" y="165.0">
<ECAction Algorithm="CU" Output="CUO"/>
<ECState Name="START" x="550" y="425" />
<ECState Name="CU" x="1570" y="165">
<ECAction Output="CUO" Algorithm="CU" />
</ECState>
<ECState Comment="" Name="R" x="900.0" y="1000.0">
<ECAction Algorithm="R" Output="RO"/>
<ECState Name="R" x="900" y="1000">
<ECAction Output="RO" Algorithm="R" />
</ECState>
<ECTransition Comment="" Condition="CU[CV &lt; 65535]" Destination="CU" Source="START" x="970.0" y="210.0"/>
<ECTransition Comment="" Condition="1" Destination="START" Source="CU" x="1285.0" y="510.0"/>
<ECTransition Comment="" Condition="R" Destination="R" Source="START" x="845.0" y="770.0"/>
<ECTransition Comment="" Condition="1" Destination="START" Source="R" x="545.0" y="1050.0"/>
<ECTransition Source="START" Destination="CU" x="970" y="210" Condition="CU[CV &amp;#60; 65535]" />
<ECTransition Source="CU" Destination="START" x="1285" y="510" Condition="1" />
<ECTransition Source="START" Destination="R" x="845" y="770" Condition="R" />
<ECTransition Source="R" Destination="START" x="545" y="1050" Condition="1" />
</ECC>
<Algorithm Comment="reset counter" Name="R">
<ST Text="CV := 0;&#13;&#10;Q := FALSE;"/>
<Algorithm Name="R">
<ST Text="CV := 0;&amp;#38;#10;Q := FALSE;&amp;#38;#10;" />
</Algorithm>
<Algorithm Comment="count up" Name="CU">
<ST Text="CV := CV + 1;&#13;&#10;Q := (CV &gt;= PV);"/>
<Algorithm Name="CU">
<ST Text="CV := CV + 1;&amp;#38;#10;Q := (CV &amp;#62;= PV);&amp;#38;#10;" />
</Algorithm>
</BasicFB>
</FBType>