Difference between revisions of "XCSG:ModelElement"
From AtlasWiki
(→Specification: switching to node template) |
|||
Line 1: | Line 1: | ||
− | + | An XCSG [[ModelElement]] is either a [[ModelNode|node]] or [[ModelEdge|edge]] in an XCSG graph. | |
− | + | ||
− | + | All XCSG model elements have a source correspondence attribute, which indicates their origin. | |
+ | |||
+ | XCSG model elements also 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 == | ||
− | {{ | + | {{Metaclass |
| description = An abstraction drawn from the system being modeled. | | description = An abstraction drawn from the system being modeled. | ||
}} | }} | ||
{{Attribute | {{Attribute | ||
− | | name = | + | | name = sourceCorrespondence |
− | | description = | + | | description = An object describing the origin of the element, such as source file and offset range. |
− | + | ||
}} | }} | ||
{{Attribute | {{Attribute | ||
− | | name = | + | | name = id |
| description = The ID that uniquely identifies the model element. | | description = The ID that uniquely identifies the model element. | ||
− | |||
}} | }} | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− |
Revision as of 19:33, 9 April 2014
An XCSG ModelElement is either a node or edge in an XCSG graph.
All XCSG model elements have a source correspondence attribute, which indicates their origin.
XCSG model elements also 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 | sourceCorrespondence |
---|---|
Description | An object describing the origin of the element, such as source file and offset range. |
Required | Yes |
Attribute | id |
---|---|
Description | The ID that uniquely identifies the model element. |
Required | Yes |