Wednesday 6 February 2013

State


A state is the condition of an object at an instance of time.

For example a phone is in an idle state it is taken off the hook

A state representation can be divided into three sections

  • state name
    • this is supplied regardless of whether the state representation is subdivided or not
  • state variable
    • three commonly used state variable are entry, exit and do. A good example of an object that has state variables is a fax machine
  • activities
    • these represent action that can be carried out during the state

No comments:

Post a Comment