Commit cf4cbbbb authored by Sudeep Kanav's avatar Sudeep Kanav
Browse files

GREEN

refs 3122
parent 1e79cb85
......@@ -52,7 +52,7 @@ import org.osgi.framework.BundleContext;
/**
* The activator class controls the plug-in life cycle.
*
* @ConQAT.Rating YELLOW Hash: 32BB7CD7367D90D9456E3DFDAA2FB91F
* @ConQAT.Rating GREEN Hash: BC88F1D7196D3AAE5A4EB233389ECDB1
*/
public class AF3MiraActivator extends Plugin {
......@@ -70,45 +70,41 @@ public class AF3MiraActivator extends Plugin {
public void start(BundleContext context) throws Exception {
super.start(context);
plugin = this;
// TODO (TC, 25) - all IConstraintService.getInstance()
// TODO duplicated IConstraintService.getInstance().registerConstraint
RelationTypeService rts = (RelationTypeService)IRelationTypeService.getInstance();
rts.initializeService();
rts.startService();
IConstraintService.getInstance().registerConstraint(
RequirementContainsTestSuiteConstraint.class);
IConstraintService.getInstance().registerConstraint(UniqueSignalNameConstraint.class);
IConstraintService.getInstance().registerConstraint(SignalTypeConstraint.class);
IConstraintService.getInstance().registerConstraint(NameConstraint.class);
IConstraintService.getInstance().registerConstraint(ParameterTypeConstraint.class);
IConstraintService.getInstance().registerConstraint(IDConstraint.class);
IConstraintService.getInstance().registerConstraint(RationaleConstraint.class);
IConstraintService.getInstance().registerConstraint(SourceConstraint.class);
IConstraintService.getInstance().registerConstraint(MultipleAspectsConstraint.class);
IConstraintService.getInstance().registerConstraint(DescriptionConstraint.class);
IConstraintService.getInstance().registerConstraint(DescriptionAndOrConstraint.class);
IConstraintService.getInstance()
.registerConstraint(GlossaryTermsDefinitionConstraint.class);
IConstraintService.getInstance().registerConstraint(AuthorConstraint.class);
IConstraintService.getInstance().registerConstraint(OnlyOneSILConstraint.class);
IConstraintService.getInstance().registerConstraint(
IdentifiedInputOutputDefinedConstraint.class);
IConstraintService.getInstance().registerConstraint(SignalInitialValueConstraint.class);
IConstraintService.getInstance().registerConstraint(RequirementExistsConstraint.class);
IConstraintService.getInstance().registerConstraint(CheckListReviewConstraint.class);
IConstraintService.getInstance().registerConstraint(ComponentExistsConstraint.class);
IConstraintService.getInstance().registerConstraint(TraceNotEmptyConstraint.class);
IConstraintService.getInstance().registerConstraint(
ComponentToRequirementTraceExistsConstraint.class);
IConstraintService.getInstance().registerConstraint(
RequirementImplementedCorrectlyConstraint.class);
IConstraintService.getInstance()
.registerConstraint(ComponentNameMeaningfulConstraint.class);
IConstraintService.getInstance().registerConstraint(
FunctionalReqsHaveOneNonFunctionalReq.class);
IConstraintService.getInstance().registerConstraint(
NonFunctionalReqsHaveExactlyOneFunctionalReq.class);
IConstraintService.getInstance().registerConstraint(TraceConstraint.class);
registerMiraConstraints();
}
/** Register all the Mira constraints. */
private void registerMiraConstraints() {
IConstraintService consInstance = IConstraintService.getInstance();
consInstance.registerConstraint(RequirementContainsTestSuiteConstraint.class);
consInstance.registerConstraint(UniqueSignalNameConstraint.class);
consInstance.registerConstraint(SignalTypeConstraint.class);
consInstance.registerConstraint(NameConstraint.class);
consInstance.registerConstraint(ParameterTypeConstraint.class);
consInstance.registerConstraint(IDConstraint.class);
consInstance.registerConstraint(RationaleConstraint.class);
consInstance.registerConstraint(SourceConstraint.class);
consInstance.registerConstraint(MultipleAspectsConstraint.class);
consInstance.registerConstraint(DescriptionConstraint.class);
consInstance.registerConstraint(DescriptionAndOrConstraint.class);
consInstance.registerConstraint(GlossaryTermsDefinitionConstraint.class);
consInstance.registerConstraint(AuthorConstraint.class);
consInstance.registerConstraint(OnlyOneSILConstraint.class);
consInstance.registerConstraint(IdentifiedInputOutputDefinedConstraint.class);
consInstance.registerConstraint(SignalInitialValueConstraint.class);
consInstance.registerConstraint(RequirementExistsConstraint.class);
consInstance.registerConstraint(CheckListReviewConstraint.class);
consInstance.registerConstraint(ComponentExistsConstraint.class);
consInstance.registerConstraint(TraceNotEmptyConstraint.class);
consInstance.registerConstraint(ComponentToRequirementTraceExistsConstraint.class);
consInstance.registerConstraint(RequirementImplementedCorrectlyConstraint.class);
consInstance.registerConstraint(ComponentNameMeaningfulConstraint.class);
consInstance.registerConstraint(FunctionalReqsHaveOneNonFunctionalReq.class);
consInstance.registerConstraint(NonFunctionalReqsHaveExactlyOneFunctionalReq.class);
consInstance.registerConstraint(TraceConstraint.class);
}
/** {@inheritDoc} */
......
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