Commit 4293a925 authored by Levi Lucio's avatar Levi Lucio
Browse files

fixed names of interfaces for Functional and NonFunctional req

parent 9f72e9f5
......@@ -20,8 +20,8 @@ package org.fortiss.af3.mira.constraints;
import static org.fortiss.tooling.kernel.utils.ConstraintsUtils.successIfTrue;
import org.eclipse.emf.common.util.EList;
import org.fortiss.af3.mira.model.FunctionalRequirement;
import org.fortiss.af3.mira.model.NonFunctionalRequirement;
import org.fortiss.af3.mira.model.IFunctionalRequirement;
import org.fortiss.af3.mira.model.INonFunctionalRequirement;
import org.fortiss.af3.mira.model.Requirement;
import org.fortiss.af3.mira.model.extensions.RequirementConstraintsGroup;
import org.fortiss.af3.project.utils.ConstraintsProjectUtils.AF3ProjectConstraintCheckerBase;
......@@ -44,7 +44,7 @@ public class FunctionalReqsHaveOneNonFunctionalReq extends AF3ProjectConstraintC
public IConstraintInstanceStatus verify(IConstrained constrained) {
Requirement req = (Requirement)constrained;
for(IModelElementSpecification spec : req.getSpecifications()) {
if(spec instanceof NonFunctionalRequirement) {
if(spec instanceof INonFunctionalRequirement) {
return successIfTrue(true);
}
}
......@@ -58,7 +58,7 @@ public class FunctionalReqsHaveOneNonFunctionalReq extends AF3ProjectConstraintC
EList<IModelElementSpecification> specs =
((Requirement)constrained).getSpecifications();
for(IModelElementSpecification iModelElementSpecification : specs) {
if(iModelElementSpecification instanceof FunctionalRequirement) {
if(iModelElementSpecification instanceof IFunctionalRequirement) {
return true;
}
}
......
......@@ -19,8 +19,8 @@ package org.fortiss.af3.mira.constraints;
import static org.fortiss.tooling.kernel.utils.ConstraintsUtils.successIfTrue;
import org.fortiss.af3.mira.model.FunctionalRequirement;
import org.fortiss.af3.mira.model.NonFunctionalRequirement;
import org.fortiss.af3.mira.model.IFunctionalRequirement;
import org.fortiss.af3.mira.model.INonFunctionalRequirement;
import org.fortiss.af3.mira.model.Requirement;
import org.fortiss.af3.mira.model.extensions.RequirementConstraintsGroup;
import org.fortiss.af3.project.model.ParameterDefinition;
......@@ -51,10 +51,10 @@ public class MultipleAspectsConstraint extends AF3ProjectConstraintCheckerBase i
Requirement req = (Requirement)constrained;
for(IModelElementSpecification spec : req.getSpecifications()) {
if(spec instanceof FunctionalRequirement) {
if(spec instanceof IFunctionalRequirement) {
aspectCounter++;
}
if(spec instanceof NonFunctionalRequirement) {
if(spec instanceof INonFunctionalRequirement) {
aspectCounter++;
}
if(spec instanceof ParameterDefinition) {
......
......@@ -20,8 +20,8 @@ package org.fortiss.af3.mira.constraints;
import static org.fortiss.tooling.kernel.utils.ConstraintsUtils.successIfTrue;
import org.eclipse.emf.common.util.EList;
import org.fortiss.af3.mira.model.FunctionalRequirement;
import org.fortiss.af3.mira.model.NonFunctionalRequirement;
import org.fortiss.af3.mira.model.IFunctionalRequirement;
import org.fortiss.af3.mira.model.INonFunctionalRequirement;
import org.fortiss.af3.mira.model.Requirement;
import org.fortiss.af3.mira.model.extensions.RequirementConstraintsGroup;
import org.fortiss.af3.project.utils.ConstraintsProjectUtils.AF3ProjectConstraintCheckerBase;
......@@ -45,7 +45,7 @@ public class NonFunctionalReqsHaveExactlyOneFunctionalReq extends AF3ProjectCons
Requirement req = (Requirement)constrained;
int functionalAspectCounter = 0;
for(IModelElementSpecification spec : req.getSpecifications()) {
if(spec instanceof FunctionalRequirement) {
if(spec instanceof IFunctionalRequirement) {
functionalAspectCounter++;
}
}
......@@ -59,7 +59,7 @@ public class NonFunctionalReqsHaveExactlyOneFunctionalReq extends AF3ProjectCons
EList<IModelElementSpecification> specs =
((Requirement)constrained).getSpecifications();
for(IModelElementSpecification iModelElementSpecification : specs) {
if(iModelElementSpecification instanceof NonFunctionalRequirement) {
if(iModelElementSpecification instanceof INonFunctionalRequirement) {
return true;
}
}
......
Supports Markdown
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