| || |
Would anyone be able to advise me on how to draw up a state diagram? I am very new to this and could do with some helpful advise.
Re: State Diagrams
<BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by shaunaward:
Would anyone be able to advise me on how to draw up a state diagram? I am very new to this and could do with some helpful advise.<HR></BLOCKQUOTE>
Well, I assume you know they are used in object-based systems. So the state diagram (or state-transition diagram, more appropriately) will show you all the possible states that objects of a given class can be in and which events can cause them to change. Put another way: they show how the object's state changes as a result of events that are handled by the object.
The states are represented by state symbols (usually rounded rectangles) and the transitions are represented by arrows connecting the state symbols. You might want to check out this link:
That gives one example of a UML resource that shows a state (or state-change diagram).
Basically you have a bunch of rectangles connected by arrows. The rectangles are a certain state that the system can be in. Obviously the system can move from state to state and that is shown by arrows that connect states. If an arrow from one state does not connect to another state direcetly, then that means no event can cause that direct transition. (Although it might be that the state can be entered indirectly.) The insides of the rectangles describe the events that can occur to cause a state change - i.e., moving from one rectangle to another.
Does some of that help? I do not want to keep babbling in case I am getting off target of what you need.