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

Updated 26 Nov 20266 min read
Object Modeling Technique (OMT): Three Models and One Worked Example

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.

OMT functional-model flowchart: loanLimit 5 and activeLoans 4 yield remainingAllowance 1; the request passes the 1 <= 1 check and ends in Approve, while the boundary case 5 yields Reject.

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:

  1. Evaluate. Compute 5 - 4 = 1. Both 1 <= 1 and availability are true, so L9 receives approve and moves Requested -> Approved. M17 and B42 have not changed yet.

  2. Issue. L9 moves Approved -> Issued. M17's activeLoans changes from 4 to 4 + 1 = 5, and B42's available changes from true to false.

  3. Return. L9 moves Issued -> Closed. M17's activeLoans changes from 5 to 5 - 1 = 4, and B42's available returns to true.

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.

Three-panel OMT diagram: object relationships for M17, L9 and B42; the Requested-to-Closed and rejection state paths; and a trace table showing active-loan and availability changes.

6. OMT model-selection traps and how to repair them

Four traps cause most model-selection mistakes:

  1. 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.

  2. 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.

  3. 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.

  4. Blaming the class diagram for unsafe execution. Correct Member, Loan and BookCopy links do not stop issue before approve. 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 multiplicities means the object model.

  • Requested -> Approved after evaluate means the dynamic model.

  • remainingAllowance = 5 - 4 = 1 means 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.