Commit 2bb12293 authored by Saad bin Abid's avatar Saad bin Abid
Browse files

extended the ExternalRelationSpecification with additional attribute...

extended the ExternalRelationSpecification with additional attribute "requirementImplementedCorrectly". It is to capture as a checkbox option if all the ITraceableArifacts implement the requirement.
parent d34818cb
......@@ -63,7 +63,8 @@ Require-Bundle: org.eclipse.core.runtime,
org.fortiss.af3.mode;bundle-version="2.11.0",
org.fortiss.af3.table;bundle-version="2.11.0",
org.fortiss.af3.testing;bundle-version="2.11.0",
org.fortiss.af3.msc;bundle-version="2.11.0"
org.fortiss.af3.msc;bundle-version="2.11.0",
org.fortiss.tooling.base.ui
Bundle-ActivationPolicy: lazy
Bundle-NativeCode: lib/com4j-x86.dll; lib/com4j-amd64.dll
Bundle-Activator: org.fortiss.af3.mira.AF3MiraActivator
......
......@@ -273,6 +273,8 @@
<eClassifiers xsi:type="ecore:EClass" name="ExternalRelationSpecification" eSuperTypes="#//RequirementSpecification">
<eStructuralFeatures xsi:type="ecore:EReference" name="externalRelation" eType="#//ExternalRelation"
eOpposite="#//ExternalRelation/externalRelationSpecification"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="requirementImplementedCorrectly"
eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="DocumentReference">
<eStructuralFeatures xsi:type="ecore:EReference" name="document" eType="#//requirementSource/FileItem"/>
......
......@@ -139,6 +139,7 @@
</genClasses>
<genClasses ecoreClass="mira.ecore#//ExternalRelationSpecification">
<genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference mira.ecore#//ExternalRelationSpecification/externalRelation"/>
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute mira.ecore#//ExternalRelationSpecification/requirementImplementedCorrectly"/>
</genClasses>
<genClasses ecoreClass="mira.ecore#//DocumentReference">
<genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference mira.ecore#//DocumentReference/document"/>
......
......@@ -21,6 +21,8 @@ import static org.fortiss.tooling.kernel.utils.ConstraintsUtils.successIfTrue;
import org.fortiss.af3.mira.model.Requirement;
import org.fortiss.af3.project.utils.ConstraintsProjectUtils.AF3ProjectConstraintCheckerBase;
import org.fortiss.tooling.base.ui.annotation.ConstraintGroupInfo;
import org.fortiss.tooling.base.ui.annotation.ConstraintGroupInfo.Group;
import org.fortiss.tooling.kernel.model.constraints.IConstrained;
import org.fortiss.tooling.kernel.model.constraints.IConstraintInstanceStatus;
......@@ -32,6 +34,7 @@ import org.fortiss.tooling.kernel.model.constraints.IConstraintInstanceStatus;
* @version $Rev$
* @ConQAT.Rating GREEN Hash: B0E3400E24B5C115D0CBA6EA0D9468D3
*/
@ConstraintGroupInfo(group = Group.REQUIREMENT)
public class AuthorConstraint extends AF3ProjectConstraintCheckerBase {
/** {@inheritDoc} */
......
......@@ -23,6 +23,8 @@ import org.fortiss.af3.component.model.Component;
import org.fortiss.af3.component.model.ComponentArchitecture;
import org.fortiss.af3.project.utils.ConstraintsProjectUtils.AF3ProjectConstraintCheckerBase;
import org.fortiss.tooling.base.model.element.IHierarchicElement;
import org.fortiss.tooling.base.ui.annotation.ConstraintGroupInfo;
import org.fortiss.tooling.base.ui.annotation.ConstraintGroupInfo.Group;
import org.fortiss.tooling.kernel.model.constraints.IConstrained;
import org.fortiss.tooling.kernel.model.constraints.IConstraintInstanceStatus;
......@@ -34,6 +36,7 @@ import org.fortiss.tooling.kernel.model.constraints.IConstraintInstanceStatus;
* @version $Rev$
* @ConQAT.Rating GREEN Hash: B0E3400E24B5C115D0CBA6EA0D9468D3
*/
@ConstraintGroupInfo(group = Group.COMPONENT)
public class ComponentExistsConstraint extends AF3ProjectConstraintCheckerBase {
/** {@inheritDoc} */
......
......@@ -23,6 +23,8 @@ import org.fortiss.af3.component.model.Component;
import org.fortiss.af3.mira.model.ExternalRelationSpecification;
import org.fortiss.af3.project.utils.ConstraintsProjectUtils.AF3ProjectConstraintCheckerBase;
import org.fortiss.tooling.base.model.element.IModelElementSpecification;
import org.fortiss.tooling.base.ui.annotation.ConstraintGroupInfo;
import org.fortiss.tooling.base.ui.annotation.ConstraintGroupInfo.Group;
import org.fortiss.tooling.kernel.model.constraints.IConstrained;
import org.fortiss.tooling.kernel.model.constraints.IConstraintInstanceStatus;
......@@ -34,12 +36,12 @@ import org.fortiss.tooling.kernel.model.constraints.IConstraintInstanceStatus;
* @version $Rev$
* @ConQAT.Rating GREEN Hash: B0E3400E24B5C115D0CBA6EA0D9468D3
*/
@ConstraintGroupInfo(group = Group.COMPONENT)
public class ComponentToRequirementTraceExistsConstraint extends AF3ProjectConstraintCheckerBase {
/** {@inheritDoc} */
@Override
public IConstraintInstanceStatus verify(IConstrained constrained) {
boolean componentTraceAvailable = false;
Component comp = (Component)constrained;
if(comp.getSpecifications().size() > 0) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment