Trying DynaCASE in Pharo 5

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Trying DynaCASE in Pharo 5

hernanmd
Hello,

I'm trying DynaCASE modeling platform in latest Pharo 5 installing with the following script:

Metacello new
    baseline: 'DynaCASE';
    repository: 'github://dynacase/dynacase/repository';
    load.

When I click both

DC Finite State Machine -> FSM Example Divisibility
DC Finite State Machine -> FSM Example Decimal

I get

MessageNotUnderstood: receiver of "handlesAnnouncement:" is nil

So my question is how should I install DynaCASE to get a functional version?

Cheers,

Hernán








Reply | Threaded
Open this post in threaded view
|

Re: Trying DynaCASE in Pharo 5

Peter Uhnak
Hi Hernán,

could you please try the latest build
https://ci.inria.fr/pharo-contribution/job/DynaCASE/lastSuccessfulBuild/PHARO=50,VERSION=development,VM=vm/artifact/DynaCASE.zip

I'm in the process of integrating FAMIX model so it's bit unstable.

Peter

On Wed, Sep 23, 2015 at 1:32 AM, Hernán Morales Durand
<[hidden email]> wrote:

> Hello,
>
> I'm trying DynaCASE modeling platform in latest Pharo 5 installing with the
> following script:
>
> Metacello new
>     baseline: 'DynaCASE';
>     repository: 'github://dynacase/dynacase/repository';
>     load.
>
> When I click both
>
> DC Finite State Machine -> FSM Example Divisibility
> DC Finite State Machine -> FSM Example Decimal
>
> I get
>
> MessageNotUnderstood: receiver of "handlesAnnouncement:" is nil
>
> So my question is how should I install DynaCASE to get a functional version?
>
> Cheers,
>
> Hernán
>
>
>
>
>
>
>
>

Reply | Threaded
Open this post in threaded view
|

Re: Trying DynaCASE in Pharo 5

hernanmd
Thank you Peter, I have to build a FSM and your tool is what I need.

Do you plan to add a code generator?

I am writing a Code Generator (not in public state for now) and we could join forces. I've seen a few Smalltalk FSM implementations out there, but I am thinking about generation of this kind of code  http://smalltalkhub.com/#!/~MasashiUmezawa/SState

Hernán


2015-09-22 20:36 GMT-03:00 Peter Uhnák <[hidden email]>:
Hi Hernán,

could you please try the latest build
https://ci.inria.fr/pharo-contribution/job/DynaCASE/lastSuccessfulBuild/PHARO=50,VERSION=development,VM=vm/artifact/DynaCASE.zip

I'm in the process of integrating FAMIX model so it's bit unstable.

Peter

On Wed, Sep 23, 2015 at 1:32 AM, Hernán Morales Durand
<[hidden email]> wrote:
> Hello,
>
> I'm trying DynaCASE modeling platform in latest Pharo 5 installing with the
> following script:
>
> Metacello new
>     baseline: 'DynaCASE';
>     repository: 'github://dynacase/dynacase/repository';
>     load.
>
> When I click both
>
> DC Finite State Machine -> FSM Example Divisibility
> DC Finite State Machine -> FSM Example Decimal
>
> I get
>
> MessageNotUnderstood: receiver of "handlesAnnouncement:" is nil
>
> So my question is how should I install DynaCASE to get a functional version?
>
> Cheers,
>
> Hernán
>
>
>
>
>
>
>
>


Reply | Threaded
Open this post in threaded view
|

Re: Trying DynaCASE in Pharo 5

hernanmd
I just re-checked the DynaCASE video and it has its own textual FSM way :)

A little thing that could be added is to generate an empty FSM after creating the project
For example:

| fsm init |
fsm := DCFsm named: 'SRS FSM'.
init := DCFsmInitialState new.
fsm addAll: { init }.
DCWorkbench openOnDiagram: fsm.

Cheers,

Hernán



2015-09-22 23:25 GMT-03:00 Hernán Morales Durand <[hidden email]>:
Thank you Peter, I have to build a FSM and your tool is what I need.

Do you plan to add a code generator?

I am writing a Code Generator (not in public state for now) and we could join forces. I've seen a few Smalltalk FSM implementations out there, but I am thinking about generation of this kind of code  http://smalltalkhub.com/#!/~MasashiUmezawa/SState

Hernán


2015-09-22 20:36 GMT-03:00 Peter Uhnák <[hidden email]>:
Hi Hernán,

could you please try the latest build
https://ci.inria.fr/pharo-contribution/job/DynaCASE/lastSuccessfulBuild/PHARO=50,VERSION=development,VM=vm/artifact/DynaCASE.zip

I'm in the process of integrating FAMIX model so it's bit unstable.

Peter

On Wed, Sep 23, 2015 at 1:32 AM, Hernán Morales Durand
<[hidden email]> wrote:
> Hello,
>
> I'm trying DynaCASE modeling platform in latest Pharo 5 installing with the
> following script:
>
> Metacello new
>     baseline: 'DynaCASE';
>     repository: 'github://dynacase/dynacase/repository';
>     load.
>
> When I click both
>
> DC Finite State Machine -> FSM Example Divisibility
> DC Finite State Machine -> FSM Example Decimal
>
> I get
>
> MessageNotUnderstood: receiver of "handlesAnnouncement:" is nil
>
> So my question is how should I install DynaCASE to get a functional version?
>
> Cheers,
>
> Hernán
>
>
>
>
>
>
>
>



Reply | Threaded
Open this post in threaded view
|

Re: Trying DynaCASE in Pharo 5

Peter Uhnak
> Do you plan to add a code generator?

Unfortunately right now I am fully focusing on UML Class Diagrams, and
I have limited resources (my time), and has only 26 hours.
I will start writing a code generator for UML next month, but that has
somewhat different semantics to FSM.

> I am writing a Code Generator (not in public state for now) and we could join forces. I've seen a few Smalltalk FSM implementations out there, but I am thinking about generation of this kind of code http://smalltalkhub.com/#!/~MasashiUmezawa/SState

I'd be very happy to collaborate!

The MesashiUmezawa/SState looks quite good; the semantics seem closer
to UML StateMachine than FSM, but that's fine, because it's more
powerful.
Also using model maintained by someone else would free my hands to
focus on the application itself.

So while I currently don't have the time to implement this myself, I
would be very happy to help you in any way (documentation, examples,
explanations, etc.) if you are up for the task.

> I just re-checked the DynaCASE video and it has its own textual FSM way :)

FSM has just a Smallltalk DSL (shown in the beginning).

The textual representation (at the end of the video) is related to
BORM, which is quite a different beast. (Also I rewrote it since then,
because what's in the video was just a proof-of-concept.)

But then again creating a better Smalltalk DSL or a textual DSL (with
the help of PetitParser) is quite easy and fun. :-)

>
> A little thing that could be added is to generate an empty FSM after
> creating the project

I'm assuming you created the project from the "DynaCASE" world entry;
I don't think that it should create FSM by default because there are
two more models (UML Class diagram and BORM), so it doesn't now which
one to pick.
What I can do is add a button or something where you can select what
kind of initial diagram you want.

However right now you can click on the "DC Finite State Machine" world
entry (it has a submenu with examples, but don't click on the
examples, click on the entry itself) --- this opens a new empty FSM
diagram.

Peter