1 | /** |
2 | * <copyright> |
3 | * </copyright> |
4 | * |
5 | * $Id$ |
6 | */ |
7 | package de.uka.ipd.sdq.sensitivity.impl; |
8 | |
9 | import de.uka.ipd.sdq.sensitivity.HardwareMTTFParameter; |
10 | import de.uka.ipd.sdq.sensitivity.SensitivityPackage; |
11 | |
12 | import de.uka.ipd.sdq.sensitivity.util.SensitivityValidator; |
13 | |
14 | import java.util.Map; |
15 | |
16 | import org.eclipse.emf.common.util.BasicDiagnostic; |
17 | import org.eclipse.emf.common.util.Diagnostic; |
18 | import org.eclipse.emf.common.util.DiagnosticChain; |
19 | |
20 | import org.eclipse.emf.ecore.EClass; |
21 | |
22 | import org.eclipse.emf.ecore.plugin.EcorePlugin; |
23 | |
24 | import org.eclipse.emf.ecore.util.EObjectValidator; |
25 | |
26 | /** |
27 | * <!-- begin-user-doc --> |
28 | * An implementation of the model object '<em><b>Hardware MTTF Parameter</b></em>'. |
29 | * <!-- end-user-doc --> |
30 | * <p> |
31 | * </p> |
32 | * |
33 | * @generated |
34 | */ |
35 | public class HardwareMTTFParameterImpl extends SingleSensitivityParameterImpl implements HardwareMTTFParameter { |
36 | /** |
37 | * <!-- begin-user-doc --> |
38 | * <!-- end-user-doc --> |
39 | * @generated |
40 | */ |
41 | protected HardwareMTTFParameterImpl() { |
42 | super(); |
43 | } |
44 | |
45 | /** |
46 | * <!-- begin-user-doc --> |
47 | * <!-- end-user-doc --> |
48 | * @generated |
49 | */ |
50 | @Override |
51 | protected EClass eStaticClass() { |
52 | return SensitivityPackage.Literals.HARDWARE_MTTF_PARAMETER; |
53 | } |
54 | |
55 | /** |
56 | * <!-- begin-user-doc --> |
57 | * <!-- end-user-doc --> |
58 | * @generated |
59 | */ |
60 | public boolean HardwareMTTFParameterMustHaveDoubleVariation(DiagnosticChain diagnostics, Map<Object, Object> context) { |
61 | // TODO: implement this method |
62 | // -> specify the condition that violates the invariant |
63 | // -> verify the details of the diagnostic, including severity and message |
64 | // Ensure that you remove @generated or mark it @generated NOT |
65 | if (false) { |
66 | if (diagnostics != null) { |
67 | diagnostics.add |
68 | (new BasicDiagnostic |
69 | (Diagnostic.ERROR, |
70 | SensitivityValidator.DIAGNOSTIC_SOURCE, |
71 | SensitivityValidator.HARDWARE_MTTF_PARAMETER__HARDWARE_MTTF_PARAMETER_MUST_HAVE_DOUBLE_VARIATION, |
72 | EcorePlugin.INSTANCE.getString("_UI_GenericInvariant_diagnostic", new Object[] { "HardwareMTTFParameterMustHaveDoubleVariation", EObjectValidator.getObjectLabel(this, context) }), |
73 | new Object [] { this })); |
74 | } |
75 | return false; |
76 | } |
77 | return true; |
78 | } |
79 | |
80 | } //HardwareMTTFParameterImpl |