Questions tagged [state-diagram]

71 questions
1
vote
1 answer

How and where to end this finite state machine program working?

I have written this program from a diagram given to me. I just can't figure out where and how to stop it from running. It keeps asking for inputs forever. Where to add exit command in my program? Any idea? Thank you. INCLUDE Irvine32.inc .data A…
bob vance
  • 31
  • 6
1
vote
2 answers

State transition with only a guard in UML state diagrams

As far as I understand, you can do a transition in UML state diagrams for example with: Event[Guard]/Action Event[]/Action Event http://www.sparxsystems.com/resources/uml2_tutorial/uml2_statediagram.html Is it also possible/valid in UML to have a…
ge45mue
  • 677
  • 8
  • 23
1
vote
1 answer

How to derive the RegEx from the state diagram?

I found a state diagram of a DFA (deterministic finite automaton) with its RegEx in a script, but this diagram is just a sample without any explanations. So I tried to derive the RegEx from the DFA state diagram by myself and got the expression:…
PatrickSteiner
  • 495
  • 4
  • 26
1
vote
1 answer

Regular Expression to Deterministic Finite Automata

How would you convert this RE to a DFA? (a+aab)*b I'm having trouble drawing the state diagram for this one. I'm not sure where to start, especially with the arbitrary number of a's involved.
Pvo
  • 153
  • 7
1
vote
1 answer

Finite State Automata for a coin change-machine

I'm trying to build a table to describe the behaviour of the FSA for a coin change machine described below. There is a slot that accepts a 50c coin and 2 buttons that a user can press to get a 20c or 10c coin as change. As soon as the 50c coin is…
1
vote
1 answer

Explaining Computation of a Turing Machine

I am having some trouble interpreting what this Turing machine actually does (i.e., I am uncertain how to explain it in plain English). I believe I have created the state diagram correctly using the transition table I was given (although not 100%…
1
vote
1 answer

UML state diagram: cross-orthogonal region triggers

I'm in the process of getting my head around UML state digrams while analysing the states that one of our customers can have. I'm attempting to use a composite state with orthogonal regions in which one state in one reason is the trigger for at…
hendrikus
  • 11
  • 1
1
vote
2 answers

How to model this process using a state diagram?

I am modelling a process using an UML state diagram. Here is some pseudo-code that determines the current state: function getAccountState(customer) { if (authorizationRequired(customer)) { return State.AUTHORIZATION_REQUIRED } …
Thomas Eizinger
  • 1,404
  • 14
  • 25
1
vote
2 answers

Difference between event and guard uml modeling

I don't really see the difference between a guard and an event in state diagram , what I can see is that an event is an action that has been launched or something like that and a guard is a just a condition but I think it's more profound than that I…
Abdelaziz Dabebi
  • 1,624
  • 1
  • 16
  • 21
1
vote
3 answers

How to construct a State Diagram for a Class?

I'm trying to build a state diagram derived from the class diagram for the Support Manager Class. Here is the class diagram (reputation <10 so can only provide link): http://i.imgur.com/3wFO9Gu.png This is the state diagram that I have constructed…
user3507121
  • 79
  • 1
  • 10
1
vote
1 answer

UML behavioral state diagram: entry and exit point ownership implications for orthogonal states

In UML (let's take specification 2.4.1), when considering orthogonal composite states, entry and exit points belong either to the (enclosing) composite state or to the region the entry / exit point is drawn in. So which is it? I cannot find this…
1
vote
0 answers

parameterized statecharts (M1 level) versus instantiated ones (M0 level)

What is the differences between parameterized statecharts (M1 level) and instantiated ones (M0 level) ?
Chriss
  • 1,011
  • 1
  • 13
  • 22
1
vote
1 answer

What is the corresponding representation of state machine diagram in coding phase(written in programming language)?

State machine diagram represents the life-cycle of object so, What is the corresponding of it(state machine as local view of object) in programming level?
Chriss
  • 1,011
  • 1
  • 13
  • 22
1
vote
1 answer

How the state machine describes the dynamic behaviour of use cases

As I read through UML reference Manual chapter 7,state machine view ,page 81: the state machine describes the dynamic behaviour of use cases Could you Please illustrate the above quoted sentence through simple example ?
user2019510
  • 1,460
  • 5
  • 16
  • 29
1
vote
3 answers

Tool for printing SDL/PR diagrams

Sadly UML has virtually killed SDL (Specification and Description Language, ITU Z.100) and finding useful tools supporting SDL is hard today. I want to print state diagrams and I remember that I have used a free tool years ago. It was a windows…
hlovdal
  • 26,565
  • 10
  • 94
  • 165