Commit 577aa6da authored by Maxime Perrotin's avatar Maxime Perrotin
Browse files

Handle continuous signals when no input for a state

parent ebc7862b
......@@ -142,6 +142,9 @@ The background pattern was downloaded from www.subtlepatterns.com
Changelog
=========
1.5.3 (07/2016):
- Continous signals now handled in states where input is not consumed
1.5.2 (07/2016):
- Asn1scc API added to interface with DMT/asn2dataModel
- Better statechart rendering (less distance between nodes)
......
......@@ -273,6 +273,8 @@ LD_LIBRARY_PATH=. opengeode-simulator
process_level_decl.append('end record;')
process_level_decl.append('{ctxt}: {ctxt}_Ty;'.format(ctxt=LPREFIX))
process_level_decl.append('CS_Only : constant Integer := {};'
.format(len(process.transitions)))
for name, val in process.mapping.viewitems():
......@@ -550,7 +552,7 @@ package {process_name} is'''.format(process_name=process_name,
map(case_state, reduced_statelist) # XXX update C generator
taste_template.append('when others =>')
taste_template.append('null;')
taste_template.append('runTransition(CS_Only);')
taste_template.append('end case;')
taste_template.append(u'end {};'.format(signame))
taste_template.append('\n')
......@@ -765,6 +767,10 @@ package {process_name} is'''.format(process_name=process_name,
else:
taste_template.append('null;')
taste_template.append('when CS_Only =>')
taste_template.append('trId := -1;')
taste_template.append('goto next_transition;')
taste_template.append('when others =>')
taste_template.append('null;')
......
......@@ -134,7 +134,7 @@ except ImportError:
__all__ = ['opengeode', 'SDL_Scene', 'SDL_View', 'parse']
__version__ = '1.5.2'
__version__ = '1.5.3'
if hasattr(sys, 'frozen'):
# Detect if we are running on Windows (py2exe-generated)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment