RobotML / Athena-VLE

This project is dedicated to the definition of the specifications of *Athena* and *VLE* generator from **RobotML** models
0 stars 0 forks source link

Generation of state machine #10

Closed patinusb closed 10 years ago

patinusb commented 11 years ago

I will follow here much of my problems on the generation of state machines...

transitions are not generated into the stateset machine (inside the "begin end" tags) when they are defined in the model.

patinusb commented 11 years ago

You can find an example in the PEGASEN0Envt Model in PEGASEN0BootstrapDynamic diagram. It gives the adl

stateset PEGASEN0BootstrapDynamic { RunningN0PegaseEnvt, InitN0PegaseEnvt } = InitN0PegaseEnvt begin end

patinusb commented 11 years ago

Quels sont les éléments dans le modèle qu'il faut remplir pour avoir une génération de ce type ?

event initializing { time == 0 }
stateset ModelState { INIT, RUNNING } = INIT begin
    transition from INIT to RUNNING on initializing
end
patinusb commented 11 years ago

When considering the code above athena transition should be linked to robotML transition through:

transition name: not used transition guard should be the condition on which the transition is triggered. As it is it is associated to transition effect should be the event triggered

Problem is that I don't see where to define events

nbrodnan commented 11 years ago

Trigger are not used in RobotML.

To define an event, speciy an OpaqueBehavior oInitializing with body's value has time == 0. Create an operation specification "Initializing" on this behavior.

To assign the event, go in the RobotML tab on the transition, and select the operation "Initializing" for the the transition guard.

patinusb commented 11 years ago

please do document this in the sphinx project for athena generation specificities.