From 6f88c4bd4e91728cea62505e893b0ce300baf7fc Mon Sep 17 00:00:00 2001 From: Kristóf Marussy Date: Thu, 7 Feb 2019 18:24:45 +0100 Subject: Ecore2Cft transformation --- .../faulttree/model/cft/CftFactory.java | 6 +- .../faulttree/model/cft/CftPackage.java | 92 ++++++++---- .../dslreasoner/faulttree/model/cft/Component.java | 27 ++++ .../faulttree/model/cft/ComponentDefinition.java | 4 +- .../faulttree/model/cft/EventDeclaration.java | 2 +- .../inf/dslreasoner/faulttree/model/cft/Input.java | 22 +-- .../faulttree/model/cft/InputEvent.java | 49 ++++++ .../faulttree/model/cft/IntputEvent.java | 49 ------ .../faulttree/model/cft/impl/CftFactoryImpl.java | 8 +- .../faulttree/model/cft/impl/CftPackageImpl.java | 42 ++++-- .../model/cft/impl/ComponentDefinitionImpl.java | 11 +- .../faulttree/model/cft/impl/ComponentImpl.java | 70 +++++++++ .../faulttree/model/cft/impl/InputEventImpl.java | 164 +++++++++++++++++++++ .../faulttree/model/cft/impl/InputImpl.java | 55 ++++--- .../faulttree/model/cft/impl/IntputEventImpl.java | 164 --------------------- .../model/cft/util/CftAdapterFactory.java | 10 +- .../faulttree/model/cft/util/CftSwitch.java | 14 +- 17 files changed, 462 insertions(+), 327 deletions(-) create mode 100644 Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/InputEvent.java delete mode 100644 Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/IntputEvent.java create mode 100644 Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/impl/InputEventImpl.java delete mode 100644 Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/impl/IntputEventImpl.java (limited to 'Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner') diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/CftFactory.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/CftFactory.java index d5f4cd76..8b5d54a0 100644 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/CftFactory.java +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/CftFactory.java @@ -40,13 +40,13 @@ public interface CftFactory extends EFactory { BasicEventDefinition createBasicEventDefinition(); /** - * Returns a new object of class 'Intput Event'. + * Returns a new object of class 'Input Event'. * * - * @return a new object of class 'Intput Event'. + * @return a new object of class 'Input Event'. * @generated */ - IntputEvent createIntputEvent(); + InputEvent createInputEvent(); /** * Returns a new object of class 'And Gate Definition'. diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/CftPackage.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/CftPackage.java index 8cf7dbc6..d75710a2 100644 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/CftPackage.java +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/CftPackage.java @@ -287,14 +287,14 @@ public interface CftPackage extends EPackage { int BASIC_EVENT_DEFINITION_OPERATION_COUNT = EVENT_DEFINITION_OPERATION_COUNT + 0; /** - * The meta object id for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.IntputEventImpl Intput Event}' class. + * The meta object id for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.InputEventImpl Input Event}' class. * * - * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.IntputEventImpl - * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.CftPackageImpl#getIntputEvent() + * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.InputEventImpl + * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.CftPackageImpl#getInputEvent() * @generated */ - int INTPUT_EVENT = 4; + int INPUT_EVENT = 4; /** * The feature id for the 'Name' attribute. @@ -303,7 +303,7 @@ public interface CftPackage extends EPackage { * @generated * @ordered */ - int INTPUT_EVENT__NAME = EVENT_DECLARATION__NAME; + int INPUT_EVENT__NAME = EVENT_DECLARATION__NAME; /** * The feature id for the 'Multiple' attribute. @@ -312,25 +312,25 @@ public interface CftPackage extends EPackage { * @generated * @ordered */ - int INTPUT_EVENT__MULTIPLE = EVENT_DECLARATION_FEATURE_COUNT + 0; + int INPUT_EVENT__MULTIPLE = EVENT_DECLARATION_FEATURE_COUNT + 0; /** - * The number of structural features of the 'Intput Event' class. + * The number of structural features of the 'Input Event' class. * * * @generated * @ordered */ - int INTPUT_EVENT_FEATURE_COUNT = EVENT_DECLARATION_FEATURE_COUNT + 1; + int INPUT_EVENT_FEATURE_COUNT = EVENT_DECLARATION_FEATURE_COUNT + 1; /** - * The number of operations of the 'Intput Event' class. + * The number of operations of the 'Input Event' class. * * * @generated * @ordered */ - int INTPUT_EVENT_OPERATION_COUNT = EVENT_DECLARATION_OPERATION_COUNT + 0; + int INPUT_EVENT_OPERATION_COUNT = EVENT_DECLARATION_OPERATION_COUNT + 0; /** * The meta object id for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.AndGateDefinitionImpl And Gate Definition}' class. @@ -571,6 +571,15 @@ public interface CftPackage extends EPackage { */ int COMPONENT__COMPONENT_DEFINITION = 2; + /** + * The feature id for the 'Name' attribute. + * + * + * @generated + * @ordered + */ + int COMPONENT__NAME = 3; + /** * The number of structural features of the 'Component' class. * @@ -578,7 +587,7 @@ public interface CftPackage extends EPackage { * @generated * @ordered */ - int COMPONENT_FEATURE_COUNT = 3; + int COMPONENT_FEATURE_COUNT = 4; /** * The number of operations of the 'Component' class. @@ -600,13 +609,13 @@ public interface CftPackage extends EPackage { int INPUT = 11; /** - * The feature id for the 'Intput Event' reference. + * The feature id for the 'Input Event' reference. * * * @generated * @ordered */ - int INPUT__INTPUT_EVENT = 0; + int INPUT__INPUT_EVENT = 0; /** * The feature id for the 'Component' container reference. @@ -853,25 +862,25 @@ public interface CftPackage extends EPackage { EReference getBasicEventDefinition_Distribution(); /** - * Returns the meta object for class '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.IntputEvent Intput Event}'. + * Returns the meta object for class '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.InputEvent Input Event}'. * * - * @return the meta object for class 'Intput Event'. - * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.IntputEvent + * @return the meta object for class 'Input Event'. + * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.InputEvent * @generated */ - EClass getIntputEvent(); + EClass getInputEvent(); /** - * Returns the meta object for the attribute '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.IntputEvent#isMultiple Multiple}'. + * Returns the meta object for the attribute '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.InputEvent#isMultiple Multiple}'. * * * @return the meta object for the attribute 'Multiple'. - * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.IntputEvent#isMultiple() - * @see #getIntputEvent() + * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.InputEvent#isMultiple() + * @see #getInputEvent() * @generated */ - EAttribute getIntputEvent_Multiple(); + EAttribute getInputEvent_Multiple(); /** * Returns the meta object for class '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.EventDeclaration Event Declaration}'. @@ -1021,6 +1030,17 @@ public interface CftPackage extends EPackage { */ EReference getComponent_ComponentDefinition(); + /** + * Returns the meta object for the attribute '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Component#getName Name}'. + * + * + * @return the meta object for the attribute 'Name'. + * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Component#getName() + * @see #getComponent() + * @generated + */ + EAttribute getComponent_Name(); + /** * Returns the meta object for class '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Input Input}'. * @@ -1032,15 +1052,15 @@ public interface CftPackage extends EPackage { EClass getInput(); /** - * Returns the meta object for the reference '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Input#getIntputEvent Intput Event}'. + * Returns the meta object for the reference '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Input#getInputEvent Input Event}'. * * - * @return the meta object for the reference 'Intput Event'. - * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Input#getIntputEvent() + * @return the meta object for the reference 'Input Event'. + * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Input#getInputEvent() * @see #getInput() * @generated */ - EReference getInput_IntputEvent(); + EReference getInput_InputEvent(); /** * Returns the meta object for the container reference '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Input#getComponent Component}'. @@ -1251,14 +1271,14 @@ public interface CftPackage extends EPackage { EReference BASIC_EVENT_DEFINITION__DISTRIBUTION = eINSTANCE.getBasicEventDefinition_Distribution(); /** - * The meta object literal for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.IntputEventImpl Intput Event}' class. + * The meta object literal for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.InputEventImpl Input Event}' class. * * - * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.IntputEventImpl - * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.CftPackageImpl#getIntputEvent() + * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.InputEventImpl + * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.CftPackageImpl#getInputEvent() * @generated */ - EClass INTPUT_EVENT = eINSTANCE.getIntputEvent(); + EClass INPUT_EVENT = eINSTANCE.getInputEvent(); /** * The meta object literal for the 'Multiple' attribute feature. @@ -1266,7 +1286,7 @@ public interface CftPackage extends EPackage { * * @generated */ - EAttribute INTPUT_EVENT__MULTIPLE = eINSTANCE.getIntputEvent_Multiple(); + EAttribute INPUT_EVENT__MULTIPLE = eINSTANCE.getInputEvent_Multiple(); /** * The meta object literal for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.EventDeclarationImpl Event Declaration}' class. @@ -1392,6 +1412,14 @@ public interface CftPackage extends EPackage { */ EReference COMPONENT__COMPONENT_DEFINITION = eINSTANCE.getComponent_ComponentDefinition(); + /** + * The meta object literal for the 'Name' attribute feature. + * + * + * @generated + */ + EAttribute COMPONENT__NAME = eINSTANCE.getComponent_Name(); + /** * The meta object literal for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.InputImpl Input}' class. * @@ -1403,12 +1431,12 @@ public interface CftPackage extends EPackage { EClass INPUT = eINSTANCE.getInput(); /** - * The meta object literal for the 'Intput Event' reference feature. + * The meta object literal for the 'Input Event' reference feature. * * * @generated */ - EReference INPUT__INTPUT_EVENT = eINSTANCE.getInput_IntputEvent(); + EReference INPUT__INPUT_EVENT = eINSTANCE.getInput_InputEvent(); /** * The meta object literal for the 'Component' container reference feature. diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/Component.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/Component.java index e1951172..7d5055c9 100644 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/Component.java +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/Component.java @@ -18,6 +18,7 @@ import org.eclipse.emf.ecore.EObject; *
  • {@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Component#getInputs Inputs}
  • *
  • {@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Component#getOutputs Outputs}
  • *
  • {@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Component#getComponentDefinition Component Definition}
  • + *
  • {@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Component#getName Name}
  • * * * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.CftPackage#getComponent() @@ -87,4 +88,30 @@ public interface Component extends EObject { */ void setComponentDefinition(ComponentDefinition value); + /** + * Returns the value of the 'Name' attribute. + * + *

    + * If the meaning of the 'Name' attribute isn't clear, + * there really should be more of a description here... + *

    + * + * @return the value of the 'Name' attribute. + * @see #setName(String) + * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.CftPackage#getComponent_Name() + * @model + * @generated + */ + String getName(); + + /** + * Sets the value of the '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Component#getName Name}' attribute. + * + * + * @param value the new value of the 'Name' attribute. + * @see #getName() + * @generated + */ + void setName(String value); + } // Component diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/ComponentDefinition.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/ComponentDefinition.java index b3f3b163..82ab53fa 100644 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/ComponentDefinition.java +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/ComponentDefinition.java @@ -28,7 +28,7 @@ import org.eclipse.emf.ecore.EObject; public interface ComponentDefinition extends EObject { /** * Returns the value of the 'Input Events' containment reference list. - * The list contents are of type {@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.IntputEvent}. + * The list contents are of type {@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.InputEvent}. * *

    * If the meaning of the 'Input Events' containment reference list isn't clear, @@ -40,7 +40,7 @@ public interface ComponentDefinition extends EObject { * @model containment="true" * @generated */ - EList getInputEvents(); + EList getInputEvents(); /** * Returns the value of the 'Event Definitions' containment reference list. diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/EventDeclaration.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/EventDeclaration.java index 1e52a570..28d49f06 100644 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/EventDeclaration.java +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/EventDeclaration.java @@ -21,7 +21,6 @@ import org.eclipse.emf.ecore.EObject; * @generated */ public interface EventDeclaration extends EObject { - /** * Returns the value of the 'Name' attribute. * @@ -47,4 +46,5 @@ public interface EventDeclaration extends EObject { * @generated */ void setName(String value); + } // EventDeclaration diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/Input.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/Input.java index 55da3f9a..7351d1bb 100644 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/Input.java +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/Input.java @@ -15,7 +15,7 @@ import org.eclipse.emf.ecore.EObject; * The following features are supported: *

    * @@ -26,30 +26,30 @@ import org.eclipse.emf.ecore.EObject; */ public interface Input extends EObject { /** - * Returns the value of the 'Intput Event' reference. + * Returns the value of the 'Input Event' reference. * *

    - * If the meaning of the 'Intput Event' reference isn't clear, + * If the meaning of the 'Input Event' reference isn't clear, * there really should be more of a description here... *

    * - * @return the value of the 'Intput Event' reference. - * @see #setIntputEvent(IntputEvent) - * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.CftPackage#getInput_IntputEvent() + * @return the value of the 'Input Event' reference. + * @see #setInputEvent(InputEvent) + * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.CftPackage#getInput_InputEvent() * @model required="true" * @generated */ - IntputEvent getIntputEvent(); + InputEvent getInputEvent(); /** - * Sets the value of the '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Input#getIntputEvent Intput Event}' reference. + * Sets the value of the '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Input#getInputEvent Input Event}' reference. * * - * @param value the new value of the 'Intput Event' reference. - * @see #getIntputEvent() + * @param value the new value of the 'Input Event' reference. + * @see #getInputEvent() * @generated */ - void setIntputEvent(IntputEvent value); + void setInputEvent(InputEvent value); /** * Returns the value of the 'Component' container reference. diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/InputEvent.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/InputEvent.java new file mode 100644 index 00000000..92721776 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/InputEvent.java @@ -0,0 +1,49 @@ +/** + */ +package hu.bme.mit.inf.dslreasoner.faulttree.model.cft; + + +/** + * + * A representation of the model object 'Input Event'. + * + * + *

    + * The following features are supported: + *

    + * + * + * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.CftPackage#getInputEvent() + * @model + * @generated + */ +public interface InputEvent extends EventDeclaration { + /** + * Returns the value of the 'Multiple' attribute. + * + *

    + * If the meaning of the 'Multiple' attribute isn't clear, + * there really should be more of a description here... + *

    + * + * @return the value of the 'Multiple' attribute. + * @see #setMultiple(boolean) + * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.CftPackage#getInputEvent_Multiple() + * @model + * @generated + */ + boolean isMultiple(); + + /** + * Sets the value of the '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.InputEvent#isMultiple Multiple}' attribute. + * + * + * @param value the new value of the 'Multiple' attribute. + * @see #isMultiple() + * @generated + */ + void setMultiple(boolean value); + +} // InputEvent diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/IntputEvent.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/IntputEvent.java deleted file mode 100644 index bec5c487..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/IntputEvent.java +++ /dev/null @@ -1,49 +0,0 @@ -/** - */ -package hu.bme.mit.inf.dslreasoner.faulttree.model.cft; - - -/** - * - * A representation of the model object 'Intput Event'. - * - * - *

    - * The following features are supported: - *

    - * - * - * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.CftPackage#getIntputEvent() - * @model - * @generated - */ -public interface IntputEvent extends EventDeclaration { - /** - * Returns the value of the 'Multiple' attribute. - * - *

    - * If the meaning of the 'Multiple' attribute isn't clear, - * there really should be more of a description here... - *

    - * - * @return the value of the 'Multiple' attribute. - * @see #setMultiple(boolean) - * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.CftPackage#getIntputEvent_Multiple() - * @model - * @generated - */ - boolean isMultiple(); - - /** - * Sets the value of the '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.IntputEvent#isMultiple Multiple}' attribute. - * - * - * @param value the new value of the 'Multiple' attribute. - * @see #isMultiple() - * @generated - */ - void setMultiple(boolean value); - -} // IntputEvent 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 33778461..6eac2861 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 @@ -58,7 +58,7 @@ public class CftFactoryImpl extends EFactoryImpl implements CftFactory { switch (eClass.getClassifierID()) { case CftPackage.COMPONENT_DEFINITION: return createComponentDefinition(); case CftPackage.BASIC_EVENT_DEFINITION: return createBasicEventDefinition(); - case CftPackage.INTPUT_EVENT: return createIntputEvent(); + case CftPackage.INPUT_EVENT: return createInputEvent(); case CftPackage.AND_GATE_DEFINITION: return createAndGateDefinition(); case CftPackage.OR_GATE_DEFINITION: return createOrGateDefinition(); case CftPackage.KOF_MGATE_DEFINITION: return createKOfMGateDefinition(); @@ -100,9 +100,9 @@ public class CftFactoryImpl extends EFactoryImpl implements CftFactory { * @generated */ @Override - public IntputEvent createIntputEvent() { - IntputEventImpl intputEvent = new IntputEventImpl(); - return intputEvent; + public InputEvent createInputEvent() { + InputEventImpl inputEvent = new InputEventImpl(); + return inputEvent; } /** 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 f03fa0ba..1d6b6a23 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 @@ -14,7 +14,7 @@ import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.EventDeclaration; import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.EventDefinition; import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.GateDefinition; import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Input; -import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.IntputEvent; +import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.InputEvent; import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.KOfMGateDefinition; import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.OrGateDefinition; import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Output; @@ -68,7 +68,7 @@ public class CftPackageImpl extends EPackageImpl implements CftPackage { * * @generated */ - private EClass intputEventEClass = null; + private EClass inputEventEClass = null; /** * @@ -303,8 +303,8 @@ public class CftPackageImpl extends EPackageImpl implements CftPackage { * @generated */ @Override - public EClass getIntputEvent() { - return intputEventEClass; + public EClass getInputEvent() { + return inputEventEClass; } /** @@ -313,8 +313,8 @@ public class CftPackageImpl extends EPackageImpl implements CftPackage { * @generated */ @Override - public EAttribute getIntputEvent_Multiple() { - return (EAttribute)intputEventEClass.getEStructuralFeatures().get(0); + public EAttribute getInputEvent_Multiple() { + return (EAttribute)inputEventEClass.getEStructuralFeatures().get(0); } /** @@ -457,6 +457,16 @@ public class CftPackageImpl extends EPackageImpl implements CftPackage { return (EReference)componentEClass.getEStructuralFeatures().get(2); } + /** + * + * + * @generated + */ + @Override + public EAttribute getComponent_Name() { + return (EAttribute)componentEClass.getEStructuralFeatures().get(3); + } + /** * * @@ -473,7 +483,7 @@ public class CftPackageImpl extends EPackageImpl implements CftPackage { * @generated */ @Override - public EReference getInput_IntputEvent() { + public EReference getInput_InputEvent() { return (EReference)inputEClass.getEStructuralFeatures().get(0); } @@ -610,8 +620,8 @@ public class CftPackageImpl extends EPackageImpl implements CftPackage { basicEventDefinitionEClass = createEClass(BASIC_EVENT_DEFINITION); createEReference(basicEventDefinitionEClass, BASIC_EVENT_DEFINITION__DISTRIBUTION); - intputEventEClass = createEClass(INTPUT_EVENT); - createEAttribute(intputEventEClass, INTPUT_EVENT__MULTIPLE); + inputEventEClass = createEClass(INPUT_EVENT); + createEAttribute(inputEventEClass, INPUT_EVENT__MULTIPLE); eventDeclarationEClass = createEClass(EVENT_DECLARATION); createEAttribute(eventDeclarationEClass, EVENT_DECLARATION__NAME); @@ -632,9 +642,10 @@ public class CftPackageImpl extends EPackageImpl implements CftPackage { createEReference(componentEClass, COMPONENT__INPUTS); createEReference(componentEClass, COMPONENT__OUTPUTS); createEReference(componentEClass, COMPONENT__COMPONENT_DEFINITION); + createEAttribute(componentEClass, COMPONENT__NAME); inputEClass = createEClass(INPUT); - createEReference(inputEClass, INPUT__INTPUT_EVENT); + createEReference(inputEClass, INPUT__INPUT_EVENT); createEReference(inputEClass, INPUT__COMPONENT); createEReference(inputEClass, INPUT__INCOMING_CONNECTIONS); @@ -682,14 +693,14 @@ public class CftPackageImpl extends EPackageImpl implements CftPackage { eventDefinitionEClass.getESuperTypes().add(this.getEventDeclaration()); gateDefinitionEClass.getESuperTypes().add(this.getEventDefinition()); basicEventDefinitionEClass.getESuperTypes().add(this.getEventDefinition()); - intputEventEClass.getESuperTypes().add(this.getEventDeclaration()); + inputEventEClass.getESuperTypes().add(this.getEventDeclaration()); andGateDefinitionEClass.getESuperTypes().add(this.getGateDefinition()); orGateDefinitionEClass.getESuperTypes().add(this.getGateDefinition()); kOfMGateDefinitionEClass.getESuperTypes().add(this.getGateDefinition()); // Initialize classes, features, and operations; add parameters initEClass(componentDefinitionEClass, ComponentDefinition.class, "ComponentDefinition", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getComponentDefinition_InputEvents(), this.getIntputEvent(), null, "inputEvents", null, 0, -1, ComponentDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getComponentDefinition_InputEvents(), this.getInputEvent(), null, "inputEvents", null, 0, -1, ComponentDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEReference(getComponentDefinition_EventDefinitions(), this.getEventDefinition(), null, "eventDefinitions", null, 0, -1, ComponentDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEReference(getComponentDefinition_OutputEvents(), this.getEventDeclaration(), null, "outputEvents", null, 0, -1, ComponentDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getComponentDefinition_Name(), ecorePackage.getEString(), "name", null, 0, 1, ComponentDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); @@ -702,8 +713,8 @@ public class CftPackageImpl extends EPackageImpl implements CftPackage { initEClass(basicEventDefinitionEClass, BasicEventDefinition.class, "BasicEventDefinition", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEReference(getBasicEventDefinition_Distribution(), theFtPackage.getDistribution(), null, "distribution", null, 1, 1, BasicEventDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEClass(intputEventEClass, IntputEvent.class, "IntputEvent", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getIntputEvent_Multiple(), ecorePackage.getEBoolean(), "multiple", null, 0, 1, IntputEvent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEClass(inputEventEClass, InputEvent.class, "InputEvent", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getInputEvent_Multiple(), ecorePackage.getEBoolean(), "multiple", null, 0, 1, InputEvent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(eventDeclarationEClass, EventDeclaration.class, "EventDeclaration", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEAttribute(getEventDeclaration_Name(), ecorePackage.getEString(), "name", null, 0, 1, EventDeclaration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); @@ -724,9 +735,10 @@ public class CftPackageImpl extends EPackageImpl implements CftPackage { initEReference(getComponent_Inputs(), this.getInput(), this.getInput_Component(), "inputs", null, 0, -1, Component.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); 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); 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); + 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); initEClass(inputEClass, Input.class, "Input", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getInput_IntputEvent(), this.getIntputEvent(), null, "intputEvent", null, 1, 1, Input.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + 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); initEReference(getInput_Component(), this.getComponent(), this.getComponent_Inputs(), "component", null, 1, 1, Input.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEReference(getInput_IncomingConnections(), this.getConnection(), this.getConnection_Input(), "incomingConnections", null, 0, -1, Input.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/impl/ComponentDefinitionImpl.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/impl/ComponentDefinitionImpl.java index 58a476f3..3b79fb0c 100644 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/impl/ComponentDefinitionImpl.java +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/impl/ComponentDefinitionImpl.java @@ -6,8 +6,7 @@ import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.CftPackage; import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.ComponentDefinition; import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.EventDeclaration; import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.EventDefinition; -import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.IntputEvent; - +import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.InputEvent; import java.util.Collection; import org.eclipse.emf.common.notify.Notification; @@ -50,7 +49,7 @@ public class ComponentDefinitionImpl extends MinimalEObjectImpl.Container implem * @generated * @ordered */ - protected EList inputEvents; + protected EList inputEvents; /** * The cached value of the '{@link #getEventDefinitions() Event Definitions}' containment reference list. @@ -117,9 +116,9 @@ public class ComponentDefinitionImpl extends MinimalEObjectImpl.Container implem * @generated */ @Override - public EList getInputEvents() { + public EList getInputEvents() { if (inputEvents == null) { - inputEvents = new EObjectContainmentEList(IntputEvent.class, this, CftPackage.COMPONENT_DEFINITION__INPUT_EVENTS); + inputEvents = new EObjectContainmentEList(InputEvent.class, this, CftPackage.COMPONENT_DEFINITION__INPUT_EVENTS); } return inputEvents; } @@ -220,7 +219,7 @@ public class ComponentDefinitionImpl extends MinimalEObjectImpl.Container implem switch (featureID) { case CftPackage.COMPONENT_DEFINITION__INPUT_EVENTS: getInputEvents().clear(); - getInputEvents().addAll((Collection)newValue); + getInputEvents().addAll((Collection)newValue); return; case CftPackage.COMPONENT_DEFINITION__EVENT_DEFINITIONS: getEventDefinitions().clear(); 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 6d23dc78..847b6ee1 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 @@ -35,6 +35,7 @@ import org.eclipse.emf.ecore.util.InternalEList; *
  • {@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.ComponentImpl#getInputs Inputs}
  • *
  • {@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.ComponentImpl#getOutputs Outputs}
  • *
  • {@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.ComponentImpl#getComponentDefinition Component Definition}
  • + *
  • {@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.ComponentImpl#getName Name}
  • * * * @generated @@ -70,6 +71,26 @@ public class ComponentImpl extends MinimalEObjectImpl.Container implements Compo */ protected ComponentDefinition componentDefinition; + /** + * The default value of the '{@link #getName() Name}' attribute. + * + * + * @see #getName() + * @generated + * @ordered + */ + protected static final String NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getName() Name}' attribute. + * + * + * @see #getName() + * @generated + * @ordered + */ + protected String name = NAME_EDEFAULT; + /** * * @@ -155,6 +176,29 @@ public class ComponentImpl extends MinimalEObjectImpl.Container implements Compo eNotify(new ENotificationImpl(this, Notification.SET, CftPackage.COMPONENT__COMPONENT_DEFINITION, oldComponentDefinition, componentDefinition)); } + /** + * + * + * @generated + */ + @Override + public String getName() { + return name; + } + + /** + * + * + * @generated + */ + @Override + public void setName(String newName) { + String oldName = name; + name = newName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CftPackage.COMPONENT__NAME, oldName, name)); + } + /** * * @@ -203,6 +247,8 @@ public class ComponentImpl extends MinimalEObjectImpl.Container implements Compo case CftPackage.COMPONENT__COMPONENT_DEFINITION: if (resolve) return getComponentDefinition(); return basicGetComponentDefinition(); + case CftPackage.COMPONENT__NAME: + return getName(); } return super.eGet(featureID, resolve, coreType); } @@ -227,6 +273,9 @@ public class ComponentImpl extends MinimalEObjectImpl.Container implements Compo case CftPackage.COMPONENT__COMPONENT_DEFINITION: setComponentDefinition((ComponentDefinition)newValue); return; + case CftPackage.COMPONENT__NAME: + setName((String)newValue); + return; } super.eSet(featureID, newValue); } @@ -248,6 +297,9 @@ public class ComponentImpl extends MinimalEObjectImpl.Container implements Compo case CftPackage.COMPONENT__COMPONENT_DEFINITION: setComponentDefinition((ComponentDefinition)null); return; + case CftPackage.COMPONENT__NAME: + setName(NAME_EDEFAULT); + return; } super.eUnset(featureID); } @@ -266,8 +318,26 @@ public class ComponentImpl extends MinimalEObjectImpl.Container implements Compo return outputs != null && !outputs.isEmpty(); case CftPackage.COMPONENT__COMPONENT_DEFINITION: return componentDefinition != null; + case CftPackage.COMPONENT__NAME: + return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); } return super.eIsSet(featureID); } + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuilder result = new StringBuilder(super.toString()); + result.append(" (name: "); + result.append(name); + result.append(')'); + return result.toString(); + } + } //ComponentImpl diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/impl/InputEventImpl.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/impl/InputEventImpl.java new file mode 100644 index 00000000..8432e29b --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/impl/InputEventImpl.java @@ -0,0 +1,164 @@ +/** + */ +package hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl; + +import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.CftPackage; +import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.InputEvent; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +/** + * + * An implementation of the model object 'Input Event'. + * + *

    + * The following features are implemented: + *

    + *
      + *
    • {@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.InputEventImpl#isMultiple Multiple}
    • + *
    + * + * @generated + */ +public class InputEventImpl extends EventDeclarationImpl implements InputEvent { + /** + * The default value of the '{@link #isMultiple() Multiple}' attribute. + * + * + * @see #isMultiple() + * @generated + * @ordered + */ + protected static final boolean MULTIPLE_EDEFAULT = false; + + /** + * The cached value of the '{@link #isMultiple() Multiple}' attribute. + * + * + * @see #isMultiple() + * @generated + * @ordered + */ + protected boolean multiple = MULTIPLE_EDEFAULT; + + /** + * + * + * @generated + */ + protected InputEventImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return CftPackage.Literals.INPUT_EVENT; + } + + /** + * + * + * @generated + */ + @Override + public boolean isMultiple() { + return multiple; + } + + /** + * + * + * @generated + */ + @Override + public void setMultiple(boolean newMultiple) { + boolean oldMultiple = multiple; + multiple = newMultiple; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CftPackage.INPUT_EVENT__MULTIPLE, oldMultiple, multiple)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case CftPackage.INPUT_EVENT__MULTIPLE: + return isMultiple(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case CftPackage.INPUT_EVENT__MULTIPLE: + setMultiple((Boolean)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case CftPackage.INPUT_EVENT__MULTIPLE: + setMultiple(MULTIPLE_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case CftPackage.INPUT_EVENT__MULTIPLE: + return multiple != MULTIPLE_EDEFAULT; + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuilder result = new StringBuilder(super.toString()); + result.append(" (multiple: "); + result.append(multiple); + result.append(')'); + return result.toString(); + } + +} //InputEventImpl diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/impl/InputImpl.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/impl/InputImpl.java index eda5fea0..aa560064 100644 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/impl/InputImpl.java +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/impl/InputImpl.java @@ -6,8 +6,7 @@ import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.CftPackage; import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Component; import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Connection; import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.Input; -import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.IntputEvent; - +import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.InputEvent; import java.util.Collection; import org.eclipse.emf.common.notify.Notification; @@ -33,7 +32,7 @@ import org.eclipse.emf.ecore.util.InternalEList; * The following features are implemented: *

    *
      - *
    • {@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.InputImpl#getIntputEvent Intput Event}
    • + *
    • {@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.InputImpl#getInputEvent Input Event}
    • *
    • {@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.InputImpl#getComponent Component}
    • *
    • {@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.InputImpl#getIncomingConnections Incoming Connections}
    • *
    @@ -42,14 +41,14 @@ import org.eclipse.emf.ecore.util.InternalEList; */ public class InputImpl extends MinimalEObjectImpl.Container implements Input { /** - * The cached value of the '{@link #getIntputEvent() Intput Event}' reference. + * The cached value of the '{@link #getInputEvent() Input Event}' reference. * * - * @see #getIntputEvent() + * @see #getInputEvent() * @generated * @ordered */ - protected IntputEvent intputEvent; + protected InputEvent inputEvent; /** * The cached value of the '{@link #getIncomingConnections() Incoming Connections}' containment reference list. @@ -86,16 +85,16 @@ public class InputImpl extends MinimalEObjectImpl.Container implements Input { * @generated */ @Override - public IntputEvent getIntputEvent() { - if (intputEvent != null && intputEvent.eIsProxy()) { - InternalEObject oldIntputEvent = (InternalEObject)intputEvent; - intputEvent = (IntputEvent)eResolveProxy(oldIntputEvent); - if (intputEvent != oldIntputEvent) { + public InputEvent getInputEvent() { + if (inputEvent != null && inputEvent.eIsProxy()) { + InternalEObject oldInputEvent = (InternalEObject)inputEvent; + inputEvent = (InputEvent)eResolveProxy(oldInputEvent); + if (inputEvent != oldInputEvent) { if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.RESOLVE, CftPackage.INPUT__INTPUT_EVENT, oldIntputEvent, intputEvent)); + eNotify(new ENotificationImpl(this, Notification.RESOLVE, CftPackage.INPUT__INPUT_EVENT, oldInputEvent, inputEvent)); } } - return intputEvent; + return inputEvent; } /** @@ -103,8 +102,8 @@ public class InputImpl extends MinimalEObjectImpl.Container implements Input { * * @generated */ - public IntputEvent basicGetIntputEvent() { - return intputEvent; + public InputEvent basicGetInputEvent() { + return inputEvent; } /** @@ -113,11 +112,11 @@ public class InputImpl extends MinimalEObjectImpl.Container implements Input { * @generated */ @Override - public void setIntputEvent(IntputEvent newIntputEvent) { - IntputEvent oldIntputEvent = intputEvent; - intputEvent = newIntputEvent; + public void setInputEvent(InputEvent newInputEvent) { + InputEvent oldInputEvent = inputEvent; + inputEvent = newInputEvent; if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, CftPackage.INPUT__INTPUT_EVENT, oldIntputEvent, intputEvent)); + eNotify(new ENotificationImpl(this, Notification.SET, CftPackage.INPUT__INPUT_EVENT, oldInputEvent, inputEvent)); } /** @@ -233,9 +232,9 @@ public class InputImpl extends MinimalEObjectImpl.Container implements Input { @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { - case CftPackage.INPUT__INTPUT_EVENT: - if (resolve) return getIntputEvent(); - return basicGetIntputEvent(); + case CftPackage.INPUT__INPUT_EVENT: + if (resolve) return getInputEvent(); + return basicGetInputEvent(); case CftPackage.INPUT__COMPONENT: return getComponent(); case CftPackage.INPUT__INCOMING_CONNECTIONS: @@ -253,8 +252,8 @@ public class InputImpl extends MinimalEObjectImpl.Container implements Input { @Override public void eSet(int featureID, Object newValue) { switch (featureID) { - case CftPackage.INPUT__INTPUT_EVENT: - setIntputEvent((IntputEvent)newValue); + case CftPackage.INPUT__INPUT_EVENT: + setInputEvent((InputEvent)newValue); return; case CftPackage.INPUT__COMPONENT: setComponent((Component)newValue); @@ -275,8 +274,8 @@ public class InputImpl extends MinimalEObjectImpl.Container implements Input { @Override public void eUnset(int featureID) { switch (featureID) { - case CftPackage.INPUT__INTPUT_EVENT: - setIntputEvent((IntputEvent)null); + case CftPackage.INPUT__INPUT_EVENT: + setInputEvent((InputEvent)null); return; case CftPackage.INPUT__COMPONENT: setComponent((Component)null); @@ -296,8 +295,8 @@ public class InputImpl extends MinimalEObjectImpl.Container implements Input { @Override public boolean eIsSet(int featureID) { switch (featureID) { - case CftPackage.INPUT__INTPUT_EVENT: - return intputEvent != null; + case CftPackage.INPUT__INPUT_EVENT: + return inputEvent != null; case CftPackage.INPUT__COMPONENT: return getComponent() != null; case CftPackage.INPUT__INCOMING_CONNECTIONS: diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/impl/IntputEventImpl.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/impl/IntputEventImpl.java deleted file mode 100644 index ea22452f..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/impl/IntputEventImpl.java +++ /dev/null @@ -1,164 +0,0 @@ -/** - */ -package hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl; - -import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.CftPackage; -import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.IntputEvent; - -import org.eclipse.emf.common.notify.Notification; - -import org.eclipse.emf.ecore.EClass; - -import org.eclipse.emf.ecore.impl.ENotificationImpl; - -/** - * - * An implementation of the model object 'Intput Event'. - * - *

    - * The following features are implemented: - *

    - *
      - *
    • {@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl.IntputEventImpl#isMultiple Multiple}
    • - *
    - * - * @generated - */ -public class IntputEventImpl extends EventDeclarationImpl implements IntputEvent { - /** - * The default value of the '{@link #isMultiple() Multiple}' attribute. - * - * - * @see #isMultiple() - * @generated - * @ordered - */ - protected static final boolean MULTIPLE_EDEFAULT = false; - - /** - * The cached value of the '{@link #isMultiple() Multiple}' attribute. - * - * - * @see #isMultiple() - * @generated - * @ordered - */ - protected boolean multiple = MULTIPLE_EDEFAULT; - - /** - * - * - * @generated - */ - protected IntputEventImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return CftPackage.Literals.INTPUT_EVENT; - } - - /** - * - * - * @generated - */ - @Override - public boolean isMultiple() { - return multiple; - } - - /** - * - * - * @generated - */ - @Override - public void setMultiple(boolean newMultiple) { - boolean oldMultiple = multiple; - multiple = newMultiple; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, CftPackage.INTPUT_EVENT__MULTIPLE, oldMultiple, multiple)); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case CftPackage.INTPUT_EVENT__MULTIPLE: - return isMultiple(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case CftPackage.INTPUT_EVENT__MULTIPLE: - setMultiple((Boolean)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case CftPackage.INTPUT_EVENT__MULTIPLE: - setMultiple(MULTIPLE_EDEFAULT); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case CftPackage.INTPUT_EVENT__MULTIPLE: - return multiple != MULTIPLE_EDEFAULT; - } - return super.eIsSet(featureID); - } - - /** - * - * - * @generated - */ - @Override - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuilder result = new StringBuilder(super.toString()); - result.append(" (multiple: "); - result.append(multiple); - result.append(')'); - return result.toString(); - } - -} //IntputEventImpl diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/util/CftAdapterFactory.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/util/CftAdapterFactory.java index c6b82734..e3a40888 100644 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/util/CftAdapterFactory.java +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/util/CftAdapterFactory.java @@ -84,8 +84,8 @@ public class CftAdapterFactory extends AdapterFactoryImpl { return createBasicEventDefinitionAdapter(); } @Override - public Adapter caseIntputEvent(IntputEvent object) { - return createIntputEventAdapter(); + public Adapter caseInputEvent(InputEvent object) { + return createInputEventAdapter(); } @Override public Adapter caseEventDeclaration(EventDeclaration object) { @@ -200,16 +200,16 @@ public class CftAdapterFactory extends AdapterFactoryImpl { } /** - * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.IntputEvent Intput Event}'. + * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.InputEvent Input Event}'. * * This default implementation returns null so that we can easily ignore cases; * it's useful to ignore a case when inheritance will catch all the cases anyway. * * @return the new adapter. - * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.IntputEvent + * @see hu.bme.mit.inf.dslreasoner.faulttree.model.cft.InputEvent * @generated */ - public Adapter createIntputEventAdapter() { + public Adapter createInputEventAdapter() { return null; } diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/util/CftSwitch.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/util/CftSwitch.java index f2ec9ffb..e32d792b 100644 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/util/CftSwitch.java +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/util/CftSwitch.java @@ -95,10 +95,10 @@ public class CftSwitch extends Switch { if (result == null) result = defaultCase(theEObject); return result; } - case CftPackage.INTPUT_EVENT: { - IntputEvent intputEvent = (IntputEvent)theEObject; - T result = caseIntputEvent(intputEvent); - if (result == null) result = caseEventDeclaration(intputEvent); + case CftPackage.INPUT_EVENT: { + InputEvent inputEvent = (InputEvent)theEObject; + T result = caseInputEvent(inputEvent); + if (result == null) result = caseEventDeclaration(inputEvent); if (result == null) result = defaultCase(theEObject); return result; } @@ -230,17 +230,17 @@ public class CftSwitch extends Switch { } /** - * Returns the result of interpreting the object as an instance of 'Intput Event'. + * Returns the result of interpreting the object as an instance of 'Input Event'. * * This implementation returns null; * returning a non-null result will terminate the switch. * * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Intput Event'. + * @return the result of interpreting the object as an instance of 'Input Event'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ - public T caseIntputEvent(IntputEvent object) { + public T caseInputEvent(InputEvent object) { return null; } -- cgit v1.2.3-54-g00ecf