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
fe431392
Commit
fe431392
authored
Feb 11, 2022
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
82082f1f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
1 deletion
+17
-1
Route.tla
Route.tla
+16
-0
Route.toolbox/Route___Model_1.launch
Route.toolbox/Route___Model_1.launch
+1
-1
No files found.
Route.tla
View file @
fe431392
...
...
@@ -186,6 +186,21 @@ PathMinimal(p) == ~ \E pp \in SeqN(Nodes, Cardinality(Nodes)) :
/\ PathCorrect(pp)
\* Dist is len of minimal path in between n-m.
RECURSIVE _Dist(_, _)
_Dist(n, S) ==
IF n \in S THEN 1
ELSE
LET S_ == S \cup {m \in Nodes : {n,m} \in Edges}
IN
IF S_ = S THEN Inf
ELSE
LET d == _Dist(n, S_)
IN
IF d = Inf THEN Inf
ELSE 1 + d
Dist(n,m) == _Dist(n, {m})
\* Paths are OK if they are all correct and minimal.
PathsOK == \A n \in Nodes :
LET p == ParentPath(n)
...
...
@@ -194,6 +209,7 @@ PathsOK == \A n \in Nodes :
/\ p[Len(p)] = root \* not NoRoute
/\ PathCorrect(p)
/\ PathMinimal(p)
/\ Len(p) = Dist(n, root)
\* Paths must be all OK when terminated.
THEOREM Terminated => PathsOK
...
...
Route.toolbox/Route___Model_1.launch
View file @
fe431392
...
...
@@ -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
15
"
/>
<intAttribute
key=
"fpIndex"
value=
"1
4
"
/>
<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