Skip to content

Commit

Permalink
eclipse-capella#2893 Add model validation rules from Thales-LAS-Franc…
Browse files Browse the repository at this point in the history
…e_AMS, all Tests
  • Loading branch information
E2TP-MBSE-Paul committed Sep 12, 2024
1 parent 4a3cc09 commit 36a7b62
Show file tree
Hide file tree
Showing 127 changed files with 11,190 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
import org.polarsys.capella.core.validation.rule.AbstractValidationRuleOnSystemAnalysis;

/**
* ATM_CMATS_SA_R39 : The CE EI shall be the union of the EI of the FE allocated to the CE
* The CE EI shall be the union of the EI of the FE allocated to the CE
*/
public class CE_EIsSameAsItsFEsEIs extends AbstractValidationRuleOnSystemAnalysis {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
import org.polarsys.capella.core.validation.rule.AbstractValidationRuleOnSystemAnalysis;

/**
* ATM_CMATS_SA_R39 : The interface EI shall be identical at SA to the CE EI allocated.
* The interface EI shall be identical at SA to the CE EI allocated.
*/
public class InterfaceEIsSameAsItsCEsEIs extends AbstractValidationRuleOnSystemAnalysis {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,11 @@
*******************************************************************************/
package org.polarsys.capella.core.data.ctx.validation.systemFunction;

import org.eclipse.emf.ecore.EObject;
import org.polarsys.capella.core.validation.rule.AbstractDescriptionCheckingRule;
import org.polarsys.capella.core.validation.rule.AbstractValidationRuleOnSystemAnalysis;

/**
* Functions should have a description
*/
public class DSC_SystemFunction extends AbstractDescriptionCheckingRule {

@Override
protected boolean isApplicable(final EObject eObj) {
return AbstractValidationRuleOnSystemAnalysis.belongsToSA(eObj);
}

// Empty class, needed for reference in the plugin definition.
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
import org.polarsys.capella.core.validation.rule.AbstractNameUnicity;

/**
* Functional Chains shall start from an End User and finish with an End User
* Function name shall be unique
*/
public class FunctionNameUnicity extends AbstractNameUnicity {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1205,7 +1205,7 @@ ComponentExchangeFunctionalExchangeAllocation ComponentExchange and FunctionalEx
<constraint
class="org.polarsys.capella.core.data.fa.validation.functionalChain.FunctionalChainInvolvesLeafFunctions"
id="FCH_1"
isEnabledByDefault="true"
isEnabledByDefault="false"
lang="Java"
mode="Batch"
name="FCH_1 - FunctionalChain involves leaf functions"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
import org.polarsys.capella.core.validation.rule.AbstractValidationRuleOnSystemAnalysis;

/**
* ATM_CMATS_SA_R39 : The CE EI shall be the union of the EI of the FE allocated to the CE
* The CE EI shall be the union of the EI of the FE allocated to the CE
*/
public class CE_EIsSameAsItsFEsEIs extends AbstractValidationRuleOnSystemAnalysis {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -604,7 +604,7 @@ If an Association is on SystemArchitecture layer. It should not associate with a
</target>
</constraint>
<constraint
class="org.polarsys.capella.core.data.information.validation.exchangeitem.CNC_ExchangeItem_Interface"
class="org.polarsys.capella.core.data.information.validation.exchangeItemAllocation.CNC_ExchangeItem_Interface"
id="NC_1-2"
isEnabledByDefault="false"
lang="Java"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/*******************************************************************************
* Copyright (c) 2013, 2024 THALES GLOBAL SERVICES.
* Copyright (c) 2013, 2024 Thales LAS France SA.
* Copyright (c) 2024, 2024 THALES GLOBAL SERVICES.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License 2.0 which is available at
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/*******************************************************************************
* Copyright (c) 2013, 2024 THALES GLOBAL SERVICES.
* Copyright (c) 2013, 2024 Thales LAS France SA.
* Copyright (c) 2024, 2024 THALES GLOBAL SERVICES.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License 2.0 which is available at
Expand All @@ -10,7 +11,7 @@
* Contributors:
* Thales - initial API and implementation
*******************************************************************************/
package org.polarsys.capella.core.data.information.validation.exchangeitem;
package org.polarsys.capella.core.data.information.validation.exchangeItemAllocation;

import org.eclipse.emf.ecore.EObject;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/*******************************************************************************
* Copyright (c) 2013, 2024 THALES GLOBAL SERVICES.
* Copyright (c) 2013, 2024 Thales LAS France SA.
* Copyright (c) 2024, 2024 THALES GLOBAL SERVICES.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License 2.0 which is available at
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/*******************************************************************************
* Copyright (c) 2013, 2024 THALES GLOBAL SERVICES.
* Copyright (c) 2013, 2024 Thales LAS France SA.
* Copyright (c) 2024, 2024 THALES GLOBAL SERVICES.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License 2.0 which is available at
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/*******************************************************************************
* Copyright (c) 2013, 2024 THALES GLOBAL SERVICES.
* Copyright (c) 2013, 2024 Thales LAS France SA.
* Copyright (c) 2024, 2024 THALES GLOBAL SERVICES.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License 2.0 which is available at
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>FC_1</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
</buildSpec>
<natures>
<nature>org.polarsys.capella.project.nature</nature>
</natures>
</projectDescription>
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
eclipse.preferences.version=1
encoding/<project>=UTF-8
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<metadata:Metadata xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:metadata="http://www.polarsys.org/kitalpha/ad/metadata/1.0.0" id="_oWdjMHAbEe-RlJsp6BGYuQ">
<viewpointReferences id="_oXpO8HAbEe-RlJsp6BGYuQ" vpId="org.polarsys.capella.core.viewpoint" version="7.0.0"/>
</metadata:Metadata>
Loading

0 comments on commit 36a7b62

Please sign in to comment.