OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

obix message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: [OASIS Issue Tracker] (OBIX-238) UML diagram and Contract ambiguities


    [ https://issues.oasis-open.org/browse/OBIX-238?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=59417#comment-59417 ] 

William Cox commented on OBIX-238:
----------------------------------

Selected notes from the 16 April meeting.
(1) contract is a concept. You are a point - not only the obix attributes in the contract def of point, you do whatever things a point does.  Contract definition is the obix object that represents a base class (in Java).  Contract def is obix object. 

A contract list is a series of 1..n URIs. See 7.1. Contract list looks like a URI. the list is a list of contracts. Lists done by spaces.  List of obix objects in List.  Concept of primary contract - first on has special significance. Line 1211 wd39.

T: primary contract - read text. Pick up doc - reads - implement differently; primary contract may be ambiguous.  C: First is what you are. Implement interfaces, inheriting from a class. From OBIX the contract you're implementing - you are the primary, may do others not even from your organization. Obix:point as well as EI historian contract or the AcmeLogger contract.

(2) what is Nil?  C: Absense of a value. Op. In and out. No arguments but provides a value by overriding Out - don't have to override In. Special thing referenced?  Single item in a Contract List.   Concept is clear - but how do I implement? Can the first element of a contract list be Nil?  C: If that's the primary contract how can it implement other things and be NIL? "Nil uri"  Seems odd. is it legal?


(30 order seems important - distinguished "first" contract. But XSD doesn't require any specific order.



> UML diagram and Contract ambiguities
> ------------------------------------
>
>                 Key: OBIX-238
>                 URL: https://issues.oasis-open.org/browse/OBIX-238
>             Project: OASIS Open Building Information Exchange (oBIX) TC
>          Issue Type: Bug
>          Components: OBIX 1.1 Specification
>    Affects Versions: OBIX 1.1 WD39
>         Environment: William Cox Line 323
>            Reporter: William Cox
>            Assignee: William Cox
>
> nilThe UML diagram has a number of issues that need to be addressed to avoid misleading a UML knowledgeable reader.
> (1) contract is shown as anyURI, however the text says that a Contract is a list of URIs.  Is that list ordered? [this would raise questions such as "Does a different order mean that you have a different contract? Is there a canonical comparison? ")
> Perhaps Contract should be a conformed string with space-separated anyURI values, or a list or something else?
> (2)The use of obix:Nil suggests in the obix package that there is a contract that may be treated as a Nil value. Is that the null string? Is it a defined URI that has "Nil" as the last component? The answers to these questions will guide the correction of the UML diagram.
> (3) Should a Sequence be used in the UML rather than a conformed string? 
> (4) Consider the accuracy of the definition of Contract in Table 1-1 line 116.
> (5) Line 152 Table 1-4 talks about "long Contract Lists" but that apparently defined term is not elsewhere in the specification. Is it a list of Contracts? or the space-separated list of URIs that are included in a single Contract? Correct this.
> (6) Line 183-184 "OBIX captures these concepts into Contracts. Contracts allow us to tag Objects with normalized semantics and structure." should say something more like "OBIX expresses these concepts as Contracts. OBIX Contracts allow us to tag Objects with normalized semantics and structure." (though I'm not sure what the last phrase means here)
> (7) Section 3.6 line 276ff. I thought Contract was a list of URIs (apparently now URI references to Contracts, but the object itself is a subclass equivalent to "anyURI" in the UML). The apparent conflict between an object as a template and a URI referencing an object needs to be clearly resolved in both the Quick Start and section 3.6.
> (8) Line 359 is nul the same as Nil? If not where is it defined?
> (9) Line 357 says "the value of this attribute ["is"] MUST be a Contract List...Section 7.2"  Of,Is, In,out all require Contract Lists which seems to be defined at line 1024. It's not a 4.3.2 "list" as pointed out on line 1032. Note should be earlier as well as on 1032.
> (10) Line 1024 is a single Contract a reference to a contract, or a single element Contract List? This affects the UML model as the class name should probably be ContractList rather than Contract.
> (11) Line 1035 is ContractList the same as "...a Contract List" on line 1034? How about line 1042?



--
This message was sent by Atlassian JIRA
(v6.2.2#6258)


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]