Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
K
KTLA Study
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kirill Smelkov
KTLA Study
Commits
d82ed1a5
Commit
d82ed1a5
authored
Feb 11, 2022
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
cb50545a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
3 deletions
+9
-3
Route.tla
Route.tla
+8
-2
Route.toolbox/Route___Model_1.launch
Route.toolbox/Route___Model_1.launch
+1
-1
No files found.
Route.tla
View file @
d82ed1a5
...
...
@@ -138,17 +138,23 @@ Spec == /\ Init /\ [][Next]_vars
Terminated == \A q \in Queues : msgs[q] = << >>
\* SeqDecreasing is true if S is sequence with decreasing elements
RECURSIVE SeqDecreasing(_)
SeqDecreasing(S) ==
CASE S = << >> -> TRUE
[] Len(S) = 1 -> TRUE
[] OTHER -> (S[1] >= S[2]) /\ SeqDecreasing(Tail(S))
[] OTHER -> (S[2] =< S[1]) /\ SeqDecreasing(Tail(S))
\* SeqSet converts sequence S to set of its values.
SeqSet(S) == {S[x]: x \in DOMAIN S}
TypeOK ==
/\ depth \in [Nodes -> 0..Cardinality(Nodes) \cup {Inf}]
/\ parent \in [Nodes -> Nodes \cup {NoRoute}]
/\ msgs \in [Queues -> Seq(0..(Cardinality(Nodes)-1))]
/\ \A q \in Queues : SeqDecreasing(msgs[q])
/\ \A q \in Queues :
/\ SeqDecreasing(msgs[q])
/\ \A d \in SeqSet(msgs[q]) : d >= depth[q[1]]
\* ParentPath returns path from node n to root constructed via parents.
...
...
Route.toolbox/Route___Model_1.launch
View file @
d82ed1a5
...
...
@@ -5,7 +5,7 @@
<stringAttribute
key=
"distributedNetworkInterface"
value=
"192.168.122.1"
/>
<intAttribute
key=
"distributedNodesCount"
value=
"1"
/>
<stringAttribute
key=
"distributedTLC"
value=
"off"
/>
<intAttribute
key=
"fpIndex"
value=
"1
24
"
/>
<intAttribute
key=
"fpIndex"
value=
"1
15
"
/>
<intAttribute
key=
"maxHeapSize"
value=
"25"
/>
<stringAttribute
key=
"modelBehaviorInit"
value=
""
/>
<stringAttribute
key=
"modelBehaviorNext"
value=
""
/>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment