Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 3 of 3

Thread: State diagram

  1. #1
    Junior Member
    Join Date
    Sep 2014
    Posts
    15
    Thanks
    6
    Thanked 0 Times in 0 Posts

    Default State diagram

    I red the following statement the other day:

    >An object has a state that can be represented in a state diagram<

    I don't understand what a state diagram is, or how it can represent an object's state.
    Could someone share some knowledge on this, thank you.

    I also red that a class defines the data associated with each object of that class.
    When it says data, does it mean the variables involved with that object and other information like the name of object?


  2. #2
    Senior Member
    Join Date
    Jul 2013
    Location
    Europe
    Posts
    666
    Thanks
    0
    Thanked 121 Times in 105 Posts

    Default Re: State diagram

    Quote Originally Posted by wamidh View Post
    I red the following statement the other day:

    >An object has a state that can be represented in a state diagram<

    I don't understand what a state diagram is, or how it can represent an object's state.
    Could someone share some knowledge on this, thank you.
    If I had to guess I would say this refers to an UML diagram.
    For more information google for UML state diagrams.

    Quote Originally Posted by wamidh View Post
    I also red that a class defines the data associated with each object of that class.
    When it says data, does it mean the variables involved with that object and other information like the name of object?
    Without context I can only guess that member variables of objects (fields) are meant.
    By the way, objects do not have "names".

  3. #3
    Member jdv's Avatar
    Join Date
    Jul 2014
    Location
    This Land
    Posts
    73
    Thanks
    0
    Thanked 5 Times in 5 Posts

    Default Re: State diagram

    Quote Originally Posted by wamidh View Post
    I red the following statement the other day:

    >An object has a state that can be represented in a state diagram<

    I don't understand what a state diagram is, or how it can represent an object's state.
    Could someone share some knowledge on this, thank you.
    https://en.wikipedia.org/wiki/State_diagram

    In this case, they can mean UML or something else.

Similar Threads

  1. Uml diagram...
    By Flames in forum What's Wrong With My Code?
    Replies: 3
    Last Post: December 1st, 2012, 07:39 PM
  2. State UML Diagram
    By calebite207 in forum What's Wrong With My Code?
    Replies: 2
    Last Post: November 18th, 2012, 11:30 AM
  3. UML Diagram
    By calebite207 in forum Member Introductions
    Replies: 0
    Last Post: September 21st, 2012, 05:42 PM
  4. UML diagram
    By EonsNearby in forum Java Theory & Questions
    Replies: 1
    Last Post: August 26th, 2012, 08:00 PM
  5. UML Diagram Help
    By chizzle in forum What's Wrong With My Code?
    Replies: 1
    Last Post: April 15th, 2010, 04:12 AM