Issue 11547: VSL meta-model (marte-ftf) Source: THALES (Mr. Sebastien Demathieu, sebastien.demathieu(at)thalesgroup.com) Nature: Enhancement Severity: Minor Summary: The VSL BNF defines a "[ ]" symbol that can be used along with a collection. The specification introduces the example: "{'a', 'b', 'c', 'd'} [2]". However, there is no related concept (access to a collection) in the VSL meta-model. Resolution: This notation (to get collection elements by using the index), comes from the TVL language in SPT, but the mentioned example was not updated to the current VSL mechanism to define operations in data types. For that, VSL uses the same approach as OCL, so that the operation for finding an element in a given collection should be defined and described at library level, in the operations of the concerned data types (collections in this case). The specification of the function will be allowed by using OperationCallExpression. The resolution is to remove the proposed examples from VSL. If new operations are required for Collections in the MARTE library of data types, this should be solved by posting a separated issue. Revised Text: In Section B.3.3.8, page 401, remove the last paragraphs: Individual items in a collection can be accessed by indexing. It is achieved by specifying the index of the desired collection element to the right of the collection, with the left-most element at index value 0. For instance, the result of evaluating the following expression: {'a', 'b', 'c', 'd'} [2] is the string 'c', which is in index position 2. Actions taken: October 8, 2007: received issue February 17, 2010: closed issue Discussion: End of Annotations:===== m: webmaster@omg.org Date: 08 Oct 2007 11:17:30 -0400 To: Subject: Issue/Bug Report -------------------------------------------------------------------------------- Name: Sébastien Demathieu Company: Thales mailFrom: sebastien.demathieu@thalesgroup.com Notification: Yes Specification: A UML Profile for MARTE Section: Annex B FormalNumber: realtime/07-08-04 Version: Beta 1 RevisionDate: 08/2007 Page: 401 Nature: Enhancement Severity: Minor HTTP User Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.8.1.7) Gecko/20070914 Firefox/2.0.0.7 Description The VSL BNF defines a "[ ]" symbol that can be used along with a collection. The specification introduces the example: "{'a', 'b', 'c', 'd'} [2]". However, there is no related concept (access to a collection) in the VSL meta-model.