FSMViz Version 0.3

FSMViz for pureMVC StateMachine Utility

FSMViz for pureMVC StateMachine Utility


source code here:
http://puremvc-utilities.googlecode.com/svn/tags/fsm_viz_0.3

OK, so I’ve added the ability to open from JSON or XML and also to decode to them. Originally, I was just going to save out to JSON as the main “file-type”, and export to an AS3 file, but after Jason MacDonald suggested it would be good to export/import the xml, I thought why not, it only took an hour.

The only things to note are that the XML looses all the meta data that the JSON preserves. And secondly, because of this, it can only import XML that uses the naming conversions outlined below.

Naming convertions:

  • States will have all white spaces removed and have title case. Thus “Data aquisition” becomes “DataAquisiton”
  • Actions will have white spaces removed and have camel case. Thus “Acquisition failed” becomes “aquisitionFailed”
  • In addition to the above a prefix will be added to further define the name:
  • State names will have the prefix “state/”. Thus “Data aquisition” becomes “state/DataAquisiton”
  • Action names will have the prefix “action/”. Thus “Acquisition failed” becomes “action/aquisitionFailed”
  • Entering notification names will have the same name as their associated state, but with a prefix “entering/”. Thus the entering notification name for the state “Data aquisition” will be “entering/DataAquisiton”
  • Exiting notification names will have the same name as their associated state, but with a prefix “exiting/”. Thus the exiting notification name for the state “Data aquisition” will be “exiting/DataAquisiton”
  • Changed notification names will have the same name as their associated state, but with a prefix “changed/”. Thus the entering notification name for the state “Data aquisition” will be “changed/DataAquisiton”
  • I think that these are pretty uncontentious with the exception of the choice of delimiter for the prefix. This I think will be changable by the user.

    All I have to do now is that all important conversion to an AS3 file, then I can rip the whole thing apart and rebuild it.

    So, any suggestions as to deployment? Air, online with php service?, Zinc? (Zinc? LOL only joking!)

    4 thoughts on “FSMViz Version 0.3

    1. An AIR app would be cool – gives you file access and things of that nature. I would probably like it in that form, rather then an online service.

    2. thanks Jos.

      I was planning on creating the app as a module (with in its own mvc core) which is i/o agnositc, and relays every thing to a shell that can be deploy specific.

      I was leaning towards an air app myself, but didn’t want to jump the gun…

    3. cheers dave.
      am in the middle of rebuilding it as a flex module, with an Air shell.
      It did also occur that it would be cool to be able to make an eclipse plugin…

    Leave a Reply

    Your email address will not be published. Required fields are marked *