Drawing state diagrams?

hello,
my problem is about drawing state diagrams with java.
I have a database that stores the states and transitions.
I want to draw state diagrams with the data in this database.
I use simple Graphics object to draw. It was a bit successfull.
However the API of Graphics are not enough for this job (like: drawLine, drawOval etc.)
For example I can not draw oval lines and I can not associate any string to this lines properly. Or it is very hard to do.
So,
Is there any classes to help me while drawing state diagrams or
any simple way to make this?
Like using a Tool that will take my database as an input and draw all state diagrams.
Thanks

firstly
thanks for your advices.
I created my objects. Actually I drawed simple diagrams.
I used oval for every state. And I decided 4 points on a state to connect another state. (points are obvious). And an algorithm to connect to state with proper points.
And I drawLine from one oval to another.
Then I drawString to the connection point of the first state. (for the description of transition like T23).
This works for simple diagrams,
but for complex ones it doew not work.
First problem is when s1->s2 and s2->s1 It only draws 1 line (normally). This problem is not so important.
Second problem is the labels. When T1 is s1->s2 and T2 is s1->s3 It was confusing one point but two label which one goes to s1? Simply ! can not write label on line.
So that I look for a present library or algorithms to draw diagrams.

Similar Messages

  • State diagram: how to start??

    hi, i'm kinda new to UML diagramming and i hope you can help me in this...
    i have already drawn the use case for my project scenario, a class diagram, sequence/collaboration, activity diagrams.
    my problem is how do i start with a state diagram...i know it's about describing one (mebe more but usually one) object's behaviour throughout its lifetime, but how do i describe that in the diagram? do i need an object diagram for this (i didn't draw this diagram because i don't see any reason to yet)?
    can u guys teach me how to draw step-by-step the state diagram plz? thx....
    gildan2020

    yes, activity diagrams and state diagrams are related.
    While activity diagrams focus on the process.
    I normally do a state diagram and then do an activity diagram for the tricky transitions, or processes during a state. Therefor I identify the necessary activity diagrams by looking at my state diagram, but I guess it works the other way round as well. Very often I end up having one part of the behaviour modeled as activity diagram and one part as state diagram
    I find state diagram helpfull if an object has a certain behaviour at one point in time and a different behaviour at another time. Screenflow of a webapplication is one of my favorite examples. Each screen represents a state. Each link a transition. Even non technical users understand this very well.
    If you want to display such a behaviour in an activity diagram you end up with tons of decissions, while a state diagram shows the possibilities very visual.
    And no you don't have to have an object diagram before that. In some cases you will want to create one in the next step in order to clarify how an object 'looks like' when it is in a certain state.
    regards
    Spieler

  • Problem using state diagram in labview 8.6

    Hi all,
    I have a state diagram toolkit which come with lv7.1.
    But after I install in lv8.6 folder, it has a problem.
    I cannot modify the diagram that I create in lv7.1 before.
    Thanks.
    robert
    Solved!
    Go to Solution.

    Hi Robert,
    At the moment I'm pulling 12 hour days just to keep up with the paid LabVIEW work I have, so I'm afraid that if you wait for me to put this code together for you, you may be waiting a long time. 
    However, if you follow through with the tutorial I posted as well as the tutorial installed with the documentation installed along with the Statechart module it should really help you. 
    To make a simple statechart diagram is really not much more complicated than doing the same with the older tool.  
    A page that shows a direct comparison between the old tool and the new can be found here:  http://zone.ni.com/devzone/cda/tut/p/id/6194
    There is also another example you can open here:  http://zone.ni.com/devzone/cda/epd/p/id/5437
    Good luck. 
    Patrick Allen

  • How can I find and install the state diagram toolkit and how to--

    Hi,
    I like to do practice how to do coding by using state diagram toolkit. For that purpose I need to install that software. Can you please help me in this regard about how to get theat toolkit and install afterwards?
    I have another question. By using VI snippets, I can extract the meaning of a particular VI/node/function block or whatever may be. Is there anyway to extract meaning in case that screenshot is not a snippet?
    Also, can you tell me about how to start from scratch for using labview in building algorithm and coding? any resource?
    Thank You.

    The state diagram toolkit is an addon and it has license fees. It's install is available on the complete set of install disks.
    There is no other way to extract code besides using snippets.
    You can find lots of information here regarding LabVIEW training including online options. You can also go through the tutorials that ship with LabVIEW.
    Mark Yedinak
    "Does anyone know where the love of God goes when the waves turn the minutes to hours?"
    Wreck of the Edmund Fitzgerald - Gordon Lightfoot

  • Where can i find the chassis file for import in MAX for drawing connection diagram before purchasing

    where can i find the chassis file for import in MAX for drawing connection diagram before purchasing
    chassis: NI PXIe-1078
    thx

    This board is for an obsolete product called Measure - an add-on for Excel. Please repost with details on exactly what you mean by 'chassis file'.

  • State Diagram inside For Loop

    I created a fairly involved for-loop with a flat sequence inside of it.  The sequence had about four events that occured, and since it was kind of ugly, I thought I'd try the State Diagram Toolkit to replace the majority of the code.  When I selected state diagram from the pallete, I was outside my for-loop.  I drew up the various states/transitions, then realized that all this code needed to be inside the for-loop, but LV won't let me place state diagram-generated code inside the for-loop.  I select everything related to the state diagram, but when I drag into the for-loop, only the comments come inside.  I even tried generating a new for-loop and placing the state code inside.  No luck. Any thoughts?

    "Any thoughts?"
    Yes but not any that will help.
    1) Just modify your SD so that the exit loops back to the start while there are still things to do. Forget the outer For loop.
    2) THe observations you reported are correct. When I first discovered these limitiations I said "That sucks!". Since then I have learned a bit and have grown to love the SDE.
    The SDE is JUST (note: "just" is a four letter word around here ) a LV application that ofers a very limited GUI consisting of a picture control that then scripts (see LAVA Scripting Forum for info on scripting) your SD for you. SCripting LV code is no easy task. My experiments with scripting has shown that I have to keep a database of the contents of the LV diagram my code is developing to keep track of what is where. Well it turns out that the structure of a LV diagram is a lot like the structure of a FP in that you start with a "root" object either the FP or the BD. THe BD then has structures on it, like seq's loops etc with unlited nesting possible.
    Now the SD created by the SDE is really just a fancy while loop with an case structure and code to support the driving enum. In order for you to be able to edit the SD the SDE needs to know what is htere already so it can show the diagram. It "KNOWS" by looking at its internal DB (I believe is stored inside of VI along with the enum.ctl) of the SD. To keep the DB updated, the SDE must be used to manipulate the SD.
    Stop rambling and guessing and get to the point!
    Moving the SD is just not supported by the SDE so it can not be done. To do so would require the SDE be able to "look" at the diagram, and repeat all of its work in the new location in the diagram.
    BTW: Thank you for trying out and asking about the SDE. the more talking we do on this subject, the sooner the SDE will be updated.
    My SDE wishlist (partial)
    Add comments to diagram from SDE screen.
    Add data structures to SD (shift registers) from SDE screen.
    Add "un-do".
    Select multiple objects on SDE screen and move or allign.
    Select multiple objects on SDE screen and do "create sub-State-Diagram".
    Allow watching more than one SDE in execution highlighting at the same time.
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • How to create state diagram (for state machine)

    Hallo  all.
    In my previous visit here, i saw picture of state diagram (bubbles with connection),
    How to create that in labview (if there is such option) ?
    or, which other software create state diagram.
    thanks  

    There is the State Diagram Toolkit (additional tool from NI for LabVIEW) with good interface and unreadable code
    It gives you a State Diagram Editor at Functions palette.
    It is very good tool for state diagram visualization, but readability of the code is controversial.
    When you will get a clear picture of a diagram from State Diagram Editor, I suggest use classic state diagram pattern: case structure driven by typedef enum in while loop.
    Regards
    Mikrobi (Zbigniew St. Sobków)____________________________________________________________
    "You can lead a horse to water, but if you can get him to float on his back you've got something."

  • State Diagram "Single Step" execution mode

    Hello,
    I am realtively new to LabView, at least the 8.0 version I am currently using. Used it when it first came out some xx years ago :-)
    I am using the State Diagram Toolkit to create a test vi. I am able to create a SubVI of the test vi. I did **not** have to unlock the generated code to do this, and I could still open the subvi diagram in the State Editor later.
    However, if I in the State Diagram Editor select "Execution Mode" to "Single Step", then LabView 8.0 crashes when I save the vi.
    Please help me on this one, as I would like to explore using subvi's developed using the State Diagram Toolkit and the Single Step execution mode.
    (I have indeed searched without finding the solutiion to this problem)
    Also, if anyone have an examples on how to use a "Single Step" subvi developed with the State Editor Toolkit, I would appreciate this !
    (Especially how to return the next state from the subvi and use it in the next call)
    Tips and examples appreciated !
    Geir Ove
    Geir Ove

    Hi,
     A work around has been found for the issue. If after changing the state diagram type to single-step, you make a change to the block diagram then you can save with out a problem. There are two easy ways of doing this.
    1.  One is to add a new state to the state chart after changing the mode (this can be deleted after the save).
    2.  The other is adding a Boolean constant to the block diagram (which can also be deleted after the save). Adding a control on the front panel or moving a label in the block diagram is not enough.
    Regards,
    Frode

  • How to draw ER Diagrams ?

    Hi All,
    I recently installed SQL Developer 1.5.1 and like the cool features of it. But I cannot find the option to draw ER Diagrams to show the relationship between different tables. This feature is in Toad so I think it should be there in SQL Developer also.
    Please help!!
    Thanks!
    Yogini

    Berny has given you the correct link:
    http://www.oracle.com/technology/products/database/sql_developer/files/Modeling.html
    This is initial early adopter release and it is a standalone version. Future versions will be integrated into SQL Developer and a repository is planned. I've been playing around with a few models and am very pleased with what I see.
    Maggie Tompkins, USMC

  • State Diagram Editor window never appears

    When I follow the directions in the State Diagram Toolkit.pdf manual(page 4) and drag and drop a state diagram tool onto an empty block diagram, the editor window never appears, only the block diagram code appears. I bet it's something really simple, but i'm baffled. Thanks for any suggestions.
    Win XP
    Pent4 2.2G
    LabVIEW 7.1 Development System
    Already tried reinstalling LView and StateDToolkit...

    "It really is a nice tool."
    Ditto that!
    I go reaching for it any time I can not "see" the code I need.
    In LV 7.1 they changed the operation of the SDE such that only one SDE window can be open at a time. In LV 7.0 you could have more than one open at a time.
    Try what Odd_Modem suggested and let us know if it does not show up.
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • State diagram toolkit

    I am writing a program for an ATE product. I inherited a LV state machine design from an older piece of equipment that was written conventionally (without the diagram). I have started to design my new architecture using the State Diagram Toolkit. I like it! I'm assuming I can write/develop subvi's, too with state diagrams. Is this toolkit as truly automatic as it appears? Any drawbacks? Any tips? Anyone have any horror stories? Or cudos from the boss or customer?
    Paul
    7.1.1
    PaulG.
    "I enjoy talking to you. Your mind appeals to me. It resembles my own mind except that you happen to be insane." -- George Orwell

    Unlocking the diagram should only be done if an application needs to be modified and it will NEVER be edited using the SDE ever again.
    It is possible to right click on the enum and edit the typedef.
    When done save the control and you should be on your way.
    Ben
    Message Edited by Ben on 05-19-2006 08:17 AM
    Message Edited by Ben on 05-19-2006 08:18 AM
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction
    Attachments:
    warn.JPG ‏71 KB
    Open.JPG ‏23 KB

  • How to draw BC diagram neatly in jDev ?

    Hi all,
    This could be silly question, but It really takes time for me to draw the Business Component Diagram neatly in JDeveloper. When I try to re-arrange the messy lines, they're very difficult to controll although I've pressed SHIFT at the same time.
    Thank you for any help,
    Krist

    Krist,
    Please see the page http://www.oracle.com/technology/software/products/jdev/index.html which describes the different versions.
    In 10.1.3 we have 3 different versions, a Java Edition, a J2EE Edition and a Studio Edition. Both the Java and J2EE Edition are available to download as Previews. Studio Edition is still in development. The Business Components Diagram will be in the Studio Edition with the rest of the Business Component/ADF functionality. The rest of the Modelers are available in the J2EE edition.
    Thanks,
    Lisa

  • Drawing Network Diagrams For Virtualized Networks.

    Hi guys, 
    I'm looking at drawing up simple network diagrams of the virtualised servers and IP addresses.. To make it easier to remember the IPs of the virtual machines and the hypervisor, which can get confusing at times. Is there any basic starting diagram I could
    use to give a simple, clear visual representation of the virtualized network, which I could then use as a template for drawing custom network diagrams for my clients. 
    nb. I dont have visio, but I have photoshop my plan would be to get an image file and just edit this as required. 
    thanks, 
    J

    Hi Jonathan,
    it's a little bit off topic, but maybe my answer can help you.
    I know that problem from my own environment. Recently we started to use VeeamOne (free version with a few limitations) for Monitoring the Workload on our Hosts and VMs. 
    A nice feature is that you can have an overview of the VMs per Host, including DNS-Name and IP-Address.
    Maybe you want to have a look at it. 
    Best Regards,
    Jens
    jensit.wordpress.com

  • Drawing RTL diagrams?

    Anyone know any tool to draw diagrams based on IEEE Graphic Symbols for Logic Functions standard (http://focus.ti.com/lit/ml/sdyz001a/sdyz001a.pdf)? Something similar to CircuiTikZ would be great, but anything else goes too.

    JohnnyAce wrote:
    salinas_v wrote:
    I have used inkscape but I'm sure it's not the best option.
    If you find something, please share.
    You have any ready inkscape shapes to share?
    Not really. I haven't needed to do that much documentation (yet).
    There are 3+ VLSI CAD programs in AUR.
    Alliance: http://aur.archlinux.org/packages.php?ID=22230
    Electric: http://aur.archlinux.org/packages.php?ID=28150
    Magic: http://aur.archlinux.org/packages.php?ID=16979
    Magic-devel: http://aur.archlinux.org/packages.php?ID=36249
    Have anyone tried any of this?
    basov wrote:
    dia actually has some pretty good shapes
    http://live.gnome.org/Dia/Examples
    and it has a few export options as well
    From screenshots and examples it doesn't looks like it would work for EE Digital Design.

  • How to draw class diagram in Visio 2013

    Hi All,
    Recently, I purchase a Visio 2013 Pro. I have used Visio 2010 before. In Visio 2013,
    Compared with Visio 2010, There are BIG changes in Visio 2013. I have several questions for Visio 2013.
    1. I don't know how to set in/out parameter in Visio 2013 class diagram.
    2. How to set parameter type(such as Int/String) in Visio 2013?
    3. How to add Method for a Class and set its parameters?
    And so on.
    Thank You.
    The future belongs to those who believe in the beauty of their dreams.

    Hi All,
    Recently, I purchase a Visio 2013 Pro. I have used Visio 2010 before. In Visio 2013,
    Compared with Visio 2010, There are BIG changes in Visio 2013. I have several questions for Visio 2013.
    1. I don't know how to set in/out parameter in Visio 2013 class diagram.
    2. How to set parameter type(such as Int/String) in Visio 2013?
    3. How to add Method for a Class and set its parameters?
    And so on.
    Thank You.
    The future belongs to those who believe in the beauty of their dreams.

Maybe you are looking for

  • I cant copy,then paste eg a small pic,or a joke to pass on(I,m new to firfox)

    I am new to firfox,Ihave come over from ie8,when i want to copy..then paste something it does,nt work,when I r/click,select copy,then in my message r/click and paste == This happened == Every time Firefox opened == when i tried it

  • Problem in credit control area

    Hi Gurus, We  have configured credit control area using Static Credit check. We have assigned the same to order type and delivery type also. While creating sales order, even though the total value is crossing the credit limit which is set in FD32. th

  • Web service 302 object moved error

    Hi All, Last week, IT changed the configuration on our Cisco content switch to redirect every page request to https. Everything seems to be working properly except for our Web services, which I can't seem to consume at all. Here's the error we keep g

  • Account Determination for Sales Order Stock

    hi all, Iam facing problem while doing MIGO against production order in a make to order scenario. The whole scenario is - sales order is made with reference to which a production order is created. The material carries standard cost for valuation. The

  • Help required about MD61

    Hi all, My client wants to enter the demand for a carton of cigars in MD61.each carton contains 12 packs and each pack 10 cigars.Now they do not want to have seperate material number for cartons.So i can not use the carton as header material in BOM a