What is a State?
(Tutorial Page 13)
State is an abstraction of the attribute values and links of an object
A Car's power affects Car speed
Engine speed is an attributes that affects Car speed
A gear that the Car is in affects the behavior (or constrains) the Car speed.
Set of values are grouped together into a set which affect the behavior of the object
The combination of power, engine speed and gear are grouped into each state
State ignores attributes which are irrelevant to the behavior of an object.
When looking at the behavior of the Car, its color is irrelevant to the Car state.
A state specifies the response of an object to an input event
Depress Accelerator might be events that affect the state of the car.
Depress Accelerator is an event, the speed of the car is its state.
A state corresponds to an interval (a pause) between two events
The car is in a state of normal speed (normal being 70MPH), an event Brake or
Accelerate, affects the resultant state.
A state has duration, it takes time compared to an event
|-Previous Slide-|
-Next Slide-|
-Table of Contents-|
-List of Tutorials-|
-Home Page-|
-Disclaimer-|
If desired, insert comments for ooanly13
Your Email Address(Optional)
Action
Copyright © 1997 Object Ideas Corporation --- Last Updated January 15, 1997