diff options
Diffstat (limited to 'Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/impl')
4 files changed, 312 insertions, 1 deletions
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/impl/CftFactoryImpl.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/impl/CftFactoryImpl.java index 6eac2861..6b07b541 100644 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/impl/CftFactoryImpl.java +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/impl/CftFactoryImpl.java | |||
@@ -5,6 +5,7 @@ package hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl; | |||
5 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.*; | 5 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.*; |
6 | 6 | ||
7 | import org.eclipse.emf.ecore.EClass; | 7 | import org.eclipse.emf.ecore.EClass; |
8 | import org.eclipse.emf.ecore.EDataType; | ||
8 | import org.eclipse.emf.ecore.EObject; | 9 | import org.eclipse.emf.ecore.EObject; |
9 | import org.eclipse.emf.ecore.EPackage; | 10 | import org.eclipse.emf.ecore.EPackage; |
10 | 11 | ||
@@ -78,6 +79,36 @@ public class CftFactoryImpl extends EFactoryImpl implements CftFactory { | |||
78 | * @generated | 79 | * @generated |
79 | */ | 80 | */ |
80 | @Override | 81 | @Override |
82 | public Object createFromString(EDataType eDataType, String initialValue) { | ||
83 | switch (eDataType.getClassifierID()) { | ||
84 | case CftPackage.MODALITY: | ||
85 | return createModalityFromString(eDataType, initialValue); | ||
86 | default: | ||
87 | throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); | ||
88 | } | ||
89 | } | ||
90 | |||
91 | /** | ||
92 | * <!-- begin-user-doc --> | ||
93 | * <!-- end-user-doc --> | ||
94 | * @generated | ||
95 | */ | ||
96 | @Override | ||
97 | public String convertToString(EDataType eDataType, Object instanceValue) { | ||
98 | switch (eDataType.getClassifierID()) { | ||
99 | case CftPackage.MODALITY: | ||
100 | return convertModalityToString(eDataType, instanceValue); | ||
101 | default: | ||
102 | throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); | ||
103 | } | ||
104 | } | ||
105 | |||
106 | /** | ||
107 | * <!-- begin-user-doc --> | ||
108 | * <!-- end-user-doc --> | ||
109 | * @generated | ||
110 | */ | ||
111 | @Override | ||
81 | public ComponentDefinition createComponentDefinition() { | 112 | public ComponentDefinition createComponentDefinition() { |
82 | ComponentDefinitionImpl componentDefinition = new ComponentDefinitionImpl(); | 113 | ComponentDefinitionImpl componentDefinition = new ComponentDefinitionImpl(); |
83 | return componentDefinition; | 114 | return componentDefinition; |
@@ -198,6 +229,26 @@ public class CftFactoryImpl extends EFactoryImpl implements CftFactory { | |||
198 | * <!-- end-user-doc --> | 229 | * <!-- end-user-doc --> |
199 | * @generated | 230 | * @generated |
200 | */ | 231 | */ |
232 | public Modality createModalityFromString(EDataType eDataType, String initialValue) { | ||
233 | Modality result = Modality.get(initialValue); | ||
234 | if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); | ||
235 | return result; | ||
236 | } | ||
237 | |||
238 | /** | ||
239 | * <!-- begin-user-doc --> | ||
240 | * <!-- end-user-doc --> | ||
241 | * @generated | ||
242 | */ | ||
243 | public String convertModalityToString(EDataType eDataType, Object instanceValue) { | ||
244 | return instanceValue == null ? null : instanceValue.toString(); | ||
245 | } | ||
246 | |||
247 | /** | ||
248 | * <!-- begin-user-doc --> | ||
249 | * <!-- end-user-doc --> | ||
250 | * @generated | ||
251 | */ | ||
201 | @Override | 252 | @Override |
202 | public CftPackage getCftPackage() { | 253 | public CftPackage getCftPackage() { |
203 | return (CftPackage)getEPackage(); | 254 | return (CftPackage)getEPackage(); |
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/impl/CftPackageImpl.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/impl/CftPackageImpl.java index 1d6b6a23..2d70d7ce 100644 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/impl/CftPackageImpl.java +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/impl/CftPackageImpl.java | |||
@@ -16,6 +16,8 @@ import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.GateDefinition; | |||
16 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Input; | 16 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Input; |
17 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.InputEvent; | 17 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.InputEvent; |
18 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.KOfMGateDefinition; | 18 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.KOfMGateDefinition; |
19 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.ModalElement; | ||
20 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Modality; | ||
19 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.OrGateDefinition; | 21 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.OrGateDefinition; |
20 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Output; | 22 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Output; |
21 | 23 | ||
@@ -23,6 +25,7 @@ import hu.bme.mit.inf.dslreasoner.faulttree.model.ft.FtPackage; | |||
23 | 25 | ||
24 | import org.eclipse.emf.ecore.EAttribute; | 26 | import org.eclipse.emf.ecore.EAttribute; |
25 | import org.eclipse.emf.ecore.EClass; | 27 | import org.eclipse.emf.ecore.EClass; |
28 | import org.eclipse.emf.ecore.EEnum; | ||
26 | import org.eclipse.emf.ecore.EPackage; | 29 | import org.eclipse.emf.ecore.EPackage; |
27 | import org.eclipse.emf.ecore.EReference; | 30 | import org.eclipse.emf.ecore.EReference; |
28 | 31 | ||
@@ -134,6 +137,20 @@ public class CftPackageImpl extends EPackageImpl implements CftPackage { | |||
134 | private EClass connectionEClass = null; | 137 | private EClass connectionEClass = null; |
135 | 138 | ||
136 | /** | 139 | /** |
140 | * <!-- begin-user-doc --> | ||
141 | * <!-- end-user-doc --> | ||
142 | * @generated | ||
143 | */ | ||
144 | private EClass modalElementEClass = null; | ||
145 | |||
146 | /** | ||
147 | * <!-- begin-user-doc --> | ||
148 | * <!-- end-user-doc --> | ||
149 | * @generated | ||
150 | */ | ||
151 | private EEnum modalityEEnum = null; | ||
152 | |||
153 | /** | ||
137 | * Creates an instance of the model <b>Package</b>, registered with | 154 | * Creates an instance of the model <b>Package</b>, registered with |
138 | * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package | 155 | * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package |
139 | * package URI value. | 156 | * package URI value. |
@@ -473,6 +490,16 @@ public class CftPackageImpl extends EPackageImpl implements CftPackage { | |||
473 | * @generated | 490 | * @generated |
474 | */ | 491 | */ |
475 | @Override | 492 | @Override |
493 | public EAttribute getComponent_MultipleAllowed() { | ||
494 | return (EAttribute)componentEClass.getEStructuralFeatures().get(4); | ||
495 | } | ||
496 | |||
497 | /** | ||
498 | * <!-- begin-user-doc --> | ||
499 | * <!-- end-user-doc --> | ||
500 | * @generated | ||
501 | */ | ||
502 | @Override | ||
476 | public EClass getInput() { | 503 | public EClass getInput() { |
477 | return inputEClass; | 504 | return inputEClass; |
478 | } | 505 | } |
@@ -583,6 +610,36 @@ public class CftPackageImpl extends EPackageImpl implements CftPackage { | |||
583 | * @generated | 610 | * @generated |
584 | */ | 611 | */ |
585 | @Override | 612 | @Override |
613 | public EClass getModalElement() { | ||
614 | return modalElementEClass; | ||
615 | } | ||
616 | |||
617 | /** | ||
618 | * <!-- begin-user-doc --> | ||
619 | * <!-- end-user-doc --> | ||
620 | * @generated | ||
621 | */ | ||
622 | @Override | ||
623 | public EAttribute getModalElement_Exists() { | ||
624 | return (EAttribute)modalElementEClass.getEStructuralFeatures().get(0); | ||
625 | } | ||
626 | |||
627 | /** | ||
628 | * <!-- begin-user-doc --> | ||
629 | * <!-- end-user-doc --> | ||
630 | * @generated | ||
631 | */ | ||
632 | @Override | ||
633 | public EEnum getModality() { | ||
634 | return modalityEEnum; | ||
635 | } | ||
636 | |||
637 | /** | ||
638 | * <!-- begin-user-doc --> | ||
639 | * <!-- end-user-doc --> | ||
640 | * @generated | ||
641 | */ | ||
642 | @Override | ||
586 | public CftFactory getCftFactory() { | 643 | public CftFactory getCftFactory() { |
587 | return (CftFactory)getEFactoryInstance(); | 644 | return (CftFactory)getEFactoryInstance(); |
588 | } | 645 | } |
@@ -643,6 +700,7 @@ public class CftPackageImpl extends EPackageImpl implements CftPackage { | |||
643 | createEReference(componentEClass, COMPONENT__OUTPUTS); | 700 | createEReference(componentEClass, COMPONENT__OUTPUTS); |
644 | createEReference(componentEClass, COMPONENT__COMPONENT_DEFINITION); | 701 | createEReference(componentEClass, COMPONENT__COMPONENT_DEFINITION); |
645 | createEAttribute(componentEClass, COMPONENT__NAME); | 702 | createEAttribute(componentEClass, COMPONENT__NAME); |
703 | createEAttribute(componentEClass, COMPONENT__MULTIPLE_ALLOWED); | ||
646 | 704 | ||
647 | inputEClass = createEClass(INPUT); | 705 | inputEClass = createEClass(INPUT); |
648 | createEReference(inputEClass, INPUT__INPUT_EVENT); | 706 | createEReference(inputEClass, INPUT__INPUT_EVENT); |
@@ -657,6 +715,12 @@ public class CftPackageImpl extends EPackageImpl implements CftPackage { | |||
657 | connectionEClass = createEClass(CONNECTION); | 715 | connectionEClass = createEClass(CONNECTION); |
658 | createEReference(connectionEClass, CONNECTION__INPUT); | 716 | createEReference(connectionEClass, CONNECTION__INPUT); |
659 | createEReference(connectionEClass, CONNECTION__OUTPUT); | 717 | createEReference(connectionEClass, CONNECTION__OUTPUT); |
718 | |||
719 | modalElementEClass = createEClass(MODAL_ELEMENT); | ||
720 | createEAttribute(modalElementEClass, MODAL_ELEMENT__EXISTS); | ||
721 | |||
722 | // Create enums | ||
723 | modalityEEnum = createEEnum(MODALITY); | ||
660 | } | 724 | } |
661 | 725 | ||
662 | /** | 726 | /** |
@@ -697,6 +761,8 @@ public class CftPackageImpl extends EPackageImpl implements CftPackage { | |||
697 | andGateDefinitionEClass.getESuperTypes().add(this.getGateDefinition()); | 761 | andGateDefinitionEClass.getESuperTypes().add(this.getGateDefinition()); |
698 | orGateDefinitionEClass.getESuperTypes().add(this.getGateDefinition()); | 762 | orGateDefinitionEClass.getESuperTypes().add(this.getGateDefinition()); |
699 | kOfMGateDefinitionEClass.getESuperTypes().add(this.getGateDefinition()); | 763 | kOfMGateDefinitionEClass.getESuperTypes().add(this.getGateDefinition()); |
764 | componentEClass.getESuperTypes().add(this.getModalElement()); | ||
765 | connectionEClass.getESuperTypes().add(this.getModalElement()); | ||
700 | 766 | ||
701 | // Initialize classes, features, and operations; add parameters | 767 | // Initialize classes, features, and operations; add parameters |
702 | initEClass(componentDefinitionEClass, ComponentDefinition.class, "ComponentDefinition", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | 768 | initEClass(componentDefinitionEClass, ComponentDefinition.class, "ComponentDefinition", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
@@ -736,6 +802,7 @@ public class CftPackageImpl extends EPackageImpl implements CftPackage { | |||
736 | initEReference(getComponent_Outputs(), this.getOutput(), this.getOutput_Component(), "outputs", null, 0, -1, Component.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | 802 | initEReference(getComponent_Outputs(), this.getOutput(), this.getOutput_Component(), "outputs", null, 0, -1, Component.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
737 | initEReference(getComponent_ComponentDefinition(), this.getComponentDefinition(), null, "componentDefinition", null, 1, 1, Component.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | 803 | initEReference(getComponent_ComponentDefinition(), this.getComponentDefinition(), null, "componentDefinition", null, 1, 1, Component.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
738 | initEAttribute(getComponent_Name(), ecorePackage.getEString(), "name", null, 0, 1, Component.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | 804 | initEAttribute(getComponent_Name(), ecorePackage.getEString(), "name", null, 0, 1, Component.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
805 | initEAttribute(getComponent_MultipleAllowed(), ecorePackage.getEBoolean(), "multipleAllowed", "false", 0, 1, Component.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
739 | 806 | ||
740 | initEClass(inputEClass, Input.class, "Input", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | 807 | initEClass(inputEClass, Input.class, "Input", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
741 | initEReference(getInput_InputEvent(), this.getInputEvent(), null, "inputEvent", null, 1, 1, Input.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | 808 | initEReference(getInput_InputEvent(), this.getInputEvent(), null, "inputEvent", null, 1, 1, Input.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
@@ -751,6 +818,15 @@ public class CftPackageImpl extends EPackageImpl implements CftPackage { | |||
751 | initEReference(getConnection_Input(), this.getInput(), this.getInput_IncomingConnections(), "input", null, 1, 1, Connection.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | 818 | initEReference(getConnection_Input(), this.getInput(), this.getInput_IncomingConnections(), "input", null, 1, 1, Connection.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
752 | initEReference(getConnection_Output(), this.getOutput(), this.getOutput_OutgoingConnections(), "output", null, 1, 1, Connection.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | 819 | initEReference(getConnection_Output(), this.getOutput(), this.getOutput_OutgoingConnections(), "output", null, 1, 1, Connection.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
753 | 820 | ||
821 | initEClass(modalElementEClass, ModalElement.class, "ModalElement", IS_ABSTRACT, IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
822 | initEAttribute(getModalElement_Exists(), this.getModality(), "exists", "MUST", 0, 1, ModalElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
823 | |||
824 | // Initialize enums and add enum literals | ||
825 | initEEnum(modalityEEnum, Modality.class, "Modality"); | ||
826 | addEEnumLiteral(modalityEEnum, Modality.MAY); | ||
827 | addEEnumLiteral(modalityEEnum, Modality.CURRENT); | ||
828 | addEEnumLiteral(modalityEEnum, Modality.MUST); | ||
829 | |||
754 | // Create resource | 830 | // Create resource |
755 | createResource(eNS_URI); | 831 | createResource(eNS_URI); |
756 | } | 832 | } |
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/impl/ComponentImpl.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/impl/ComponentImpl.java index 847b6ee1..dcbf7660 100644 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/impl/ComponentImpl.java +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/impl/ComponentImpl.java | |||
@@ -6,6 +6,7 @@ import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.CftPackage; | |||
6 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Component; | 6 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Component; |
7 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.ComponentDefinition; | 7 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.ComponentDefinition; |
8 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Input; | 8 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Input; |
9 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Modality; | ||
9 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Output; | 10 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Output; |
10 | 11 | ||
11 | import java.util.Collection; | 12 | import java.util.Collection; |
@@ -32,16 +33,38 @@ import org.eclipse.emf.ecore.util.InternalEList; | |||
32 | * The following features are implemented: | 33 | * The following features are implemented: |
33 | * </p> | 34 | * </p> |
34 | * <ul> | 35 | * <ul> |
36 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.ComponentImpl#getExists <em>Exists</em>}</li> | ||
35 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.ComponentImpl#getInputs <em>Inputs</em>}</li> | 37 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.ComponentImpl#getInputs <em>Inputs</em>}</li> |
36 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.ComponentImpl#getOutputs <em>Outputs</em>}</li> | 38 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.ComponentImpl#getOutputs <em>Outputs</em>}</li> |
37 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.ComponentImpl#getComponentDefinition <em>Component Definition</em>}</li> | 39 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.ComponentImpl#getComponentDefinition <em>Component Definition</em>}</li> |
38 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.ComponentImpl#getName <em>Name</em>}</li> | 40 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.ComponentImpl#getName <em>Name</em>}</li> |
41 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.ComponentImpl#isMultipleAllowed <em>Multiple Allowed</em>}</li> | ||
39 | * </ul> | 42 | * </ul> |
40 | * | 43 | * |
41 | * @generated | 44 | * @generated |
42 | */ | 45 | */ |
43 | public class ComponentImpl extends MinimalEObjectImpl.Container implements Component { | 46 | public class ComponentImpl extends MinimalEObjectImpl.Container implements Component { |
44 | /** | 47 | /** |
48 | * The default value of the '{@link #getExists() <em>Exists</em>}' attribute. | ||
49 | * <!-- begin-user-doc --> | ||
50 | * <!-- end-user-doc --> | ||
51 | * @see #getExists() | ||
52 | * @generated | ||
53 | * @ordered | ||
54 | */ | ||
55 | protected static final Modality EXISTS_EDEFAULT = Modality.MUST; | ||
56 | |||
57 | /** | ||
58 | * The cached value of the '{@link #getExists() <em>Exists</em>}' attribute. | ||
59 | * <!-- begin-user-doc --> | ||
60 | * <!-- end-user-doc --> | ||
61 | * @see #getExists() | ||
62 | * @generated | ||
63 | * @ordered | ||
64 | */ | ||
65 | protected Modality exists = EXISTS_EDEFAULT; | ||
66 | |||
67 | /** | ||
45 | * The cached value of the '{@link #getInputs() <em>Inputs</em>}' containment reference list. | 68 | * The cached value of the '{@link #getInputs() <em>Inputs</em>}' containment reference list. |
46 | * <!-- begin-user-doc --> | 69 | * <!-- begin-user-doc --> |
47 | * <!-- end-user-doc --> | 70 | * <!-- end-user-doc --> |
@@ -92,6 +115,26 @@ public class ComponentImpl extends MinimalEObjectImpl.Container implements Compo | |||
92 | protected String name = NAME_EDEFAULT; | 115 | protected String name = NAME_EDEFAULT; |
93 | 116 | ||
94 | /** | 117 | /** |
118 | * The default value of the '{@link #isMultipleAllowed() <em>Multiple Allowed</em>}' attribute. | ||
119 | * <!-- begin-user-doc --> | ||
120 | * <!-- end-user-doc --> | ||
121 | * @see #isMultipleAllowed() | ||
122 | * @generated | ||
123 | * @ordered | ||
124 | */ | ||
125 | protected static final boolean MULTIPLE_ALLOWED_EDEFAULT = false; | ||
126 | |||
127 | /** | ||
128 | * The cached value of the '{@link #isMultipleAllowed() <em>Multiple Allowed</em>}' attribute. | ||
129 | * <!-- begin-user-doc --> | ||
130 | * <!-- end-user-doc --> | ||
131 | * @see #isMultipleAllowed() | ||
132 | * @generated | ||
133 | * @ordered | ||
134 | */ | ||
135 | protected boolean multipleAllowed = MULTIPLE_ALLOWED_EDEFAULT; | ||
136 | |||
137 | /** | ||
95 | * <!-- begin-user-doc --> | 138 | * <!-- begin-user-doc --> |
96 | * <!-- end-user-doc --> | 139 | * <!-- end-user-doc --> |
97 | * @generated | 140 | * @generated |
@@ -204,6 +247,52 @@ public class ComponentImpl extends MinimalEObjectImpl.Container implements Compo | |||
204 | * <!-- end-user-doc --> | 247 | * <!-- end-user-doc --> |
205 | * @generated | 248 | * @generated |
206 | */ | 249 | */ |
250 | @Override | ||
251 | public Modality getExists() { | ||
252 | return exists; | ||
253 | } | ||
254 | |||
255 | /** | ||
256 | * <!-- begin-user-doc --> | ||
257 | * <!-- end-user-doc --> | ||
258 | * @generated | ||
259 | */ | ||
260 | @Override | ||
261 | public void setExists(Modality newExists) { | ||
262 | Modality oldExists = exists; | ||
263 | exists = newExists == null ? EXISTS_EDEFAULT : newExists; | ||
264 | if (eNotificationRequired()) | ||
265 | eNotify(new ENotificationImpl(this, Notification.SET, CftPackage.COMPONENT__EXISTS, oldExists, exists)); | ||
266 | } | ||
267 | |||
268 | /** | ||
269 | * <!-- begin-user-doc --> | ||
270 | * <!-- end-user-doc --> | ||
271 | * @generated | ||
272 | */ | ||
273 | @Override | ||
274 | public boolean isMultipleAllowed() { | ||
275 | return multipleAllowed; | ||
276 | } | ||
277 | |||
278 | /** | ||
279 | * <!-- begin-user-doc --> | ||
280 | * <!-- end-user-doc --> | ||
281 | * @generated | ||
282 | */ | ||
283 | @Override | ||
284 | public void setMultipleAllowed(boolean newMultipleAllowed) { | ||
285 | boolean oldMultipleAllowed = multipleAllowed; | ||
286 | multipleAllowed = newMultipleAllowed; | ||
287 | if (eNotificationRequired()) | ||
288 | eNotify(new ENotificationImpl(this, Notification.SET, CftPackage.COMPONENT__MULTIPLE_ALLOWED, oldMultipleAllowed, multipleAllowed)); | ||
289 | } | ||
290 | |||
291 | /** | ||
292 | * <!-- begin-user-doc --> | ||
293 | * <!-- end-user-doc --> | ||
294 | * @generated | ||
295 | */ | ||
207 | @SuppressWarnings("unchecked") | 296 | @SuppressWarnings("unchecked") |
208 | @Override | 297 | @Override |
209 | public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) { | 298 | public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) { |
@@ -240,6 +329,8 @@ public class ComponentImpl extends MinimalEObjectImpl.Container implements Compo | |||
240 | @Override | 329 | @Override |
241 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | 330 | public Object eGet(int featureID, boolean resolve, boolean coreType) { |
242 | switch (featureID) { | 331 | switch (featureID) { |
332 | case CftPackage.COMPONENT__EXISTS: | ||
333 | return getExists(); | ||
243 | case CftPackage.COMPONENT__INPUTS: | 334 | case CftPackage.COMPONENT__INPUTS: |
244 | return getInputs(); | 335 | return getInputs(); |
245 | case CftPackage.COMPONENT__OUTPUTS: | 336 | case CftPackage.COMPONENT__OUTPUTS: |
@@ -249,6 +340,8 @@ public class ComponentImpl extends MinimalEObjectImpl.Container implements Compo | |||
249 | return basicGetComponentDefinition(); | 340 | return basicGetComponentDefinition(); |
250 | case CftPackage.COMPONENT__NAME: | 341 | case CftPackage.COMPONENT__NAME: |
251 | return getName(); | 342 | return getName(); |
343 | case CftPackage.COMPONENT__MULTIPLE_ALLOWED: | ||
344 | return isMultipleAllowed(); | ||
252 | } | 345 | } |
253 | return super.eGet(featureID, resolve, coreType); | 346 | return super.eGet(featureID, resolve, coreType); |
254 | } | 347 | } |
@@ -262,6 +355,9 @@ public class ComponentImpl extends MinimalEObjectImpl.Container implements Compo | |||
262 | @Override | 355 | @Override |
263 | public void eSet(int featureID, Object newValue) { | 356 | public void eSet(int featureID, Object newValue) { |
264 | switch (featureID) { | 357 | switch (featureID) { |
358 | case CftPackage.COMPONENT__EXISTS: | ||
359 | setExists((Modality)newValue); | ||
360 | return; | ||
265 | case CftPackage.COMPONENT__INPUTS: | 361 | case CftPackage.COMPONENT__INPUTS: |
266 | getInputs().clear(); | 362 | getInputs().clear(); |
267 | getInputs().addAll((Collection<? extends Input>)newValue); | 363 | getInputs().addAll((Collection<? extends Input>)newValue); |
@@ -276,6 +372,9 @@ public class ComponentImpl extends MinimalEObjectImpl.Container implements Compo | |||
276 | case CftPackage.COMPONENT__NAME: | 372 | case CftPackage.COMPONENT__NAME: |
277 | setName((String)newValue); | 373 | setName((String)newValue); |
278 | return; | 374 | return; |
375 | case CftPackage.COMPONENT__MULTIPLE_ALLOWED: | ||
376 | setMultipleAllowed((Boolean)newValue); | ||
377 | return; | ||
279 | } | 378 | } |
280 | super.eSet(featureID, newValue); | 379 | super.eSet(featureID, newValue); |
281 | } | 380 | } |
@@ -288,6 +387,9 @@ public class ComponentImpl extends MinimalEObjectImpl.Container implements Compo | |||
288 | @Override | 387 | @Override |
289 | public void eUnset(int featureID) { | 388 | public void eUnset(int featureID) { |
290 | switch (featureID) { | 389 | switch (featureID) { |
390 | case CftPackage.COMPONENT__EXISTS: | ||
391 | setExists(EXISTS_EDEFAULT); | ||
392 | return; | ||
291 | case CftPackage.COMPONENT__INPUTS: | 393 | case CftPackage.COMPONENT__INPUTS: |
292 | getInputs().clear(); | 394 | getInputs().clear(); |
293 | return; | 395 | return; |
@@ -300,6 +402,9 @@ public class ComponentImpl extends MinimalEObjectImpl.Container implements Compo | |||
300 | case CftPackage.COMPONENT__NAME: | 402 | case CftPackage.COMPONENT__NAME: |
301 | setName(NAME_EDEFAULT); | 403 | setName(NAME_EDEFAULT); |
302 | return; | 404 | return; |
405 | case CftPackage.COMPONENT__MULTIPLE_ALLOWED: | ||
406 | setMultipleAllowed(MULTIPLE_ALLOWED_EDEFAULT); | ||
407 | return; | ||
303 | } | 408 | } |
304 | super.eUnset(featureID); | 409 | super.eUnset(featureID); |
305 | } | 410 | } |
@@ -312,6 +417,8 @@ public class ComponentImpl extends MinimalEObjectImpl.Container implements Compo | |||
312 | @Override | 417 | @Override |
313 | public boolean eIsSet(int featureID) { | 418 | public boolean eIsSet(int featureID) { |
314 | switch (featureID) { | 419 | switch (featureID) { |
420 | case CftPackage.COMPONENT__EXISTS: | ||
421 | return exists != EXISTS_EDEFAULT; | ||
315 | case CftPackage.COMPONENT__INPUTS: | 422 | case CftPackage.COMPONENT__INPUTS: |
316 | return inputs != null && !inputs.isEmpty(); | 423 | return inputs != null && !inputs.isEmpty(); |
317 | case CftPackage.COMPONENT__OUTPUTS: | 424 | case CftPackage.COMPONENT__OUTPUTS: |
@@ -320,6 +427,8 @@ public class ComponentImpl extends MinimalEObjectImpl.Container implements Compo | |||
320 | return componentDefinition != null; | 427 | return componentDefinition != null; |
321 | case CftPackage.COMPONENT__NAME: | 428 | case CftPackage.COMPONENT__NAME: |
322 | return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); | 429 | return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); |
430 | case CftPackage.COMPONENT__MULTIPLE_ALLOWED: | ||
431 | return multipleAllowed != MULTIPLE_ALLOWED_EDEFAULT; | ||
323 | } | 432 | } |
324 | return super.eIsSet(featureID); | 433 | return super.eIsSet(featureID); |
325 | } | 434 | } |
@@ -334,8 +443,12 @@ public class ComponentImpl extends MinimalEObjectImpl.Container implements Compo | |||
334 | if (eIsProxy()) return super.toString(); | 443 | if (eIsProxy()) return super.toString(); |
335 | 444 | ||
336 | StringBuilder result = new StringBuilder(super.toString()); | 445 | StringBuilder result = new StringBuilder(super.toString()); |
337 | result.append(" (name: "); | 446 | result.append(" (exists: "); |
447 | result.append(exists); | ||
448 | result.append(", name: "); | ||
338 | result.append(name); | 449 | result.append(name); |
450 | result.append(", multipleAllowed: "); | ||
451 | result.append(multipleAllowed); | ||
339 | result.append(')'); | 452 | result.append(')'); |
340 | return result.toString(); | 453 | return result.toString(); |
341 | } | 454 | } |
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/impl/ConnectionImpl.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/impl/ConnectionImpl.java index 7506e4d7..aea86ed4 100644 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/impl/ConnectionImpl.java +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/impl/ConnectionImpl.java | |||
@@ -5,6 +5,7 @@ package hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl; | |||
5 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.CftPackage; | 5 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.CftPackage; |
6 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Connection; | 6 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Connection; |
7 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Input; | 7 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Input; |
8 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Modality; | ||
8 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Output; | 9 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Output; |
9 | 10 | ||
10 | import org.eclipse.emf.common.notify.Notification; | 11 | import org.eclipse.emf.common.notify.Notification; |
@@ -26,6 +27,7 @@ import org.eclipse.emf.ecore.util.EcoreUtil; | |||
26 | * The following features are implemented: | 27 | * The following features are implemented: |
27 | * </p> | 28 | * </p> |
28 | * <ul> | 29 | * <ul> |
30 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.ConnectionImpl#getExists <em>Exists</em>}</li> | ||
29 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.ConnectionImpl#getInput <em>Input</em>}</li> | 31 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.ConnectionImpl#getInput <em>Input</em>}</li> |
30 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.ConnectionImpl#getOutput <em>Output</em>}</li> | 32 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.ConnectionImpl#getOutput <em>Output</em>}</li> |
31 | * </ul> | 33 | * </ul> |
@@ -34,6 +36,26 @@ import org.eclipse.emf.ecore.util.EcoreUtil; | |||
34 | */ | 36 | */ |
35 | public class ConnectionImpl extends MinimalEObjectImpl.Container implements Connection { | 37 | public class ConnectionImpl extends MinimalEObjectImpl.Container implements Connection { |
36 | /** | 38 | /** |
39 | * The default value of the '{@link #getExists() <em>Exists</em>}' attribute. | ||
40 | * <!-- begin-user-doc --> | ||
41 | * <!-- end-user-doc --> | ||
42 | * @see #getExists() | ||
43 | * @generated | ||
44 | * @ordered | ||
45 | */ | ||
46 | protected static final Modality EXISTS_EDEFAULT = Modality.MUST; | ||
47 | |||
48 | /** | ||
49 | * The cached value of the '{@link #getExists() <em>Exists</em>}' attribute. | ||
50 | * <!-- begin-user-doc --> | ||
51 | * <!-- end-user-doc --> | ||
52 | * @see #getExists() | ||
53 | * @generated | ||
54 | * @ordered | ||
55 | */ | ||
56 | protected Modality exists = EXISTS_EDEFAULT; | ||
57 | |||
58 | /** | ||
37 | * The cached value of the '{@link #getOutput() <em>Output</em>}' reference. | 59 | * The cached value of the '{@link #getOutput() <em>Output</em>}' reference. |
38 | * <!-- begin-user-doc --> | 60 | * <!-- begin-user-doc --> |
39 | * <!-- end-user-doc --> | 61 | * <!-- end-user-doc --> |
@@ -173,6 +195,29 @@ public class ConnectionImpl extends MinimalEObjectImpl.Container implements Conn | |||
173 | * @generated | 195 | * @generated |
174 | */ | 196 | */ |
175 | @Override | 197 | @Override |
198 | public Modality getExists() { | ||
199 | return exists; | ||
200 | } | ||
201 | |||
202 | /** | ||
203 | * <!-- begin-user-doc --> | ||
204 | * <!-- end-user-doc --> | ||
205 | * @generated | ||
206 | */ | ||
207 | @Override | ||
208 | public void setExists(Modality newExists) { | ||
209 | Modality oldExists = exists; | ||
210 | exists = newExists == null ? EXISTS_EDEFAULT : newExists; | ||
211 | if (eNotificationRequired()) | ||
212 | eNotify(new ENotificationImpl(this, Notification.SET, CftPackage.CONNECTION__EXISTS, oldExists, exists)); | ||
213 | } | ||
214 | |||
215 | /** | ||
216 | * <!-- begin-user-doc --> | ||
217 | * <!-- end-user-doc --> | ||
218 | * @generated | ||
219 | */ | ||
220 | @Override | ||
176 | public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) { | 221 | public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) { |
177 | switch (featureID) { | 222 | switch (featureID) { |
178 | case CftPackage.CONNECTION__INPUT: | 223 | case CftPackage.CONNECTION__INPUT: |
@@ -225,6 +270,8 @@ public class ConnectionImpl extends MinimalEObjectImpl.Container implements Conn | |||
225 | @Override | 270 | @Override |
226 | public Object eGet(int featureID, boolean resolve, boolean coreType) { | 271 | public Object eGet(int featureID, boolean resolve, boolean coreType) { |
227 | switch (featureID) { | 272 | switch (featureID) { |
273 | case CftPackage.CONNECTION__EXISTS: | ||
274 | return getExists(); | ||
228 | case CftPackage.CONNECTION__INPUT: | 275 | case CftPackage.CONNECTION__INPUT: |
229 | return getInput(); | 276 | return getInput(); |
230 | case CftPackage.CONNECTION__OUTPUT: | 277 | case CftPackage.CONNECTION__OUTPUT: |
@@ -242,6 +289,9 @@ public class ConnectionImpl extends MinimalEObjectImpl.Container implements Conn | |||
242 | @Override | 289 | @Override |
243 | public void eSet(int featureID, Object newValue) { | 290 | public void eSet(int featureID, Object newValue) { |
244 | switch (featureID) { | 291 | switch (featureID) { |
292 | case CftPackage.CONNECTION__EXISTS: | ||
293 | setExists((Modality)newValue); | ||
294 | return; | ||
245 | case CftPackage.CONNECTION__INPUT: | 295 | case CftPackage.CONNECTION__INPUT: |
246 | setInput((Input)newValue); | 296 | setInput((Input)newValue); |
247 | return; | 297 | return; |
@@ -260,6 +310,9 @@ public class ConnectionImpl extends MinimalEObjectImpl.Container implements Conn | |||
260 | @Override | 310 | @Override |
261 | public void eUnset(int featureID) { | 311 | public void eUnset(int featureID) { |
262 | switch (featureID) { | 312 | switch (featureID) { |
313 | case CftPackage.CONNECTION__EXISTS: | ||
314 | setExists(EXISTS_EDEFAULT); | ||
315 | return; | ||
263 | case CftPackage.CONNECTION__INPUT: | 316 | case CftPackage.CONNECTION__INPUT: |
264 | setInput((Input)null); | 317 | setInput((Input)null); |
265 | return; | 318 | return; |
@@ -278,6 +331,8 @@ public class ConnectionImpl extends MinimalEObjectImpl.Container implements Conn | |||
278 | @Override | 331 | @Override |
279 | public boolean eIsSet(int featureID) { | 332 | public boolean eIsSet(int featureID) { |
280 | switch (featureID) { | 333 | switch (featureID) { |
334 | case CftPackage.CONNECTION__EXISTS: | ||
335 | return exists != EXISTS_EDEFAULT; | ||
281 | case CftPackage.CONNECTION__INPUT: | 336 | case CftPackage.CONNECTION__INPUT: |
282 | return getInput() != null; | 337 | return getInput() != null; |
283 | case CftPackage.CONNECTION__OUTPUT: | 338 | case CftPackage.CONNECTION__OUTPUT: |
@@ -286,4 +341,20 @@ public class ConnectionImpl extends MinimalEObjectImpl.Container implements Conn | |||
286 | return super.eIsSet(featureID); | 341 | return super.eIsSet(featureID); |
287 | } | 342 | } |
288 | 343 | ||
344 | /** | ||
345 | * <!-- begin-user-doc --> | ||
346 | * <!-- end-user-doc --> | ||
347 | * @generated | ||
348 | */ | ||
349 | @Override | ||
350 | public String toString() { | ||
351 | if (eIsProxy()) return super.toString(); | ||
352 | |||
353 | StringBuilder result = new StringBuilder(super.toString()); | ||
354 | result.append(" (exists: "); | ||
355 | result.append(exists); | ||
356 | result.append(')'); | ||
357 | return result.toString(); | ||
358 | } | ||
359 | |||
289 | } //ConnectionImpl | 360 | } //ConnectionImpl |