-
Key: SYSML21-303
-
Status: open
-
Source: Ansys Government Initiatives ( Mr. Richard Page)
-
Summary:
In SysML section 7.17.9 (BETA 4) - Assignment Action Usages, the code comment in the textual example is inconsistent with the language in the English.
The English says:
"An AssignmentAction sets a referent feature of a target occurrence to a new assigned value."But the code comment says:
action def UpdateVehiclePosition { in part sim : Simulation; in attribute deltaT : TimeDurationValue; // The target of the assignment below is "sim". // The referent feature chain is "vehicle.position". assign sim.vehicle.position := sim.vehicle.position + sim.vehicle.velocity * deltaT; // After the above assignment "sim.vehicle.position" has the // value of the result of the assigned value expression, // evaluated at the time of the assignment. }
The comment should probably identify "position" as the referent (not "vehicle.position" ! ) and "sim.vehicle" as the target, since "vehicle" features "position" ("sim" does NOT feature "position" and therefore "sim" cannot be the target).
Consistent with the 'var' feature being featured by "vehicle" and not "sim", I would expect "sim.vehicle" to declare the occurrence for the purposes of the assignment. Otherwise, using "sim" as the occurrence would require more complex semantics involving the 'var' behavior of an intermediate occurrence as part of the assignment action, which is unnecessary.
-
Reported: SysML 2.0b2 — Tue, 1 Jul 2025 15:36 GMT
-
Updated: Fri, 12 Sep 2025 04:07 GMT
SYSML21 — AssignmentAction Incorrect textual sample comment
- Key: SYSML21-303
- OMG Task Force: Systems Modeling Language (SysML) 2.1 RTF