IDL name clash due to enumeration values defined twice
-
Key: DEPL4-32
-
Legacy Issue Number: 9239
-
Status: closed
-
Source: Fraunhofer FOKUS ( Mr. Andreas Hoffmann)
-
Summary:
In section 6.4.11.5 (Semantics of LocalityKind), different values including "DifferentProcess" and "NoConstraint" are defined for the LocalityKind enumeration of the Component Data Model. In section 6.8.6.5 (Semantics of PlanLocalityKind), the constants for the PlanLocalityKind enumeration are defined for the Execution Data Model, also containg these two names mentioned above. The problem is that enumeration names are introduced into their parent scope. Thus, the definition of the PlanLocalityKind reusing the same names as used in the LocalityKind enumeration causes a name clash in the IDL.
Proposed resolution:
Add a prefix "Plan" to all the constants of the PlanLocalityKind enumeration.
In section 6.8.6.5, change the bullet list from
SameProcess: This value specifies that the component instances that the PlanLocality element referers to shall be started in the same process by the deployment engine.
DifferentProcess: This value specifies that the component instances that the PlanLocality element referers to shall be started in different processes by the deployment engine.
NoConstraint: This value specifies that there is no locality constraint for the component instances that the PlanLocality element refers to. The purpose of this special value is to enable to switch locality constraints temporarily off without loosing the structure of the DeploymentPlan, i.e. the PlanLocality class instance with its associations to InstanceDeploymentDescription can be kept for later reuse but has currently no impact on the execution of the DeploymentPlan.
toPlanSameProcess: This value specifies that the component instances that the PlanLocality element referers to shall be started in the same process by the deployment engine.
PlanDifferentProcess: This value specifies that the component instances that the PlanLocality element referers to shall be started in different processes by the deployment engine.
PlanNoConstraint: This value specifies that there is no locality constraint for the component instances that the PlanLocality element refers to. The purpose of this special value is to enable to switch locality constraints temporarily off without loosing the structure of the DeploymentPlan, i.e. the PlanLocality class instance with its associations to InstanceDeploymentDescription can be kept for later reuse but has currently no impact on the execution of the DeploymentPlan.
-
Reported: DEPL 1.0 — Wed, 18 Jan 2006 05:00 GMT
-
Disposition: Resolved — DEPL 4.0
-
Disposition Summary:
Add a prefix "Plan" to all the constants of the PlanLocalityKind enumeration.
-
Updated: Wed, 11 Mar 2015 01:53 GMT