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
0c44606d
Commit
0c44606d
authored
Jan 29, 2018
by
William Schultz
Committed by
Markus Alexander Kuppe
Feb 7, 2018
Browse files
Options
Downloads
Patches
Plain Diff
Improve helper method comments
parent
75eeb5e3
No related branches found
No related tags found
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
-4
14 additions, 4 deletions
tlatools/src/tlc2/util/DotStateWriter.java
with
14 additions
and
4 deletions
tlatools/src/tlc2/util/DotStateWriter.java
+
14
−
4
View file @
0c44606d
...
...
@@ -146,10 +146,16 @@ public class DotStateWriter extends StateWriter {
this
.
writer
.
append
(
">]"
);
this
.
writer
.
append
(
";\n"
);
}
}
/**
* Creates a DOT label for an edge representing a state transition.
*
* @param state the current state of the transition
* @param successor the next state of the transition
* @param action the action that induced the transition
* @return the DOT label for the edge
*/
protected
String
dotTransitionLabel
(
TLCState
state
,
TLCState
successor
,
Action
action
)
{
StringBuilder
sb
=
new
StringBuilder
();
sb
.
append
(
" [label=<"
);
...
...
@@ -199,7 +205,11 @@ public class DotStateWriter extends StateWriter {
/**
* Return a DOT string that contains a legend describing the map of actions to their corresponding color.
* Creates a DOT legend that maps actions to their corresponding edge color in the state graph.
*
* @param name the title of the legend
* @param actions the set of action names that will be included in the legend
* @return
*/
protected
String
dotLegend
(
String
name
,
Set
<
String
>
actions
)
{
StringBuilder
sb
=
new
StringBuilder
();
...
...
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