Coder Social home page Coder Social logo

itemiscreate / statecharts Goto Github PK

View Code? Open in Web Editor NEW
172.0 26.0 83.0 109.6 MB

YAKINDU Statechart Tools (http://www.statecharts.org)

License: Eclipse Public License 1.0

C++ 6.91% Java 81.28% HTML 1.55% CSS 0.12% Xtend 8.56% XSLT 0.06% C 1.34% Makefile 0.06% QMake 0.01% Shell 0.09% Perl 0.01% JavaScript 0.01%
statechart statemachine statemachines yakindu embedded embedded-systems code-generator

statecharts's People

Contributors

andreasmuelder avatar andreasunger avatar atasman avatar bananeweizen avatar beckmar avatar benedekh avatar bohl-itemis avatar djetzen avatar dominiktesch avatar dtrace82 avatar enikao avatar herrendorf avatar holgzn avatar hudsonsferreira avatar jetzen-itemis avatar jthoene avatar m-sonntag avatar mazesch avatar muehlbrandt avatar nyssen avatar rainerklute avatar rherrmannr avatar svenjawendler avatar tangele avatar terfloth avatar tkutz avatar weiseguy avatar wendehals avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

statecharts's Issues

Error launching simulation of statecharts

What steps will reproduce the problem?
1. Install new Indigo Eclipse Modeling Tools version.
2. Install Xtext 2.3 from Xtext update site (release)
3. Install Yakindu SCT from update site
4. Create statechart and start simulation.

Following error message pops up:
"An internal error occurred during: "Launching AlwaysOncycle.sct (1)".
org.eclipse.xtext.xbase.lib.IterableExtensions.forEach(Ljava/lang/Iterable;Lorg/
eclipse/xtext/xbase/lib/Functions$Function1;)V"


Stacktrace:
java.lang.NoSuchMethodError: 
org.eclipse.xtext.xbase.lib.IterableExtensions.forEach(Ljava/lang/Iterable;Lorg/
eclipse/xtext/xbase/lib/Functions$Function1;)V
    at org.yakindu.sct.model.sexec.transformation.StructureMapping.mapTimeEvents(StructureMapping.java:247)
    at org.yakindu.sct.model.sexec.transformation.ModelSequencer.transform(ModelSequencer.java:69)
    at org.yakindu.sct.model.sexec.interpreter.factory.SexecExecutionFacadeFactory.createExecutionFacade(SexecExecutionFacadeFactory.java:46)
    at org.yakindu.sct.model.sexec.interpreter.factory.SexecExecutionFacadeFactory.createExecutionFacade(SexecExecutionFacadeFactory.java:1)
    at org.yakindu.sct.simulation.core.debugmodel.SCTDebugTarget.createExecutionModel(SCTDebugTarget.java:82)
    at org.yakindu.sct.simulation.core.debugmodel.SCTDebugTarget.<init>(SCTDebugTarget.java:76)
    at org.yakindu.sct.simulation.core.launch.StatechartLaunchConfigurationDelegate.launch(StatechartLaunchConfigurationDelegate.java:39)
    at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:855)
    at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:704)
    at org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:1047)
    at org.eclipse.debug.internal.ui.DebugUIPlugin$8.run(DebugUIPlugin.java:1251)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)


Original issue reported on code.google.com by markus.muehlbrandt on 2 Aug 2012 at 9:16

generate of header file for interface is wrong

generate of header file for interface is wrong 

  xyz_raiseEvent_Event* event);

missing "("    

****************************************************

#ifdef INTERFACE_LISTENER

extern void gPS_if_LedGreen_init(Statemachine_cy* statemachine,
        EventSet* eventSet);
extern void gPS_if_LedGreen_set_listener(handleEvent handleEventPtr);
extern void gPS_if_LedGreen_raiseEvent_Event* event);

#else



Original issue reported on code.google.com by AxelTerfloth on 28 Jun 2012 at 1:32

Unhandled event loop execptions are thrown

What steps will reproduce the problem?
1. I added some new Transitions and changed the trigger/guard/action
2. "java.lang.IllegalArgumentException: Argument not valid"-Errors are thrown

What is the expected output? What do you see instead?
No, error should occur.


Original issue reported on code.google.com by [email protected] on 21 Jun 2010 at 8:52

Time events are not canceled and rescheduled correctly on self transitions

What steps will reproduce the problem?
1. create a state with a outgoing transition using an after-trigger
2. create a self transition on the same state triggered ba a signal
3. triggering the signal must reschedule the time trigger with the duration from

What is the expected output? What do you see instead?
triggering the signal must cancel and reschedule the time trigger. So the first 
transition should be triggered after the specified duration after rescheduling. 
Instead the time event triggers the transition the specified time after the 
state was first entered.

Please use labels and text to provide additional information.
We have to fix the SimulationSession

Original issue reported on code.google.com by AxelTerfloth on 20 Jan 2011 at 9:42

Entry action of state is executed if a breakpoint suspends the simulation

A simulation should suspend when a state is arrived, that has an active 
breakpoint.

The entry action shall not be executed before the simulation resumes or the 
next step is executed (step over through GUI).

Actually the entry action is executed when the state is active.

Original issue reported on code.google.com by AxelTerfloth on 29 Sep 2014 at 1:42

the c generator does not create a license header in any c or h file

Example sgen configuration:

GeneratorModel for yakindu::c {

    statechart GPS {

        feature LicenseHeader {
            licenseText = " Some Text here blabla"
        }

        feature Outlet {
            targetProject = "GPSLogger"
            targetFolder = "src"
        }

        feature CCodeFeature {
            InterfaceEventListener = true
            Singleton = true
        }

    }
}

Original issue reported on code.google.com by AxelTerfloth on 28 Jun 2012 at 1:37

Code generators do not process double quotes correctly

What steps will reproduce the problem?
1. assign a string variable a string value that includes a double quote as part 
of the string
2. the generates java and c code can't be compiled

What is the expected output? What do you see instead?
the generated string code should contain escaped quotes



Original issue reported on code.google.com by AxelTerfloth on 28 Jan 2013 at 10:18

Add C++11 timer interface as option to code generator

Review, test and add Ward Willats contribution:

https://groups.google.com/forum/#!searchin/yakindu-user/Timer/yakindu-user/WWShB
RXAeMk/a0yxLAfbrjMJ

Make generation configurable through sgen switch.

Original issue reported on code.google.com by markus.muehlbrandt on 29 Sep 2014 at 2:19

Add SCT Compare feature

Add a compare feature for sct files with compare and merge functionallity based 
on GMF compare.

Original issue reported on code.google.com by [email protected] on 29 Sep 2014 at 2:52

Add feature for inner class function visibility

Extend the genmodel feature to set the inner class function/method visibility 
to private or protected.

See forum discussion and contribution from Uri Weiss.

Original issue reported on code.google.com by markus.muehlbrandt on 29 Sep 2014 at 1:50

Simulation will not run - SCT

What steps will reproduce the problem?
1. Install Eclipse 4.2.1
2. Install SCT 2 & Sources from http://updates.yakindu.com/juno/milestones
3. Create New Project - Yakindu Expand Generator Project
4. Create new statechart model
5. Use Run As -> Yakindu Statechart (here simulation will run and show all 
expected transitions)
6. Stop simulation.
7. Close Eclipse.
8. Open Statechar model -> Run as Statechart.


What is the expected output? What do you see instead?
After step 8 nothing will happen. Simulation doesn't run.

What version of the product are you using? On what operating system?
Operating system: Windows 7 SP1, JRE 7, Eclipse 4.2.1, SCT 2

Please provide any additional information below.
Simulation runs after fresh installation of Eclipse. Stops working after 
sometime untill Eclipse is removed and installed again.

Original issue reported on code.google.com by [email protected] on 13 Oct 2012 at 10:30

A StackOverflowError is thrown at the time when the Codegenerator is used

What steps will reproduce the problem?
1. Using "(", ")" as part of a guard

What is the expected output? What do you see instead?
The Generator shouldn´t throw an error and the workflow should finish without 
an error

What version of the product are you using? On what operating system?
Unreleased Helios-Version of Yakindu


Original issue reported on code.google.com by [email protected] on 21 Jun 2010 at 7:01

Add a feature to change operation callback generation behavior

In the actual version of the C++ generator for operations an interface is 
generated which had to be set explicitly on the statemachine.

In an additional variant the callback operations should be static.

Add a feature to setup the generator behavior for this case and adapt the 
generated code.

Original issue reported on code.google.com by markus.muehlbrandt on 29 Sep 2014 at 1:58

No highlighted states for subdiagrams

There is a usability issue regarding the simulation of subdiagrams: If the 
simulation is running and you open a subdiagram via the subdiagram icon, you 
have to restore the simulation context by selecting the active simulation 
session from the Debug view on the top. 

Original issue reported on code.google.com by [email protected] on 29 Sep 2014 at 2:50

statemachine code is not generated when entry code added

What steps will reproduce the problem?
1. open the attached statemachine default.sct
2. right click on generate_all.sgen and select "Generate Model"
3.

The file DefaultStatemachine.c is not generated.
Removing the entry/ part of the state properties of State2 will
result in generating the file again.

using pre-release M06


The file is also not generated when adding event <name> into
the interface field.

Regards,

Ruud

Original issue reported on code.google.com by [email protected] on 29 Nov 2011 at 11:21

Attachments:

SC Simulation errors result in dialog without a message

What steps will reproduce the problem?
1. provoke invalid operation in statechart by for example use invalid action 
expression

What is the expected output? What do you see instead?
A qualified error message should be shown.

Original issue reported on code.google.com by AxelTerfloth on 19 Jun 2010 at 1:49

C++ generator doesn't cleanup it's own interfaces

What steps will reproduce the problem?
1. define an interface with only in events
2. generate cpp code
3. interface is generated in constructor with new but not deleted in destructor.

What is the expected output? What do you see instead?
Revert allocation of the constructor in the destructor.
e.g.

MasterControl::MasterControl() {
    ifaceInternal = new SCI_Internal();
}
MasterControl::MasterControl() {
    delete ifaceInternal;
}

What version of the product are you using? On what operating system?
eclipse luna with yakindu 2.3.1 (OS = Windows)

Please provide any additional information below.
-

Original issue reported on code.google.com by [email protected] on 30 Sep 2014 at 9:05

  • Merged into: #51

SC C-Code-Generator does no generate unique names for states

What steps will reproduce the problem?
1. create a model with parallel regins and states with the same name in each 
reagion. 
2. generate code

What is the expected output? What do you see instead?
unique names (qualified by the region identifier) should be generated.

Original issue reported on code.google.com by AxelTerfloth on 19 Jun 2010 at 1:52

Create SCT C++ Code generator

Create SCT C++ Code generator

Original issue reported on code.google.com by markus.muehlbrandt on 29 Sep 2014 at 2:06

Diagram corrurpted when moving transition label

From the user group:

I observed that before the file was corrupted, during editing in the YAKINDU 
Statechart Editor tool, a transition whose label I was dragging to reposition, 
completely disappeared from the editor when I released the mouse button. Using 
Undo did not undo the disappearance. This same thing had happened to me two or 
three times previously, but those other times I had carefully backed out of the 
editing session.

Original issue reported on code.google.com by [email protected] on 29 Sep 2014 at 1:26

Transition into substate does not recognize parents history context

A transition from state A within a region wit shallow history to state C that 
is substate of state B that is in the same region as state A does not save the 
history state for state B. So if region of A and B is left and entered again 
through the history then A will be activated instead of B.

Original issue reported on code.google.com by AxelTerfloth on 29 Sep 2014 at 1:50

Resize behavior for multiple sub regions is not predictable.

resize behavior of subregions behaves ugly in the context of multiple 
subregions.
- resizing the outer-right region works fine but it also resizes the sibling 
regions 
- resizing of the other regions only work bit by bit to the right - not 
fluently like on the right region.

So:

- horizontal resize of vertically aligned regions must not have any impact on 
the width of the other regions
- vertical resize of horizontally aligned regions must not have any impact on 
the height of the other regions.
- a minimize-handle should be available on any region and the minimize action 
must follow the previous constraints.
- the minimize handle on the parent state is a 'minimize all regions vertically 
and horizontally.


Original issue reported on code.google.com by [email protected] on 29 Sep 2014 at 1:28

active(state) expression is not handled as boolean expression

[active(<state>)] works great to allow a transition when I'm in a
particular state, however, [!active(<state>)] gives a syntax error. I
also tried [active(<state>) != true], but it didn't work either. Does
active(<state>) not return a boolean? It sure would be nice if it did.


What steps will reproduce the problem?
1. define a guard with !active(<state>) 

What is the expected output? What do you see instead?
it is expected that this is a valid expression but an error marker is set 

Original issue reported on code.google.com by AxelTerfloth on 22 May 2012 at 7:05

Synchronisation-Join leads to double entry action call

What steps will reproduce the problem?
1. Take the attached statechart 
2. raise e1 and e2 events until state 'Foo' is reached. 

What is the expected output? What do you see instead?
variable 'x' should be incremented by 1

What version of the product are you using? On what operating system?
 ariable 'x' was incremented twice due to double entry action execution

Please provide any additional information below.

Original issue reported on code.google.com by AxelTerfloth on 20 Dec 2012 at 8:20

Attachments:

Model can not be simulated if operations in named interfaces are used

Hi all,
i have defined a guard for a transition using an operation returning an boolean.
If I use
interface:
operation DummyGuard():boolean 
and I set the value for the operation to true in the simulation view, 
everything works.
If I use
interface DummyName:
operation DummyGuard():boolean 
and use this a my guard, the simulation does not work, this means, the 
transition is never performed. inside the generated code, everything is fine.
Best regards
Manuel

Original issue reported on code.google.com by [email protected] on 29 Sep 2014 at 2:46

Add mechanism to shorten function name length

C99 standard doc:
5.2.4.1 Translation limits
— 63 significant initial characters in an internal identifier or a macro name 
(each universal character name or extended source character is considered a 
single character)
— 31 significant initial characters in an external identifier (each universal 
character name specifying a short identifier of 0000FFFF or less is considered 
6 characters, each universal character name specifying a short identifier of 
00010000 or more is considered 10 characters, and each extended source 
character is considered the same
number of characters as the corresponding universal character name, if any)

C89 only allows 6 characters for identifiers.
Added example statechart for testing

Original issue reported on code.google.com by markus.muehlbrandt on 29 Sep 2014 at 2:02

Handle "open file" gracefully

The SCT editor does not support opening act-files from the file system. The 
editor crashes if this is done.

Original issue reported on code.google.com by AxelTerfloth on 29 Sep 2014 at 1:52

State transactions in simulations makes it difficult to edit variable values

What steps will reproduce the problem?
1. Create 2 Regions. In one region make two states each getting triggered after 
100ms from other state

[state 1]---after 100ms--->[state 2]
[_______]<--after 100ms--->[_______]

2. In region 2 create a variable based transition.

[state 2]---[variable > 1000]--->[state 2]

3. Start simulation.

What is the expected output? What do you see instead?
At normal human speed while simulation is running no one will be able to change 
value of variable to 1000. At max one can write 100 at while simulation is 
cycle based 200ms.


What version of the product are you using? On what operating system?
SCT 2 with Eclipse Juno. Windows 7 SP1.

Original issue reported on code.google.com by [email protected] on 17 Oct 2012 at 2:48

Keybindings do not work (on MacOS):

Try to perform:
* cut
* copy
* paste
* delete
... also for notes

Original issue reported on code.google.com by AxelTerfloth on 29 Sep 2014 at 1:28

Editing values in Statechart View failes

What steps will reproduce the problem?
1.Start simulation 
2. Edit value
3. Enter

The displaed value won't be changed due to an exception. The cause is the 
access to a disposed Text control in the ATableView class (line 408).

Original issue reported on code.google.com by AxelTerfloth on 12 Nov 2010 at 8:05

Bug in C generator

Hello,

generate wrong States.h

#endif STATES_H_

should be 

#endif /* STATES_H_ */

***************************************************************

#ifndef STATES_H_
#define STATES_H_

typedef enum {

      _GPS_main_region_Log, 
      _GPS_main_region_Log_r1_LedGreenOff, 
      _GPS_main_region_Log_r1_LedGreenOn, 
      _GPS_main_region_WaitForFix, 
      _GPS_main_region_WaitForFix_r1_LedOn, 
      _GPS_main_region_WaitForFix_r1_LedOff, 
    last_state

} States;

#endif STATES_H_

Original issue reported on code.google.com by [email protected] on 28 Jun 2012 at 2:04

Add cast expression to stext

Add a cast operator to SText to allow type casting from i.e. double to integer.

var myInt : integer
var myReal : real

myint = (myReal as integer)

Adopt Type Inferrer, Simulation Engine and Code Generators (Java, c, c++, 
javascript)

Original issue reported on code.google.com by [email protected] on 29 Sep 2014 at 2:34

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.