Difference between revisions of "XCSG:ModelElement"
From AtlasWiki
(7 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
An XCSG ModelElement is either a [[Node]] or [[Edge]] in an XCSG graph. | An XCSG ModelElement is either a [[Node]] or [[Edge]] in an XCSG graph. | ||
− | + | XCSG model elements have an <code>id</code> attribute, which uniquely identifies that element; the <code>id</code> attribute should enable those familiar with the analyzer which produced that node or edge to determine whether the graph already contains a node or edge representing a particular entity or relationship. No two model elements with equal IDs can exist in the same graph, to ensure each modeled element or relationship has a single representation in the graph. | |
− | + | ||
− | + | ||
== Specification == | == Specification == | ||
Line 11: | Line 9: | ||
{{Attribute | {{Attribute | ||
− | | name = | + | | name = name |
− | | description = | + | | description = The name of the element within its [[Namespace]], or a brief, human-readable label. |
+ | | type = String | ||
}} | }} | ||
{{Attribute | {{Attribute | ||
− | | name = | + | | name = sourceCorrespondence |
− | | description = The | + | | description = The location or locations in source code corresponding to the element. |
+ | | type = A SourceCorrespondence object or list of SourceCorrespondence objects. | ||
+ | | required = On nodes originating from source code. Edges (such as [[Call]] edges) that summarize multiple locations in source code contain lists of SourceCorrespondence objects indicating each location summarized. | ||
}} | }} | ||
+ | [[Category:XCSG Tags]] |
Latest revision as of 15:29, 15 October 2015
An XCSG ModelElement is either a Node or Edge in an XCSG graph.
XCSG model elements have an id
attribute, which uniquely identifies that element; the id
attribute should enable those familiar with the analyzer which produced that node or edge to determine whether the graph already contains a node or edge representing a particular entity or relationship. No two model elements with equal IDs can exist in the same graph, to ensure each modeled element or relationship has a single representation in the graph.
Specification
Metaclass | ModelElement |
---|---|
Description | An abstraction drawn from the system being modeled. |
Direct Subkinds | Edge, Node |
---|
Attribute | name |
---|---|
Description | The name of the element within its Namespace, or a brief, human-readable label. |
Type | String |
Required | Yes |
Attribute | sourceCorrespondence |
---|---|
Description | The location or locations in source code corresponding to the element. |
Type | A SourceCorrespondence object or list of SourceCorrespondence objects. |
Required | On nodes originating from source code. Edges (such as Call edges) that summarize multiple locations in source code contain lists of SourceCorrespondence objects indicating each location summarized. |