wood burning stoves 2.0*
The moose likes Jython/Python and the fly likes state diagram Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Languages » Jython/Python
Bookmark "state diagram" Watch "state diagram" New topic
Author

state diagram

Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30123
    
150

I am used to seeing something like this as a state diagram:

image from http://upload.wikimedia.org/wikipedia/commons/b/bc/Mealymachine_jaredwf.png

"Think Python" uses state diagram to mean the states of the variables. Where does this later use come from? Does either diagram have an alternate name?


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Allen Downey
Author
Greenhorn

Joined: Sep 07, 2012
Posts: 25

Hi Jeanne,

"State diagram" has several meanings in different contexts. The diagram you showed is a finite state machine. In UML, a state diagram usually shows the states of an interactive system and the events that cause transitions between states.

In Think Python I use the term in a slightly non-standard way, to refer to a diagram that shows the state of a running program. In UML it would be called an object diagram, but at the point in the book where I introduce state diagrams, we don't know about objects yet.

Allen

All of my books are available from http://greenteapress.com
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: state diagram
 
Similar Threads
Good Java blog for Java developers??
PA #1.....picture association