Domain Constraints
Domain Constraints
CONSTRAINTS
ASYIREEN IZZUAN BIN ALIAS
KHALED ALAMERI
3 2 1R55640 .70
4 1 2Q77980 425.00
5 1 7Y00124 29.75
Three distinct rules can be designed to check the validity of states, actions,
and terminators in accordance with the state-transition model:
i. State domain constraint - Limits the set of allowed states to only those shown in
the state-relational model.
ii. Action domain constraint - Limits the set of allowed actions to only those shown
in the state-relational model.
iii. Terminator domain constraint - Limits the set of allowed terminators which
refer to states in which an object can start
and end its life cycle.
A. Domain Constraints
For the password state-transition model discussed in this diagram, the domain
constraints take the following form:
• State domain consists of seven values: Start (S), First Try (1st T), Second Try
(2nd T), Third Try (3rd T), Fourth Try (4th T), Close Application (CA), Access (A).
• Action domain consists of three values: Enter Agent Name, Incorrect
Password, Correct Password
• Only Access (A) state is allowed to access.
Agent history data that violates all three constraints
• The record marked (1) has invalid stat code, likely a typo.
• The record marked (2) has invalid action cod Coroect Password, also a typo.
• The record marked (3) is the Incorrect Password and must have state code (CA)
THANK YOU