Software Construction: Object States
Cards to learn object states
Cards to learn object states
13
0.0 (0)
Kartei Details
Karten | 13 |
---|---|
Sprache | Deutsch |
Kategorie | Informatik |
Stufe | Universität |
Erstellt / Aktualisiert | 01.01.2020 / 10.01.2020 |
Lizenzierung | Keine Angabe |
Weblink |
https://card2brain.ch/box/20200101_software_construction_object_states
|
Einbinden |
<iframe src="https://card2brain.ch/box/20200101_software_construction_object_states/embed" width="780" height="150" scrolling="no" frameborder="0"></iframe>
|
Object State (Definition)
The state of an object refers to:
- the pieces of information the object represents at a given moment
- the actions that the object can perform at a given moment
Object State Definitions (3)
State Space: Set of all possible states for an object.
Concrete State: Value(s) stored at a given moment.
Abstract State: Arbitrarily-defined subset of the state space.
State Space Partitioning (Definition)
The software design task of state space partitioning is to define abstract states that correspond to characteristics that will help construct a clean solution.
Design Principle for State Space
Minimize the state space of objects to what is absolutely necessary for the object to fulfill its responsibilities.