Questions tagged [state-diagram]

71 questions
0
votes
2 answers

Android Media Player

I am attempting to play a sound using a MediaPlayer object, but I cannot seem to get it to work despite my best efforts. The sound simply refuses to play. It's a short sound, that is supposed to be played when the screen is touched, meaning it will…
rolledback
  • 165
  • 2
  • 12
0
votes
0 answers

SOP Boolean expression of state variable and output of a Moore FSM

Disclaimer: I'm studying for an exam, but I don't have to hand in anything. I have the state transition diagram of the FSM and its states encoding: I want to find the Sum-Of-Products Boolean expression of S10 , S11 and ouput y. I've drawn…
0
votes
1 answer

Make explicit in UML state diagram that order of activities does not matter

Have a UML state diagram describing behaviour of a system by showing the interaction of the user and the system to carry out a use case. This diagram is used as agreement (requirement) with the developers of the system. When the user request to…
MABC
  • 576
  • 2
  • 11
  • 29
0
votes
1 answer

DFA languages & state diagrams

I am getting confused as a construct some state diagrams of the DFA, I am currently working through a problem with the constraint that {w | w is any string not in a*b*}. I do not understand what a*b* means exactly, can someone summarize that for me,…
anonymous
  • 19
  • 3
0
votes
1 answer

May I know why EQ=1, but the output no response?

I am trying to build a Finite State Machine vending machine which consists of Datapath Unit and Control Unit. The attached links is the Control unit which consists the input of EQ(Equal), GT(Greater) and product. When product is "1" and either EQ or…
Tang
  • 11
  • 2
0
votes
1 answer

UML state diagram definition

In a state machine diagram, actions can be executed within states and also during transitions? This definition is true or false?
0
votes
1 answer

PlantUml sequence diagram to state diagram

Is there any way to convert a sequence diagram into a state diagram automatically? I have searched on google about how to do it, but unfortunately I haven't found anything yet. Thank you very much in advance. Best regards.
0
votes
2 answers

graphviz state machine with self loops

I am trying to create a state machine diagram using graphviz and I am having trouble making it display nicely. This is the diagram described in dot language: digraph finite_state_machine { node [shape = point]; PWRON node…
0
votes
0 answers

Creating a state diagram for a simple loop function

I have a simple function just returning the mirror image of the string passed. The code looks as follows: function reverse(str){ let reversed = ""; for (var i = str.length - 1; i >= 0; i--){ reversed +=…
0
votes
0 answers

Binary Number Divisible by N using Single Logic Gate

Given a 16-bit register A holding a number in 2’s complement form, use a single gate (e.g., AND, OR, XOR, NAND, NOR, NOT) with an arbitrary number of inputs to implement a circuit that produces an output 1 if the number is divisible by 16, and an…
0
votes
2 answers

action as state in UML state diagram

In this video a part of an UML state chart can be seen : However, the "provide funds" state is an action. How does that make sense ? Is it possible for a state to be an action (verb) ? Should the "provide funds" action not be rather a transition…
jhegedus
  • 20,244
  • 16
  • 99
  • 167
0
votes
0 answers

Submachine state in enterprise architect

How to create a submachine state in enterprise architect 13, where the state represents a state machine and links you to it? If exported to XMI, the state should have an ID tag that points you to the state machine.
0
votes
1 answer

Boolean expression from a State machine diagram

I'm having trouble to determine the boolean equation for Q1 and Q2. What I did was to input the values into a karnaugh-map. But since the state Diagram only consists of 3 states (00, 01 and 11), I'm a bit unsure of how to setup the Karnaugh. I know…
0
votes
1 answer

State Diagram Confusion with Events

I finished a state diagram in regards to an auction system and had it sent for feedback. I received a confusing feedback. "The stuff within the big blue thingie are actually events, not state of the objects itself" Here is the mentioned state…
ilovetaufu
  • 25
  • 4
0
votes
1 answer

State Machine Diagram - Transition from all states

I build a UML state diagram and have a case where same transition to specific state exists from most of other states. What is the most elegant solution to draw it? Currently I though about two options: 1) Use junction pseudo-state with exit to my…
Alex Michel
  • 416
  • 3
  • 13