Skip to content

Commit

Permalink
Export to PlantUML uses short arrows by default
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexandreDecan committed Mar 17, 2018
1 parent d86f487 commit 117db41
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
Changelog
=========

0.26.5 (2018-03-17)

- (Changed) Export to PlantUML uses short arrows by default.


0.26.4 (2018-03-16)
-------------------

Expand Down
2 changes: 1 addition & 1 deletion sismic/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
__description__ = 'Sismic Interactive Statechart Model Interpreter and Checker'
__version__ = '0.26.4'
__version__ = '0.26.5'
__url__ = 'https://github.com/AlexandreDecan/sismic/'
__author__ = 'Alexandre Decan'
__email__ = 'alexandre.decan@lexpage.net'
Expand Down
6 changes: 3 additions & 3 deletions sismic/io/plantuml.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ def export_state(self, name: str) -> None:

# Initial state
if isinstance(state, CompoundState) and state.initial:
self.output('[*] --> {}'.format(self.state_id(state.initial)))
self.output('[*] -> {}'.format(self.state_id(state.initial)))

self.deindent()
self.output('}')
Expand All @@ -156,7 +156,7 @@ def export_transitions(self, source_name: str) -> None:

# History state
if isinstance(state, HistoryStateMixin) and state.memory:
self.output('{} --> {}'.format(self.state_id(source_name), self.state_id(state.memory)))
self.output('{} -> {}'.format(self.state_id(source_name), self.state_id(state.memory)))

# Transitions (except internal ones)
transitions = filter(lambda t: not t.internal, self.statechart.transitions_from(source_name))
Expand Down Expand Up @@ -195,7 +195,7 @@ def export_transition(self, transition: Transition) -> None:
for cond in transition.postconditions:
text.append('post: {}\n'.format(cond))

self.output('{source} --> {target} : {text}'.format(
self.output('{source} -> {target} : {text}'.format(
source=self.state_id(transition.source),
target=target_name,
text=''.join(text),
Expand Down

0 comments on commit 117db41

Please sign in to comment.