Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tlatools
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
general
stups
tlatools
Commits
8a67736b
Commit
8a67736b
authored
Jan 18, 2018
by
William Schultz
Committed by
Markus Alexander Kuppe
Feb 7, 2018
Browse files
Options
Downloads
Patches
Plain Diff
Try out pushing changed vars closer to node
parent
237e9131
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
tlatools/src/tlc2/util/DotStateWriter.java
+14
-7
14 additions, 7 deletions
tlatools/src/tlc2/util/DotStateWriter.java
with
14 additions
and
7 deletions
tlatools/src/tlc2/util/DotStateWriter.java
+
14
−
7
View file @
8a67736b
...
@@ -142,24 +142,31 @@ public class DotStateWriter extends StateWriter {
...
@@ -142,24 +142,31 @@ public class DotStateWriter extends StateWriter {
}
}
this
.
writer
.
append
(
"</tr>"
);
this
.
writer
.
append
(
"</tr>"
);
this
.
writer
.
append
(
"<tr>"
);
//
this.writer.append("<tr>");
// Print names of variables that changed in this transition.
// Print names of variables that changed in this transition.
this
.
writer
.
append
(
"<td bgcolor='white'><font color='#222222' point-size='9'>"
);
//
this.writer.append("<td bgcolor='white'><font color='#222222' point-size='9'>");
// this.writer.append("(");
// this.writer.append("(");
HashMap
<
UniqueString
,
Value
>
diffMap
=
state
.
diff
(
successor
);
HashMap
<
UniqueString
,
Value
>
diffMap
=
state
.
diff
(
successor
);
ArrayList
<
String
>
changedVars
=
new
ArrayList
<>();
ArrayList
<
String
>
changedVars
=
new
ArrayList
<>();
for
(
UniqueString
key
:
diffMap
.
keySet
())
{
for
(
UniqueString
key
:
diffMap
.
keySet
())
{
//
changedVars.add(key.toString());
changedVars
.
add
(
key
.
toString
());
this
.
writer
.
append
(
key
.
toString
());
//
this.writer.append(key.toString());
this
.
writer
.
append
(
"<br/>"
);
//
this.writer.append("<br/>");
}
}
// this.writer.append(String.join("
,
", changedVars));
// this.writer.append(String.join("
\n
", changedVars));
// this.writer.append(")");
// this.writer.append(")");
this
.
writer
.
append
(
"</font></td></tr></table>"
);
// this.writer.append("</font>");
// this.writer.append("</td>");
// this.writer.append("</tr>");
this
.
writer
.
append
(
"</table>"
);
this
.
writer
.
append
(
">"
);
this
.
writer
.
append
(
">"
);
this
.
writer
.
append
(
" color=\""
+
color
+
"\"]"
);
this
.
writer
.
append
(
" color=\""
+
color
+
"\"]"
);
this
.
writer
.
append
(
" [headlabel="
);
this
.
writer
.
append
(
"\""
+
String
.
join
(
"\n"
,
changedVars
)
+
"\""
);
this
.
writer
.
append
(
" labeldistance=\"4\" fontcolor=\"#333333\" fontsize=\"9\"]"
);
this
.
writer
.
append
(
";\n"
);
this
.
writer
.
append
(
";\n"
);
// If the successor is new, print the state's label. Labels are printed
// If the successor is new, print the state's label. Labels are printed
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment