answersLogoWhite

0

A constraint is used to express a condition, restriction or assertion related to some of the semantics of a model element.

Constraint is a condition which must evaluate to true by a correct design of the system. For example, bank account balance constraint could be expressed as:

{balance >= 0}

Constraint in UML is usually written in curly braces using any computer or natural language including English, so that it might look as:

{account balance is positive}

UML prefers OCL as constraint language.

User Avatar

Wiki User

15y ago

What else can I help you with?

Related Questions

What is stereotype in UML?

Stereotype is a profile class which defines how an existing UML metaclass may be extended as part of a UML profile. Profiles allow lightweight extension of the standard UML by defining custom stereotypes, tagged values, and constraints for different:platforms (such as J2EE or .NET), ordomains (such as real-time or business process modeling).In other words, if existing UML metaclasses are not good enough, you can add your custom stereotypes by modifying standard UML metaclasses.


What is latest version of UML?

The latest version of UML is UML 2.4 (beta), released in January 2011.


Disadvantage of using uml?

UML has high learning curve.


How can referential integrity be enforced in an object-oriented system in uml?

Referential integrity in an object-oriented system can be enforced using UML by defining associations between classes with multiplicity constraints. By specifying these constraints (such as 1 to 1, 1 to many, etc.), you ensure that instances of one class are properly connected to instances of another class. This helps to maintain data consistency and integrity within the system.


What are the difference between ERD and UML?

what is the difference between ERD and UML Flowcharts.


Is Microsoft Visio an UML?

UML is visual language - various rectangles, ovals, lines, arrows, etc. each having special meaning and used to draw different diagrams.Microsof Visio is software product that you can purchase to draw UML diagrams on your computer. There are many other UML tools that you can get even for free to draw UML diagrams. Or you can draw UML diagrams with a pencil on a piece of paper.


What is the roleof aldosterone?

Aldosterone will cause Na+ to be absorbed from a filtrate


How uml diagrams for social networking site will be made?

See examples of different types of UML diagrams, select which diagrams you need, find a tool to draw UML diagrams.


Differences or similarities between OMT and UML?

OMT is a modelling technique and UML is a Modelling language. OMT stands for object modelling technique and is given by Jim Rambaugh . UML is unified Modelling language and has a layered architecture.


How do to draw UML diagrams of calculator functions addition subtraction division etc?

uml diagram for calculator


Why uml is called unified?

the uml is as its name suggests,a unification of a number of earlier object oriented languages,


How do you draw a UML diagram for Website?

UML 2.4 has 14 different types of diagrams, so you will need to draw not one diagram but several of those. See provided link for online shopping UML examples which provides examples of several common types of UML diagrams.