ISO IEC 19507-2012 Information technology - Object Management Group Object Constraint Language (OCL)《信息技术 对象管理组织对象约束语言 (OCL)》.pdf
《ISO IEC 19507-2012 Information technology - Object Management Group Object Constraint Language (OCL)《信息技术 对象管理组织对象约束语言 (OCL)》.pdf》由会员分享,可在线阅读,更多相关《ISO IEC 19507-2012 Information technology - Object Management Group Object Constraint Language (OCL)《信息技术 对象管理组织对象约束语言 (OCL)》.pdf(244页珍藏版)》请在麦多课文档分享上搜索。
1、 Reference number ISO/IEC 19507:2012(E) ISO/IEC 2012INTERNATIONAL STANDARD ISO/IEC 19507 First edition 2012-04-15 Information technology Object Management Group Object Constraint Language (OCL) Technologies de linformation Langage de contraintes orient-objet (OCL) de lOMG ISO/IEC 19507:2012(E) COPYR
2、IGHT PROTECTED DOCUMENT ISO/IEC 2012 All rights reserved. Unless otherwise specified, no part of this publication may be reproduced or utilized in any form or by any means, electronic or mechanical, including photocopying and microfilm, without permission in writing from either ISO at the address be
3、low or ISOs member body in the country of the requester. ISO copyright office Case postale 56 CH-1211 Geneva 20 Tel. + 41 22 749 01 11 Fax + 41 22 749 09 47 E-mail copyrightiso.org Web www.iso.org Published in Switzerland ii ISO/IEC 2012 All rights reservedISO/IEC 19507:2012(E) ISO/IEC 2012 - All ri
4、ghts reserved iii Table of ContentsForeword . ixIntroduction . x 1 Scope . 1 2 Conformance 1 3 References . 2 3.1 Normative References .2 3.2 Informative References 2 4 Terms and Definitions 3 5 Notational Conventions 3 6 Additional Information 3 6.1 Changes to Adopted OMG Specifications 3 6.2 Struc
5、ture of the Specification .3 6.3 Acknowledgements 4 7 OCL Language Description 5 7.1 General 5 7.2 Why OCL? 57.2.1 Where to Use OCL 5 7.3 Introduction 67.3.1 Legend . 67.3.2 Example Class Diagram . 67.3.3 Character Set . 7 7.4 Relation to the UML Metamodel .77.4.1 Self . 77.4.2 Specifying the UML Co
6、ntext 77.4.3 Invariants . 87.4.4 Pre- and Postconditions . 87.4.5 Package Context . 97.4.6 Operation Body Expression . 97.4.7 Initial and Derived Values 97.4.8 Other Types of Expressions 10 7.5 Basic Values and Types .107.5.1 Types from the UML Model . 117.5.2 Enumeration Types 117.5.3 Let Expressio
7、ns . 117.5.4 Additional operations/attributes through definition expressions . 127.5.5 Type Conformance 12ISO/IEC 19507:2012(E) iv ISO/IEC 2012 - All rights reserved7.5.6 Re-typing or Casting 137.5.7 Precedence Rules 147.5.8 Use of Infix Operators 147.5.9 Keywords . 157.5.10 Comment . 167.5.11 Inval
8、id Values . 16 7.6 Objects and Properties .167.6.1 Properties: Attributes . 177.6.2 Properties: Operations . 177.6.3 Properties: AssociationEnds and Navigation 187.6.4 Navigation to Association Classes . 207.6.5 Navigation from Association Classes . 217.6.6 Navigation through Qualified Associations
9、217.6.7 Using Pathnames for Packages . 217.6.8 Accessing overridden properties of supertypes . 227.6.9 Predefined properties on All Objects . 227.6.10 Features on Classes Themselves 237.6.11 Collections . 247.6.12 Collections of Collections . 257.6.13 Collection Type Hierarchy and Type Conformance R
10、ules . 257.6.14 Previous Values in Postconditions . 257.6.15 Tuples 26 7.7 Collection Operations .277.7.1 Select and Reject Operations 277.7.2 Collect Operation . 287.7.3 ForAll Operation . 297.7.4 Exists Operation . 307.7.5 Closure Operation 307.7.6 Iterate Operation 31 7.8 Messages in OCL .327.8.1
11、 Calling operations and sending signals . 327.8.2 Accessing result values . 337.8.3 An example 33 7.9 Resolving Properties 34 8 Abstract Syntax 35 8.1 Introduction .35 8.2 The Types Package .358.2.1 Type Conformance 388.2.2 Operations and Well-formedness Rules for the Types Package . 40 8.3 The Expr
12、essions Package 428.3.1 Expressions Core . 438.3.2 FeatureCall Expressions 458.3.3 If Expressions 478.3.4 Message Expressions 48 8.4 Literal Expressions .498.4.1 Let Expressions . 528.4.2 Well-formedness Rules of the Expressions package . 538.4.3 Additional Operations on UML metaclasses 60ISO/IEC 19
13、507:2012(E) ISO/IEC 2012 - All rights reserved v 8.4.4 Additional Operations on OCL Metaclasses 628.4.5 Overview of class hierarchy of OCL Abstract Syntax metamodel . 64 9 Concrete Syntax . 65 9.1 General 65 9.2 Structure of the Concrete Syntax .65 9.3 A Note to Tool Builders 679.3.1 Parsing .679.3.
14、2 Visibility 67 9.4 Concrete Syntax .679.4.1 ExpressionInOclCS 689.4.2 OclExpressionCS . 689.4.3 VariableExpCS 699.4.4 simpleNameCS 699.4.5 restrictedKeywordCS . 709.4.6 unreservedSimpleNameCS . 719.4.7 pathNameCS . 719.4.8 LiteralExpCS 729.4.9 EnumLiteralExpCS 729.4.10 CollectionLiteralExpCS 739.4.
15、11 CollectionTypeIdentifierCS 739.4.12 CollectionLiteralPartsCS 749.4.13 CollectionLiteralPartCS 749.4.14 CollectionRangeCS . 749.4.15 PrimitiveLiteralExpCS 759.4.16 TupleLiteralExpCS . 769.4.17 UnlimitedNaturalLiteralExpCS . 769.4.18 IntegerLiteralExpCS . 769.4.19 RealLiteralExpCS 779.4.20 StringLi
16、teralExpCS 779.4.21 BooleanLiteralExpCS . 789.4.22 TypeLiteralExpCS 789.4.23 CallExpCS . 799.4.24 LoopExpCS 799.4.25 IteratorExpCS 809.4.26 IterateExpCS . 839.4.27 VariableDeclarationCS 849.4.28 TypeCS 859.4.29 primitiveTypeCS 859.4.30 oclTypeCS . 869.4.31 collectionTypeCS . 869.4.32 tupleTypeCS 879
17、.4.33 variableDeclarationListCS . 879.4.34 FeatureCallExpCS . 889.4.35 OperationCallExpCS 889.4.36 PropertyCallExpCS 919.4.37 NavigationCallExpCS 939.4.38 AssociationClassCallExpCS 939.4.39 isMarkedPreCS 949.4.40 argumentsCS . 94ISO/IEC 19507:2012(E) vi ISO/IEC 2012 - All rights reserved9.4.41 LetEx
18、pCS . 959.4.42 LetExpSubCS 959.4.43 OclMessageExpCS 969.4.44 OclMessageArgumentsCS . 979.4.45 OclMessageArgCS 979.4.46 IfExpCS 989.4.47 NullLiteralExpCS 989.4.48 InvalidLiteralExpCS 999.4.49 Comments 99 9.5 Environment Definition .999.5.1 Environment . 999.5.2 NamedElement 1029.5.3 Namespace 102 9.6
19、 Concrete to Abstract Syntax Mapping 102 9.7 Abstract Syntax to Concrete Syntax Mapping 103 10 Semantics Described Using UML 105 10.1 Introduction .105 10.2 The Values Package 10610.2.1 Definitions of Concepts for the Values Package 10710.2.2 Well-formedness Rules for the Values Package 11110.2.3 Ad
20、ditional Operations for the Values Package 11310.2.4 Overview of the Values Package . 114 10.3 The Evaluations Package .11510.3.1 Definitions of Concepts for the Evaluations Package 11610.3.2 Well-formedness Rules of the Evaluations Package . 12510.3.3 Additional Operations of the Evaluations Packag
21、e 13210.3.4 Overview of the Values Package . 133 10.4 The AS-Domain-Mapping Package 13410.4.1 Well-formedness rules for the AS-Domain-Mapping.type-value Package . 13510.4.2 Additional Operations for the AS-Domain-Mapping.type-value Package 13710.4.3 Well-formedness rules for the AS-Domain-Mapping.ex
22、p-eval Package 137 11 OCL Standard Library 145 11.1 Introduction .145 11.2 The OclAny, OclVoid, OclInvalid, and OclMessage Types 14611.2.1 OclAny . 14611.2.2 OclMessage . 14611.2.3 OclVoid 14611.2.4 OclInvalid . 146 11.3 Operations and Well-formedness Rules .14611.3.1 OclAny . 14611.3.2 OclVoid 1481
23、1.3.3 OclMessage . 148 11.4 Primitive Types .14811.4.1 Real 14811.4.2 Integer 14811.4.3 String 149ISO/IEC 19507:2012(E) ISO/IEC 2012 - All rights reserved vii 11.4.4 Boolean 14911.4.5 UnlimitedNatural 149 11.5 Operations and Well-formedness Rules 14911.5.1 Real . 14911.5.2 Integer 15011.5.3 String .
24、 15111.5.4 Boolean 15311.5.5 UnlimitedNatural 154 11.6 Collection-Related Types .15511.6.1 Collection . 15611.6.2 Set . 15611.6.3 OrderedSet 15611.6.4 Bag 15611.6.5 Sequence . 156 11.7 Operations and Well-formedness Rules 15611.7.1 Collection . 15611.7.2 Set . 15911.7.3 OrderedSet 16111.7.4 Bag 1631
- 1.请仔细阅读文档,确保文档完整性,对于不预览、不比对内容而直接下载带来的问题本站不予受理。
- 2.下载的文档,不会出现我们的网址水印。
- 3、该文档所得收入(下载+内容+预览)归上传者、原创作者;如果您是本文档原作者,请点此认领!既往收益都归您。
下载文档到电脑,查找使用更方便
10000 积分 0人已下载
下载 | 加入VIP,交流精品资源 |
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- ISOIEC195072012INFORMATIONTECHNOLOGYOBJECTMANAGEMENTGROUPOBJECTCONSTRAINTLANGUAGEOCL 信息技术 对象 管理 组织 约束

链接地址:http://www.mydoc123.com/p-1256995.html