[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-655936-105":59,"doc-detail-655936-en":130,"doc-similar-655936":162},{"code":4,"msg":5,"data":6},0,"success",[7,13,18,23,28,33,38,43,48,51,55],{"id":8,"doc_module":4,"doc_module_name":9,"category_name":10,"show_sort_weight":11,"slug":12},1,"Document","Story & Novel",90,"story-novel",{"id":14,"doc_module":4,"doc_module_name":9,"category_name":15,"show_sort_weight":16,"slug":17},2,"Literature",80,"literature",{"id":19,"doc_module":4,"doc_module_name":9,"category_name":20,"show_sort_weight":21,"slug":22},4,"Exam",70,"exam",{"id":24,"doc_module":4,"doc_module_name":9,"category_name":25,"show_sort_weight":26,"slug":27},5,"Comic",60,"comic",{"id":29,"doc_module":4,"doc_module_name":9,"category_name":30,"show_sort_weight":31,"slug":32},6,"Technology",50,"technology",{"id":34,"doc_module":4,"doc_module_name":9,"category_name":35,"show_sort_weight":36,"slug":37},7,"Healthcare",40,"healthcare",{"id":39,"doc_module":4,"doc_module_name":9,"category_name":40,"show_sort_weight":41,"slug":42},8,"Research & Report",30,"research-report",{"id":44,"doc_module":4,"doc_module_name":9,"category_name":45,"show_sort_weight":46,"slug":47},9,"Religion & Spirituality",20,"religion-spirituality",{"id":46,"doc_module":4,"doc_module_name":9,"category_name":49,"show_sort_weight":46,"slug":50},"World Cup","world-cup",{"id":52,"doc_module":4,"doc_module_name":9,"category_name":53,"show_sort_weight":52,"slug":54},10,"Lifestyle","lifestyle",{"id":56,"doc_module":4,"doc_module_name":9,"category_name":57,"show_sort_weight":24,"slug":58},19,"General","general",{"code":4,"msg":60,"data":61},"ok",{"site_id":62,"language":63,"slug":64,"title":65,"keywords":66,"description":67,"schema_data":68,"social_meta":123,"head_meta":125,"extra_data":127,"updated_unix":129},105,"en","relationships-between-class-diagrams-object-diagrams-and-ocl-invariants-invariants-and-object-diagram-constraints","Relationships between Class Diagrams, Object Diagrams and OCL Invariants - Invariants and Object Diagram Constraints","","Explains the relationship between UML class diagrams and object diagrams through the use of OCL invariants. Covers fundamental constructs of class diagrams (classes, attributes, datatypes, associations, roles, and multiplicities) and the interpretation of these constructs in object diagrams via objects, unique identities, value assignments, and links. Demonstrates how specific association instances such as WorksFor and WorkerBoss define object diagrams, and how exchanging roles changes diagrams. Introduces invariants for restricting object diagrams, including invariant context and fulfillment.",{"@graph":69,"@context":122},[70,84,105],{"@type":71,"itemListElement":72},"BreadcrumbList",[73,77,79,82],{"item":74,"name":75,"@type":76,"position":8},"https://docshare.wps.com","Home","ListItem",{"item":78,"name":9,"@type":76,"position":14},"https://docshare.wps.com/document/",{"item":80,"name":40,"@type":76,"position":81},"https://docshare.wps.com/document/research-report/",3,{"item":83,"name":65,"@type":76,"position":19},"https://docshare.wps.com/document/relationships-between-class-diagrams-object-diagrams-and-ocl-invariants-invariants-and-object-diagram-constraints/655936/",{"url":83,"name":65,"@type":85,"image":86,"author":91,"headline":65,"publisher":94,"fileFormat":97,"inLanguage":63,"description":67,"dateModified":98,"datePublished":99,"encodingFormat":97,"isAccessibleForFree":100,"interactionStatistic":101},"DigitalDocument",{"url":87,"@type":88,"width":89,"height":90},"https://docshare.wps.com/thumbnails/relationships-between-class-diagrams-object-diagrams-and-ocl-invariants-invariants-and-object-diagram-constraints/655936.png","ImageObject",300,407,{"name":92,"@type":93},"cimolpedes","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-26","2026-10-25",true,{"@type":102,"interactionType":103,"userInteractionCount":34},"InteractionCounter",{"@type":104},"ViewAction",{"@type":106,"mainEntity":107},"FAQPage",[108,114,118],{"name":109,"@type":110,"acceptedAnswer":111},"How does a class diagram relate to object diagrams?","Question",{"text":112,"@type":113},"A class diagram is interpreted as the set of all possible object diagrams. Each class in the diagram is interpreted by a finite set of objects in a specific object diagram.","Answer",{"name":115,"@type":110,"acceptedAnswer":116},"What does an attribute mean in an object diagram?",{"text":117,"@type":113},"An attribute is interpreted in an object diagram by assigning datatype values to that attribute for all relevant objects, forming a value assignment.",{"name":119,"@type":110,"acceptedAnswer":120},"How do OCL invariants restrict object diagrams?",{"text":121,"@type":113},"OCL invariants restrict the object diagrams by specifying invariant contexts and conditions that must be fulfilled. Invariant fulfilment determines whether a given object diagram satisfies the constraints.","https://schema.org",{"og:url":83,"og:type":124,"og:title":65,"og:site_name":95,"og:description":67},"article",{"robots":126,"canonical":83},"index,follow",{"doc_id":128,"site_id":62},655936,1793073372,{"code":4,"msg":5,"data":131},{"doc_id":128,"user_id":132,"nickname":92,"user_avatar":133,"doc_module":4,"category_id":39,"category_name":40,"doc_title":65,"doc_description":67,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":34,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":139,"language":140,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":141,"faqs":142,"seo_title":143,"seo_description":67,"update_tm":144,"read_time":145,"preview_page_count":19,"preview_urls":146},962094243610,"https://ap-avatar.wpscdn.com/davatar_3d24733baf745e90a7e4bdd5f77d97b2","Relationships between  \nClass Diagrams, Object Diagrams and OCL Invariants  \nMartin Gogolla University of Bremen  \nOutline  \n● Running example  \n● Basic concepts in class diagrams  \n● Class, attribute, association  \n● Basic concepts in object diagrams  \n● Object, value assignment, link  \n● Invariants for restricting object diagrams  \n● Invariant context  \n● Invariant fulfilment  \nBasic class diagram concepts  \n● Class with class name  \n● Attribute with attribute name and datatype  \n● Datatype with datatype name  \n● refers to a set of datatype values and  \n● to datatype operations  \n● Association with association name  \n● Role with role name  \n● Role multiplicity with lower and upper bound  \ndatatypes = { Integer, String } classes = { Person, Company }  \nassociations =  \n{ WorksFor( 1..* : employee : Person, 0..1 : employer : Company), WorkerBoss( 0..1 : boss : Person, 0..* : worker : Person) }  \nattributes =  \n{ Person :: name : String, Person :: age : Integer, Person :: salary : Integer, Company :: name : String }  \noperations =  \n{ Company :: sumSalary() : Integer }  \nobjects [ Person ] = { ada, bob, cyd } objects [ Company ] = { ibm, sun }  \nvalues [ Person::name ] ={ ada → 'Ada Alewife', bob → 'Bob Baker',  \ncyd → 'Cyd Cook' } values [ Person::age ] = …  \nvalues [ Person::salary ] = …  \nvalues [ Company::name ] =    \nBasic object diagram concepts (for classes, attributes)  \n● Class diagram interpreted by the set of all possible object diagrams  \n● Each single class interpreted in an object diagram by a finite set of objects  \n● Each object has an object identity that is unique in the object diagram  \n● Each class attribute interpreted by assigning a datatype value to the attribute for all relevant objects  \nobjects [ Person ] = { ada, bob, cyd } objects [ Company ] = { ibm, sun }  \nlinks [ WorksFor ] =  \n{ (employee:ada, employer:ibm),(employee:bob, employer:ibm),(employee:cyd, employer:sun) }  \nlinks [ WorkerBoss ] =  \n{ (worker:bob, boss:ada) }  \nExchanging the WorkerBoss link roles gives a different object diagram  \nBasic object diagram concepts (for associations)  \n● Each single association interpreted in an object diagram by  \na (finite) set of links (finiteness implied by finite object set)  \n● A link connects two (or more) objects  \n● A link can be considered as a tuple of object identities together with roles  \n● A link uses (association) roles to describe the character that an object plays in the link  \nSummary  \n● Class diagram → Set of all object diagrams  \n● In an object diagram  \n● Class cs → Finite set of objects for cs  \n● For object ob, attribute at → Value assignment for at in ob  \n● Association as → Finite set of links for as  \nExchanging any WorkerBoss link role gives a different object diagram","cbCaikCeoQaDJPkb","https://ap.wps.com/l/cbCaikCeoQaDJPkb","pdf",454333,29,"English","# Outline\n## Running example\n## Basic concepts in class diagrams\n## Basic concepts in object diagrams\n## Invariants for restricting object diagrams\n## Invariant context\n## Invariant fulfilment","[{\"question\":\"How does a class diagram relate to object diagrams?\",\"answer\":\"A class diagram is interpreted as the set of all possible object diagrams. Each class in the diagram is interpreted by a finite set of objects in a specific object diagram.\"},{\"question\":\"What does an attribute mean in an object diagram?\",\"answer\":\"An attribute is interpreted in an object diagram by assigning datatype values to that attribute for all relevant objects, forming a value assignment.\"},{\"question\":\"How do OCL invariants restrict object diagrams?\",\"answer\":\"OCL invariants restrict the object diagrams by specifying invariant contexts and conditions that must be fulfilled. Invariant fulfilment determines whether a given object diagram satisfies the constraints.\"}]","Relationships between Class Diagrams, Object Diagrams and OCL Invariants - Invariants and Object Diagram Constraints | PDF",1792964999,73,[147,151,155,158],{"page_no":8,"url":148,"width":149,"height":150},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/05e53dc5e44c2f7a8ae62362556f5c22.webp",983,736,{"page_no":14,"url":152,"width":153,"height":154},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/28ddd38ee64dd8d21c525794e73ca0a2.webp",982,735,{"page_no":81,"url":156,"width":157,"height":154},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/f297cce6ff3163e56989edc7470bbf19.webp",981,{"page_no":19,"url":159,"width":160,"height":161},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/8d44084b7a1b7216c473eb0ffb2d4373.webp",980,734,{"list":163,"token":66},[164,170,177,183,189,195,201,207,213,219],{"doc_id":165,"doc_title":166,"file_type":137,"home_preview_img_url":167,"slug":168,"view_count":29,"category_name":40,"create_tm":169},655935,"Class Diagrams - Part 1","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229974780575/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796235539&Signature=HD1GTV7oHz5EBcfpTiFkMSU7FEY%3D","class-diagrams-part-1",1792964996,{"doc_id":171,"doc_title":172,"file_type":137,"home_preview_img_url":173,"slug":174,"view_count":175,"category_name":40,"create_tm":176},655751,"ISO/IEC 19505-2:2012(E) - Unified Modeling Language (OMG UML), Superstructure - Table of Contents","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229974776395/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796235539&Signature=jbm8kmmvoq39OfbF4aFG7BSdZtM%3D","isoiec-19505-22012e-unified-modeling-language-omg-uml-superstructure-table-of-contents",12,1792963556,{"doc_id":178,"doc_title":179,"file_type":137,"home_preview_img_url":180,"slug":181,"view_count":24,"category_name":40,"create_tm":182},655782,"UML - Abstraction as a Criterion for Defining Class Diagrams and Object Diagrams","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229974776873/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796235539&Signature=KmXRNrzzq%2FUXhOv%2FnTCJYoEuEn4%3D","uml-abstraction-as-a-criterion-for-defining-class-diagrams-and-object-diagrams",1792963744,{"doc_id":184,"doc_title":185,"file_type":137,"home_preview_img_url":186,"slug":187,"view_count":29,"category_name":40,"create_tm":188},655549,"An Overview of Structural UML Diagrams - Structural UML Diagrams Overview","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975284991/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796235539&Signature=eANv0XdeG1CVBgpdSrQPnq5HQFE%3D","an-overview-of-structural-uml-diagrams-structural-uml-diagrams-overview",1792962572,{"doc_id":190,"doc_title":191,"file_type":137,"home_preview_img_url":192,"slug":193,"view_count":44,"category_name":40,"create_tm":194},655937,"Class and State machine Reﬁnement in UML-B","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975294603/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796235539&Signature=Qc5en2WOgKKQVf0r5VJOXEqw1Ck%3D","class-and-state-machine-refinement-in-uml-b",1792965012,{"doc_id":196,"doc_title":197,"file_type":137,"home_preview_img_url":198,"slug":199,"view_count":34,"category_name":40,"create_tm":200},665334,"Defining Atomic Composition in UML Behavioral Diagrams","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229983828155/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796235539&Signature=ESRTjctlSh%2Bwx1xZtCYxROKoIzo%3D","defining-atomic-composition-in-uml-behavioral-diagrams",1793298356,{"doc_id":202,"doc_title":203,"file_type":137,"home_preview_img_url":204,"slug":205,"view_count":39,"category_name":40,"create_tm":206},655701,"ROLE OF UML SEQUENCE DIAGRAM CONSTRUCTS IN OBJECT LIFECYCLE CONCEPT","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229974776054/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796235539&Signature=n4bnAHed4ewA9KJ2pzzWVLdKw5o%3D","role-of-uml-sequence-diagram-constructs-in-object-lifecycle-concept",1792963372,{"doc_id":208,"doc_title":209,"file_type":137,"home_preview_img_url":210,"slug":211,"view_count":29,"category_name":40,"create_tm":212},655835,"On the Veriﬁcation of UML/OCL Class Diagrams using Constraint Programming","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229974778541/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796235539&Signature=Nd6Uk%2BaMcb%2FXZFq2F5hd7HpRDJA%3D","on-the-verification-of-umlocl-class-diagrams-using-constraint-programming",1792964169,{"doc_id":214,"doc_title":215,"file_type":137,"home_preview_img_url":216,"slug":217,"view_count":44,"category_name":40,"create_tm":218},655546,"UNIFIED MODELING LANGUAGE (UML) OVERVIEW - Document","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975284951/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796235539&Signature=3BbT59EyotIOxqfrt%2BZLsmNl5N4%3D","unified-modeling-language-uml-overview-document",1792962562,{"doc_id":220,"doc_title":221,"file_type":137,"home_preview_img_url":222,"slug":223,"view_count":52,"category_name":40,"create_tm":224},655642,"Enhanced Classification of UML Class Diagram Components Using Deep Learning for IT and Engineering Solutions","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975286523/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796235539&Signature=MTzaC%2BLXBl4KqOyJnKvq%2FUogOrU%3D","enhanced-classification-of-uml-class-diagram-components-using-deep-learning-for-it-and-engineering-solutions",1792962987]