These are flashcards an notes made by students on topics like 'state', 'behavior' and 'transition', originating from:

- Michael Jesse Chonoles
ISBN-10 0128096403 ISBN-13 9780128096406
1335 Flashcards & Notes
  • This + 400k other summaries, also in PDF!
  • A unique study and practice tool
  • Never study anything twice again
  • Get the grades you hope for
  • 100% sure, 100% understanding
Remember faster, study better. Scientifically proven.
Trustpilot Logo

Study Cards on state, behavior, transition

How do we model a transition?
By a directed line (an arrow) from the starting state to the ending state.
Each transition involves exactly ........ State(s)
Each transition involves exactly two states, though the starting and ending states may be the same
What is a Vertex?
Any nontransition element that a transition can enter or leave
While an object is in a state, it also can be...
What happens if there is more than one transition into a state?
When there is more than one transition into a state, they all take the entry/behavior after they execute their transition-specific behavior.

It is not possible to bypass the common behavior indicated by the entry/behavior.
What is the majos use of an entr/behavior?
to identify and specify the common behavior needed to set up or initialize the state, as it is executed on of any of the ways in.

For example:
entry/behavior is often used to initialize state attributes. If you use the entry/behavior in this way, you will need to:

(1) check that it belongs on all entry transitions and

(2) remove the behavior from the transitions (you do not want them to execute twice).
When is a state complete?
As soon as a state finishes its entry/behavior, if there no do/activity for the state, the state is complete
Which format does a internal transition follows and where is it placed?
An internal transition follows the format of a transition [event (guard)/behavior] but does not have a start or end state.

It is placed inside the body of the state, sometimes in a separate compartment
What are internal transitions in this diagram?
The two lines at the bottom of the state represent internal transitions
  • Higher grades + faster learning
  • Don't study anything twice
  • 100% sure, 100% understanding
Discover Study Smart