Object Modeling Technique (OMT): Three Models and One Worked Example
Learn the three OMT views by applying structure, state changes and data transformation to the same library-loan request.
KnowledgeGate Team
Exam prep & CS education

An object-oriented system cannot be understood from a class diagram alone. Structure tells you what exists, but not the order in which events occur or how an input becomes an output. Object Modeling Technique separates these concerns into object, dynamic and functional models. A library-loan case gives all three models exact values, so an exam scenario can be classified by its concern rather than by a familiar noun.
1. Object Modeling Technique uses three views of one system
Object Modeling Technique (OMT) is an object-oriented analysis and design method that studies one system through three complementary models. The object model asks, "what exists and how is it related?" The dynamic model asks, "what changes, in what order and after which event?" The functional model asks, "what inputs are transformed into which outputs?"
OMT model | Primary concern | Main elements | Question clue |
|---|---|---|---|
Object | Static structure | Classes, attributes, associations and multiplicities | Nouns and relationships |
Dynamic | Behaviour over time | States, events, transitions, actions and guards | Order, lifecycle or valid next state |
Functional | Data transformation | Processes, data flows, inputs and outputs | Calculation, processing or derived result |
These are not competing designs. None can substitute for the other two because each answers a different question about the same system. The broader Object Oriented Technology explanation supplies useful background on classes and the four OOP pillars.
2. The OMT object model captures static structure
A class describes a kind of entity, while an object is one instance of that class. Member M17 is an object with the attribute activeLoans = 4. BookCopy B42 has available = true. Loan L9 has requestedCopies = 1 and initially state = Requested. Operations name services an object can perform, while associations and multiplicities define legal links between objects.
In this model, one Member may have 0..5 active Loans. Each Loan belongs to exactly 1 Member and concerns exactly 1 BookCopy. Each BookCopy may participate in 0..1 open Loan. This structure establishes ownership and valid relationships, but it cannot tell us whether approval must precede issue. For implementation context, the OOPs concepts in Java worked-interview guide connects classes, inheritance and polymorphism to Java without changing the OMT boundary.
3. The OMT dynamic model captures states, events and valid order
A state records an object's current condition. An event is something that happens, a transition moves the object from one state to another, an action performs accompanying work, and a guard is the condition that must be true before a transition is allowed.
For Loan L9, the legal success path is Requested -> Approved -> Issued -> Closed. A rejection follows Requested -> Rejected. The relevant events are evaluate, issue and return. Approval uses the guard remainingAllowance >= requestedCopies AND BookCopy.available = true.
The issue event is valid only from Approved. If it arrives while L9 is still Requested, the state does not change and the system reports an invalid transition. When return occurs, L9 moves from Issued to Closed, and B42 becomes available again. A correct class model can therefore permit wrong behaviour if event order, guards and allowed transitions are missing. The dynamic model catches scenarios in which confirmation, payment, approval or delivery happens too early.
4. The OMT functional model captures data transformation
The functional model is OMT's process-and-data-flow view. It identifies inputs, transformations, data stores and outputs. A data-flow diagram is its usual representation, but the important point is the boundary: this model does not own class relationships or lifecycle order.
Use loanLimit = 5, activeLoans = 4, requestedCopies = 1 and BookCopy.available = true. First compute remainingAllowance = 5 - 4 = 1. Next test requestedCopies <= remainingAllowance, giving 1 <= 1, which is true. Combine eligibility with availability: true AND true = true. The output is decision = Approve.
Now test the boundary with activeLoans = 5. The remaining allowance is 5 - 5 = 0. The test 1 <= 0 is false, so false AND true = false. The output is decision = Reject. This arithmetic belongs to the functional model. The resulting approve or reject event belongs to the dynamic model.

5. Worked OMT example: model and execute the same loan request
Begin with one snapshot. M17 has activeLoans = 4, the limit is 5, B42 has available = true, and L9 requests 1 copy while in Requested. Before executing anything, separate responsibility. The object model owns M17, B42, L9 and their multiplicities. The functional model computes eligibility. The dynamic model controls the legal event sequence.
Trace the success path in order:
Evaluate. Compute
5 - 4 = 1. Both1 <= 1and availability are true, so L9 receivesapproveand movesRequested -> Approved. M17 and B42 have not changed yet.Issue. L9 moves
Approved -> Issued. M17'sactiveLoanschanges from4to4 + 1 = 5, and B42'savailablechanges fromtruetofalse.Return. L9 moves
Issued -> Closed. M17'sactiveLoanschanges from5to5 - 1 = 4, and B42'savailablereturns totrue.
For a separate boundary variant, reset the snapshot with M17 already at activeLoans = 5, B42 still at available = true, L9 at Requested, and requestedCopies = 1. The functional result is Reject because the remaining allowance is 0. The dynamic model takes Requested -> Rejected. L9 never becomes an active open Loan, and B42 remains true.
The division of labour is exact. Structure alone cannot enforce order. A state machine alone does not define the allowance calculation. A data-flow calculation alone does not establish who owns the Loan.

6. OMT model-selection traps and how to repair them
Four traps cause most model-selection mistakes:
Choosing object whenever the stem names classes. Find the verb. If the question asks what changes after an event, choose dynamic. If it asks how a value is derived, choose functional. Choose object for structure and relationships.
Calling every arrow dynamic. Check its label. State, event and transition arrows belong to the dynamic model. Input, process and output arrows belong to the functional model.
Treating
approve()as a complete behaviour specification. The object model may name this operation, but the dynamic model determines when the event is legal and from which state.Blaming the class diagram for unsafe execution. Correct Member, Loan and BookCopy links do not stop
issuebeforeapprove. The missing guard and transition rule are the actual defects.
7. How exams test OMT models and techniques
OMT questions usually ask you to identify the model for states, events and transitions, or the model for operations and data transformations. A larger scenario may require a three-way mapping of structural, behavioural and processing views. Another common shape asks which missing model allowed an invalid event order or state change. Practise by labelling the concern represented in each stem before choosing a model.
Use these rapid prompts:
classes plus multiplicitiesmeans the object model.Requested -> Approved after evaluatemeans the dynamic model.remainingAllowance = 5 - 4 = 1means the functional model.
Answer according to the concern being represented, not whichever noun appears first. A stem may mention a Loan object while actually testing an event sequence or calculation.
8. The short version and the next practice step
Use one three-lens test: object means structure, dynamic means time and state, and functional means transformation. Redraw the M17-B42-L9 example once from memory, including 5 - 4 = 1, the approval guard and the four-state success path. For an optional next step, use GATE Guidance by Sanchit Sir for a sequenced GATE CS route, the Java course for implementing OOP ideas, or the Coding & Skills category for the broader learning path.
Keep learning
C++ Constructors and Object Initialization: Techniques, Order and a Worked Trace
Learn how C++ chooses default, parameterised, delegating and copy constructors, then trace member states and initialization order through complete code.
C++ Constructors MCQs: 12 Solved Object-Initialization Questions
Solve 12 published C++ constructor questions by tracing object creation, copy semantics, arrays, access, virtual rules, and dynamic allocation.
C++ Rule of Three, Five and Zero: Safe Object Copying and Moving
Follow one four-integer Buffer from a dangerous shallow copy to correct copy and move operations, then remove the lifetime code with std::vector.
Enhanced and Specialized Data Models in DBMS: EER and Object Models Worked Step by Step
Build a partial-overlapping PERSON hierarchy, test its EER constraints, and translate the same four identities into relations and persistent objects.





