diff options
Diffstat (limited to 'Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner')
57 files changed, 17933 insertions, 0 deletions
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/AbstractCftLanguageRuntimeModule.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/AbstractCftLanguageRuntimeModule.java new file mode 100644 index 00000000..bdec0d5b --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/AbstractCftLanguageRuntimeModule.java | |||
@@ -0,0 +1,208 @@ | |||
1 | /* | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components; | ||
5 | |||
6 | import com.google.inject.Binder; | ||
7 | import com.google.inject.Provider; | ||
8 | import com.google.inject.name.Names; | ||
9 | import hu.bme.mit.inf.dslreasoner.faulttree.components.generator.CftLanguageGenerator; | ||
10 | import hu.bme.mit.inf.dslreasoner.faulttree.components.parser.antlr.CftLanguageAntlrTokenFileProvider; | ||
11 | import hu.bme.mit.inf.dslreasoner.faulttree.components.parser.antlr.CftLanguageParser; | ||
12 | import hu.bme.mit.inf.dslreasoner.faulttree.components.parser.antlr.internal.InternalCftLanguageLexer; | ||
13 | import hu.bme.mit.inf.dslreasoner.faulttree.components.scoping.CftLanguageScopeProvider; | ||
14 | import hu.bme.mit.inf.dslreasoner.faulttree.components.serializer.CftLanguageSemanticSequencer; | ||
15 | import hu.bme.mit.inf.dslreasoner.faulttree.components.serializer.CftLanguageSyntacticSequencer; | ||
16 | import hu.bme.mit.inf.dslreasoner.faulttree.components.services.CftLanguageGrammarAccess; | ||
17 | import hu.bme.mit.inf.dslreasoner.faulttree.components.validation.CftLanguageConfigurableIssueCodesProvider; | ||
18 | import hu.bme.mit.inf.dslreasoner.faulttree.components.validation.CftLanguageValidator; | ||
19 | import java.util.Properties; | ||
20 | import org.eclipse.xtext.Constants; | ||
21 | import org.eclipse.xtext.IGrammarAccess; | ||
22 | import org.eclipse.xtext.generator.IGenerator2; | ||
23 | import org.eclipse.xtext.naming.DefaultDeclarativeQualifiedNameProvider; | ||
24 | import org.eclipse.xtext.naming.IQualifiedNameProvider; | ||
25 | import org.eclipse.xtext.parser.IParser; | ||
26 | import org.eclipse.xtext.parser.ITokenToStringConverter; | ||
27 | import org.eclipse.xtext.parser.antlr.AntlrTokenDefProvider; | ||
28 | import org.eclipse.xtext.parser.antlr.AntlrTokenToStringConverter; | ||
29 | import org.eclipse.xtext.parser.antlr.IAntlrTokenFileProvider; | ||
30 | import org.eclipse.xtext.parser.antlr.ITokenDefProvider; | ||
31 | import org.eclipse.xtext.parser.antlr.IUnorderedGroupHelper; | ||
32 | import org.eclipse.xtext.parser.antlr.Lexer; | ||
33 | import org.eclipse.xtext.parser.antlr.LexerBindings; | ||
34 | import org.eclipse.xtext.parser.antlr.LexerProvider; | ||
35 | import org.eclipse.xtext.parser.antlr.UnorderedGroupHelper; | ||
36 | import org.eclipse.xtext.resource.IContainer; | ||
37 | import org.eclipse.xtext.resource.IResourceDescriptions; | ||
38 | import org.eclipse.xtext.resource.containers.IAllContainersState; | ||
39 | import org.eclipse.xtext.resource.containers.ResourceSetBasedAllContainersStateProvider; | ||
40 | import org.eclipse.xtext.resource.containers.StateBasedContainerManager; | ||
41 | import org.eclipse.xtext.resource.impl.ResourceDescriptionsProvider; | ||
42 | import org.eclipse.xtext.resource.impl.ResourceSetBasedResourceDescriptions; | ||
43 | import org.eclipse.xtext.scoping.IGlobalScopeProvider; | ||
44 | import org.eclipse.xtext.scoping.IScopeProvider; | ||
45 | import org.eclipse.xtext.scoping.IgnoreCaseLinking; | ||
46 | import org.eclipse.xtext.scoping.impl.AbstractDeclarativeScopeProvider; | ||
47 | import org.eclipse.xtext.scoping.impl.DefaultGlobalScopeProvider; | ||
48 | import org.eclipse.xtext.scoping.impl.ImportedNamespaceAwareLocalScopeProvider; | ||
49 | import org.eclipse.xtext.serializer.ISerializer; | ||
50 | import org.eclipse.xtext.serializer.impl.Serializer; | ||
51 | import org.eclipse.xtext.serializer.sequencer.ISemanticSequencer; | ||
52 | import org.eclipse.xtext.serializer.sequencer.ISyntacticSequencer; | ||
53 | import org.eclipse.xtext.service.DefaultRuntimeModule; | ||
54 | import org.eclipse.xtext.service.SingletonBinding; | ||
55 | import org.eclipse.xtext.validation.ConfigurableIssueCodesProvider; | ||
56 | |||
57 | /** | ||
58 | * Manual modifications go to {@link CftLanguageRuntimeModule}. | ||
59 | */ | ||
60 | @SuppressWarnings("all") | ||
61 | public abstract class AbstractCftLanguageRuntimeModule extends DefaultRuntimeModule { | ||
62 | |||
63 | protected Properties properties = null; | ||
64 | |||
65 | @Override | ||
66 | public void configure(Binder binder) { | ||
67 | properties = tryBindProperties(binder, "hu/bme/mit/inf/dslreasoner/faulttree/components/CftLanguage.properties"); | ||
68 | super.configure(binder); | ||
69 | } | ||
70 | |||
71 | public void configureLanguageName(Binder binder) { | ||
72 | binder.bind(String.class).annotatedWith(Names.named(Constants.LANGUAGE_NAME)).toInstance("hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage"); | ||
73 | } | ||
74 | |||
75 | public void configureFileExtensions(Binder binder) { | ||
76 | if (properties == null || properties.getProperty(Constants.FILE_EXTENSIONS) == null) | ||
77 | binder.bind(String.class).annotatedWith(Names.named(Constants.FILE_EXTENSIONS)).toInstance("cft"); | ||
78 | } | ||
79 | |||
80 | // contributed by org.eclipse.xtext.xtext.generator.grammarAccess.GrammarAccessFragment2 | ||
81 | public ClassLoader bindClassLoaderToInstance() { | ||
82 | return getClass().getClassLoader(); | ||
83 | } | ||
84 | |||
85 | // contributed by org.eclipse.xtext.xtext.generator.grammarAccess.GrammarAccessFragment2 | ||
86 | public Class<? extends IGrammarAccess> bindIGrammarAccess() { | ||
87 | return CftLanguageGrammarAccess.class; | ||
88 | } | ||
89 | |||
90 | // contributed by org.eclipse.xtext.xtext.generator.serializer.SerializerFragment2 | ||
91 | public Class<? extends ISemanticSequencer> bindISemanticSequencer() { | ||
92 | return CftLanguageSemanticSequencer.class; | ||
93 | } | ||
94 | |||
95 | // contributed by org.eclipse.xtext.xtext.generator.serializer.SerializerFragment2 | ||
96 | public Class<? extends ISyntacticSequencer> bindISyntacticSequencer() { | ||
97 | return CftLanguageSyntacticSequencer.class; | ||
98 | } | ||
99 | |||
100 | // contributed by org.eclipse.xtext.xtext.generator.serializer.SerializerFragment2 | ||
101 | public Class<? extends ISerializer> bindISerializer() { | ||
102 | return Serializer.class; | ||
103 | } | ||
104 | |||
105 | // contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2 | ||
106 | public Class<? extends IParser> bindIParser() { | ||
107 | return CftLanguageParser.class; | ||
108 | } | ||
109 | |||
110 | // contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2 | ||
111 | public Class<? extends ITokenToStringConverter> bindITokenToStringConverter() { | ||
112 | return AntlrTokenToStringConverter.class; | ||
113 | } | ||
114 | |||
115 | // contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2 | ||
116 | public Class<? extends IAntlrTokenFileProvider> bindIAntlrTokenFileProvider() { | ||
117 | return CftLanguageAntlrTokenFileProvider.class; | ||
118 | } | ||
119 | |||
120 | // contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2 | ||
121 | public Class<? extends Lexer> bindLexer() { | ||
122 | return InternalCftLanguageLexer.class; | ||
123 | } | ||
124 | |||
125 | // contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2 | ||
126 | public Class<? extends ITokenDefProvider> bindITokenDefProvider() { | ||
127 | return AntlrTokenDefProvider.class; | ||
128 | } | ||
129 | |||
130 | // contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2 | ||
131 | public Provider<? extends InternalCftLanguageLexer> provideInternalCftLanguageLexer() { | ||
132 | return LexerProvider.create(InternalCftLanguageLexer.class); | ||
133 | } | ||
134 | |||
135 | // contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2 | ||
136 | public void configureRuntimeLexer(Binder binder) { | ||
137 | binder.bind(Lexer.class) | ||
138 | .annotatedWith(Names.named(LexerBindings.RUNTIME)) | ||
139 | .to(InternalCftLanguageLexer.class); | ||
140 | } | ||
141 | |||
142 | // contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2 | ||
143 | public Class<? extends IUnorderedGroupHelper> bindIUnorderedGroupHelper() { | ||
144 | return UnorderedGroupHelper.class; | ||
145 | } | ||
146 | |||
147 | // contributed by org.eclipse.xtext.xtext.generator.validation.ValidatorFragment2 | ||
148 | @SingletonBinding(eager=true) | ||
149 | public Class<? extends CftLanguageValidator> bindCftLanguageValidator() { | ||
150 | return CftLanguageValidator.class; | ||
151 | } | ||
152 | |||
153 | // contributed by org.eclipse.xtext.xtext.generator.validation.ValidatorFragment2 | ||
154 | public Class<? extends ConfigurableIssueCodesProvider> bindConfigurableIssueCodesProvider() { | ||
155 | return CftLanguageConfigurableIssueCodesProvider.class; | ||
156 | } | ||
157 | |||
158 | // contributed by org.eclipse.xtext.xtext.generator.scoping.ImportNamespacesScopingFragment2 | ||
159 | public Class<? extends IScopeProvider> bindIScopeProvider() { | ||
160 | return CftLanguageScopeProvider.class; | ||
161 | } | ||
162 | |||
163 | // contributed by org.eclipse.xtext.xtext.generator.scoping.ImportNamespacesScopingFragment2 | ||
164 | public void configureIScopeProviderDelegate(Binder binder) { | ||
165 | binder.bind(IScopeProvider.class).annotatedWith(Names.named(AbstractDeclarativeScopeProvider.NAMED_DELEGATE)).to(ImportedNamespaceAwareLocalScopeProvider.class); | ||
166 | } | ||
167 | |||
168 | // contributed by org.eclipse.xtext.xtext.generator.scoping.ImportNamespacesScopingFragment2 | ||
169 | public Class<? extends IGlobalScopeProvider> bindIGlobalScopeProvider() { | ||
170 | return DefaultGlobalScopeProvider.class; | ||
171 | } | ||
172 | |||
173 | // contributed by org.eclipse.xtext.xtext.generator.scoping.ImportNamespacesScopingFragment2 | ||
174 | public void configureIgnoreCaseLinking(Binder binder) { | ||
175 | binder.bindConstant().annotatedWith(IgnoreCaseLinking.class).to(false); | ||
176 | } | ||
177 | |||
178 | // contributed by org.eclipse.xtext.xtext.generator.exporting.QualifiedNamesFragment2 | ||
179 | public Class<? extends IQualifiedNameProvider> bindIQualifiedNameProvider() { | ||
180 | return DefaultDeclarativeQualifiedNameProvider.class; | ||
181 | } | ||
182 | |||
183 | // contributed by org.eclipse.xtext.xtext.generator.builder.BuilderIntegrationFragment2 | ||
184 | public Class<? extends IContainer.Manager> bindIContainer$Manager() { | ||
185 | return StateBasedContainerManager.class; | ||
186 | } | ||
187 | |||
188 | // contributed by org.eclipse.xtext.xtext.generator.builder.BuilderIntegrationFragment2 | ||
189 | public Class<? extends IAllContainersState.Provider> bindIAllContainersState$Provider() { | ||
190 | return ResourceSetBasedAllContainersStateProvider.class; | ||
191 | } | ||
192 | |||
193 | // contributed by org.eclipse.xtext.xtext.generator.builder.BuilderIntegrationFragment2 | ||
194 | public void configureIResourceDescriptions(Binder binder) { | ||
195 | binder.bind(IResourceDescriptions.class).to(ResourceSetBasedResourceDescriptions.class); | ||
196 | } | ||
197 | |||
198 | // contributed by org.eclipse.xtext.xtext.generator.builder.BuilderIntegrationFragment2 | ||
199 | public void configureIResourceDescriptionsPersisted(Binder binder) { | ||
200 | binder.bind(IResourceDescriptions.class).annotatedWith(Names.named(ResourceDescriptionsProvider.PERSISTED_DESCRIPTIONS)).to(ResourceSetBasedResourceDescriptions.class); | ||
201 | } | ||
202 | |||
203 | // contributed by org.eclipse.xtext.xtext.generator.generator.GeneratorFragment2 | ||
204 | public Class<? extends IGenerator2> bindIGenerator2() { | ||
205 | return CftLanguageGenerator.class; | ||
206 | } | ||
207 | |||
208 | } | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/CftLanguage.xtextbin b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/CftLanguage.xtextbin new file mode 100644 index 00000000..b39c9074 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/CftLanguage.xtextbin | |||
Binary files differ | |||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/CftLanguageStandaloneSetupGenerated.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/CftLanguageStandaloneSetupGenerated.java new file mode 100644 index 00000000..75f38b14 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/CftLanguageStandaloneSetupGenerated.java | |||
@@ -0,0 +1,42 @@ | |||
1 | /* | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components; | ||
5 | |||
6 | import com.google.inject.Guice; | ||
7 | import com.google.inject.Injector; | ||
8 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage; | ||
9 | import org.eclipse.emf.ecore.EPackage; | ||
10 | import org.eclipse.emf.ecore.resource.Resource; | ||
11 | import org.eclipse.xtext.ISetup; | ||
12 | import org.eclipse.xtext.common.TerminalsStandaloneSetup; | ||
13 | import org.eclipse.xtext.resource.IResourceFactory; | ||
14 | import org.eclipse.xtext.resource.IResourceServiceProvider; | ||
15 | |||
16 | @SuppressWarnings("all") | ||
17 | public class CftLanguageStandaloneSetupGenerated implements ISetup { | ||
18 | |||
19 | @Override | ||
20 | public Injector createInjectorAndDoEMFRegistration() { | ||
21 | TerminalsStandaloneSetup.doSetup(); | ||
22 | |||
23 | Injector injector = createInjector(); | ||
24 | register(injector); | ||
25 | return injector; | ||
26 | } | ||
27 | |||
28 | public Injector createInjector() { | ||
29 | return Guice.createInjector(new CftLanguageRuntimeModule()); | ||
30 | } | ||
31 | |||
32 | public void register(Injector injector) { | ||
33 | if (!EPackage.Registry.INSTANCE.containsKey("http://www.bme.hu/mit/inf/dslreasoner/faulttree/components/CftLanguage")) { | ||
34 | EPackage.Registry.INSTANCE.put("http://www.bme.hu/mit/inf/dslreasoner/faulttree/components/CftLanguage", CftLanguagePackage.eINSTANCE); | ||
35 | } | ||
36 | IResourceFactory resourceFactory = injector.getInstance(IResourceFactory.class); | ||
37 | IResourceServiceProvider serviceProvider = injector.getInstance(IResourceServiceProvider.class); | ||
38 | |||
39 | Resource.Factory.Registry.INSTANCE.getExtensionToFactoryMap().put("cft", resourceFactory); | ||
40 | IResourceServiceProvider.Registry.INSTANCE.getExtensionToFactoryMap().put("cft", serviceProvider); | ||
41 | } | ||
42 | } | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/AndGate.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/AndGate.java new file mode 100644 index 00000000..6d197233 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/AndGate.java | |||
@@ -0,0 +1,19 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage; | ||
5 | |||
6 | |||
7 | /** | ||
8 | * <!-- begin-user-doc --> | ||
9 | * A representation of the model object '<em><b>And Gate</b></em>'. | ||
10 | * <!-- end-user-doc --> | ||
11 | * | ||
12 | * | ||
13 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage#getAndGate() | ||
14 | * @model | ||
15 | * @generated | ||
16 | */ | ||
17 | public interface AndGate extends GateDefinition | ||
18 | { | ||
19 | } // AndGate | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/Assignment.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/Assignment.java new file mode 100644 index 00000000..13c9d6c2 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/Assignment.java | |||
@@ -0,0 +1,106 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage; | ||
5 | |||
6 | import org.eclipse.emf.ecore.EObject; | ||
7 | |||
8 | /** | ||
9 | * <!-- begin-user-doc --> | ||
10 | * A representation of the model object '<em><b>Assignment</b></em>'. | ||
11 | * <!-- end-user-doc --> | ||
12 | * | ||
13 | * <p> | ||
14 | * The following features are supported: | ||
15 | * </p> | ||
16 | * <ul> | ||
17 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.Assignment#getInput <em>Input</em>}</li> | ||
18 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.Assignment#isMultiple <em>Multiple</em>}</li> | ||
19 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.Assignment#getOutput <em>Output</em>}</li> | ||
20 | * </ul> | ||
21 | * | ||
22 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage#getAssignment() | ||
23 | * @model | ||
24 | * @generated | ||
25 | */ | ||
26 | public interface Assignment extends EObject | ||
27 | { | ||
28 | /** | ||
29 | * Returns the value of the '<em><b>Input</b></em>' containment reference. | ||
30 | * <!-- begin-user-doc --> | ||
31 | * <p> | ||
32 | * If the meaning of the '<em>Input</em>' containment reference isn't clear, | ||
33 | * there really should be more of a description here... | ||
34 | * </p> | ||
35 | * <!-- end-user-doc --> | ||
36 | * @return the value of the '<em>Input</em>' containment reference. | ||
37 | * @see #setInput(EventReference) | ||
38 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage#getAssignment_Input() | ||
39 | * @model containment="true" | ||
40 | * @generated | ||
41 | */ | ||
42 | EventReference getInput(); | ||
43 | |||
44 | /** | ||
45 | * Sets the value of the '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.Assignment#getInput <em>Input</em>}' containment reference. | ||
46 | * <!-- begin-user-doc --> | ||
47 | * <!-- end-user-doc --> | ||
48 | * @param value the new value of the '<em>Input</em>' containment reference. | ||
49 | * @see #getInput() | ||
50 | * @generated | ||
51 | */ | ||
52 | void setInput(EventReference value); | ||
53 | |||
54 | /** | ||
55 | * Returns the value of the '<em><b>Multiple</b></em>' attribute. | ||
56 | * <!-- begin-user-doc --> | ||
57 | * <p> | ||
58 | * If the meaning of the '<em>Multiple</em>' attribute isn't clear, | ||
59 | * there really should be more of a description here... | ||
60 | * </p> | ||
61 | * <!-- end-user-doc --> | ||
62 | * @return the value of the '<em>Multiple</em>' attribute. | ||
63 | * @see #setMultiple(boolean) | ||
64 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage#getAssignment_Multiple() | ||
65 | * @model | ||
66 | * @generated | ||
67 | */ | ||
68 | boolean isMultiple(); | ||
69 | |||
70 | /** | ||
71 | * Sets the value of the '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.Assignment#isMultiple <em>Multiple</em>}' attribute. | ||
72 | * <!-- begin-user-doc --> | ||
73 | * <!-- end-user-doc --> | ||
74 | * @param value the new value of the '<em>Multiple</em>' attribute. | ||
75 | * @see #isMultiple() | ||
76 | * @generated | ||
77 | */ | ||
78 | void setMultiple(boolean value); | ||
79 | |||
80 | /** | ||
81 | * Returns the value of the '<em><b>Output</b></em>' containment reference. | ||
82 | * <!-- begin-user-doc --> | ||
83 | * <p> | ||
84 | * If the meaning of the '<em>Output</em>' containment reference isn't clear, | ||
85 | * there really should be more of a description here... | ||
86 | * </p> | ||
87 | * <!-- end-user-doc --> | ||
88 | * @return the value of the '<em>Output</em>' containment reference. | ||
89 | * @see #setOutput(EventReference) | ||
90 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage#getAssignment_Output() | ||
91 | * @model containment="true" | ||
92 | * @generated | ||
93 | */ | ||
94 | EventReference getOutput(); | ||
95 | |||
96 | /** | ||
97 | * Sets the value of the '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.Assignment#getOutput <em>Output</em>}' containment reference. | ||
98 | * <!-- begin-user-doc --> | ||
99 | * <!-- end-user-doc --> | ||
100 | * @param value the new value of the '<em>Output</em>' containment reference. | ||
101 | * @see #getOutput() | ||
102 | * @generated | ||
103 | */ | ||
104 | void setOutput(EventReference value); | ||
105 | |||
106 | } // Assignment | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/BasicEventDefinition.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/BasicEventDefinition.java new file mode 100644 index 00000000..9a564a57 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/BasicEventDefinition.java | |||
@@ -0,0 +1,51 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage; | ||
5 | |||
6 | |||
7 | /** | ||
8 | * <!-- begin-user-doc --> | ||
9 | * A representation of the model object '<em><b>Basic Event Definition</b></em>'. | ||
10 | * <!-- end-user-doc --> | ||
11 | * | ||
12 | * <p> | ||
13 | * The following features are supported: | ||
14 | * </p> | ||
15 | * <ul> | ||
16 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.BasicEventDefinition#getRate <em>Rate</em>}</li> | ||
17 | * </ul> | ||
18 | * | ||
19 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage#getBasicEventDefinition() | ||
20 | * @model | ||
21 | * @generated | ||
22 | */ | ||
23 | public interface BasicEventDefinition extends EventDefinition | ||
24 | { | ||
25 | /** | ||
26 | * Returns the value of the '<em><b>Rate</b></em>' attribute. | ||
27 | * <!-- begin-user-doc --> | ||
28 | * <p> | ||
29 | * If the meaning of the '<em>Rate</em>' attribute isn't clear, | ||
30 | * there really should be more of a description here... | ||
31 | * </p> | ||
32 | * <!-- end-user-doc --> | ||
33 | * @return the value of the '<em>Rate</em>' attribute. | ||
34 | * @see #setRate(double) | ||
35 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage#getBasicEventDefinition_Rate() | ||
36 | * @model | ||
37 | * @generated | ||
38 | */ | ||
39 | double getRate(); | ||
40 | |||
41 | /** | ||
42 | * Sets the value of the '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.BasicEventDefinition#getRate <em>Rate</em>}' attribute. | ||
43 | * <!-- begin-user-doc --> | ||
44 | * <!-- end-user-doc --> | ||
45 | * @param value the new value of the '<em>Rate</em>' attribute. | ||
46 | * @see #getRate() | ||
47 | * @generated | ||
48 | */ | ||
49 | void setRate(double value); | ||
50 | |||
51 | } // BasicEventDefinition | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/CftLanguageFactory.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/CftLanguageFactory.java new file mode 100644 index 00000000..07c5786f --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/CftLanguageFactory.java | |||
@@ -0,0 +1,197 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage; | ||
5 | |||
6 | import org.eclipse.emf.ecore.EFactory; | ||
7 | |||
8 | /** | ||
9 | * <!-- begin-user-doc --> | ||
10 | * The <b>Factory</b> for the model. | ||
11 | * It provides a create method for each non-abstract class of the model. | ||
12 | * <!-- end-user-doc --> | ||
13 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage | ||
14 | * @generated | ||
15 | */ | ||
16 | public interface CftLanguageFactory extends EFactory | ||
17 | { | ||
18 | /** | ||
19 | * The singleton instance of the factory. | ||
20 | * <!-- begin-user-doc --> | ||
21 | * <!-- end-user-doc --> | ||
22 | * @generated | ||
23 | */ | ||
24 | CftLanguageFactory eINSTANCE = hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.CftLanguageFactoryImpl.init(); | ||
25 | |||
26 | /** | ||
27 | * Returns a new object of class '<em>Cft Model</em>'. | ||
28 | * <!-- begin-user-doc --> | ||
29 | * <!-- end-user-doc --> | ||
30 | * @return a new object of class '<em>Cft Model</em>'. | ||
31 | * @generated | ||
32 | */ | ||
33 | CftModel createCftModel(); | ||
34 | |||
35 | /** | ||
36 | * Returns a new object of class '<em>Import Declaration</em>'. | ||
37 | * <!-- begin-user-doc --> | ||
38 | * <!-- end-user-doc --> | ||
39 | * @return a new object of class '<em>Import Declaration</em>'. | ||
40 | * @generated | ||
41 | */ | ||
42 | ImportDeclaration createImportDeclaration(); | ||
43 | |||
44 | /** | ||
45 | * Returns a new object of class '<em>Component Definition</em>'. | ||
46 | * <!-- begin-user-doc --> | ||
47 | * <!-- end-user-doc --> | ||
48 | * @return a new object of class '<em>Component Definition</em>'. | ||
49 | * @generated | ||
50 | */ | ||
51 | ComponentDefinition createComponentDefinition(); | ||
52 | |||
53 | /** | ||
54 | * Returns a new object of class '<em>Event Declaration</em>'. | ||
55 | * <!-- begin-user-doc --> | ||
56 | * <!-- end-user-doc --> | ||
57 | * @return a new object of class '<em>Event Declaration</em>'. | ||
58 | * @generated | ||
59 | */ | ||
60 | EventDeclaration createEventDeclaration(); | ||
61 | |||
62 | /** | ||
63 | * Returns a new object of class '<em>Input Event</em>'. | ||
64 | * <!-- begin-user-doc --> | ||
65 | * <!-- end-user-doc --> | ||
66 | * @return a new object of class '<em>Input Event</em>'. | ||
67 | * @generated | ||
68 | */ | ||
69 | InputEvent createInputEvent(); | ||
70 | |||
71 | /** | ||
72 | * Returns a new object of class '<em>Event Definition</em>'. | ||
73 | * <!-- begin-user-doc --> | ||
74 | * <!-- end-user-doc --> | ||
75 | * @return a new object of class '<em>Event Definition</em>'. | ||
76 | * @generated | ||
77 | */ | ||
78 | EventDefinition createEventDefinition(); | ||
79 | |||
80 | /** | ||
81 | * Returns a new object of class '<em>Basic Event Definition</em>'. | ||
82 | * <!-- begin-user-doc --> | ||
83 | * <!-- end-user-doc --> | ||
84 | * @return a new object of class '<em>Basic Event Definition</em>'. | ||
85 | * @generated | ||
86 | */ | ||
87 | BasicEventDefinition createBasicEventDefinition(); | ||
88 | |||
89 | /** | ||
90 | * Returns a new object of class '<em>Gate Definition</em>'. | ||
91 | * <!-- begin-user-doc --> | ||
92 | * <!-- end-user-doc --> | ||
93 | * @return a new object of class '<em>Gate Definition</em>'. | ||
94 | * @generated | ||
95 | */ | ||
96 | GateDefinition createGateDefinition(); | ||
97 | |||
98 | /** | ||
99 | * Returns a new object of class '<em>And Gate</em>'. | ||
100 | * <!-- begin-user-doc --> | ||
101 | * <!-- end-user-doc --> | ||
102 | * @return a new object of class '<em>And Gate</em>'. | ||
103 | * @generated | ||
104 | */ | ||
105 | AndGate createAndGate(); | ||
106 | |||
107 | /** | ||
108 | * Returns a new object of class '<em>Or Gate</em>'. | ||
109 | * <!-- begin-user-doc --> | ||
110 | * <!-- end-user-doc --> | ||
111 | * @return a new object of class '<em>Or Gate</em>'. | ||
112 | * @generated | ||
113 | */ | ||
114 | OrGate createOrGate(); | ||
115 | |||
116 | /** | ||
117 | * Returns a new object of class '<em>Transformation Definition</em>'. | ||
118 | * <!-- begin-user-doc --> | ||
119 | * <!-- end-user-doc --> | ||
120 | * @return a new object of class '<em>Transformation Definition</em>'. | ||
121 | * @generated | ||
122 | */ | ||
123 | TransformationDefinition createTransformationDefinition(); | ||
124 | |||
125 | /** | ||
126 | * Returns a new object of class '<em>Mapping Definition</em>'. | ||
127 | * <!-- begin-user-doc --> | ||
128 | * <!-- end-user-doc --> | ||
129 | * @return a new object of class '<em>Mapping Definition</em>'. | ||
130 | * @generated | ||
131 | */ | ||
132 | MappingDefinition createMappingDefinition(); | ||
133 | |||
134 | /** | ||
135 | * Returns a new object of class '<em>Mapping Parameter</em>'. | ||
136 | * <!-- begin-user-doc --> | ||
137 | * <!-- end-user-doc --> | ||
138 | * @return a new object of class '<em>Mapping Parameter</em>'. | ||
139 | * @generated | ||
140 | */ | ||
141 | MappingParameter createMappingParameter(); | ||
142 | |||
143 | /** | ||
144 | * Returns a new object of class '<em>Lookup Definition</em>'. | ||
145 | * <!-- begin-user-doc --> | ||
146 | * <!-- end-user-doc --> | ||
147 | * @return a new object of class '<em>Lookup Definition</em>'. | ||
148 | * @generated | ||
149 | */ | ||
150 | LookupDefinition createLookupDefinition(); | ||
151 | |||
152 | /** | ||
153 | * Returns a new object of class '<em>Variable</em>'. | ||
154 | * <!-- begin-user-doc --> | ||
155 | * <!-- end-user-doc --> | ||
156 | * @return a new object of class '<em>Variable</em>'. | ||
157 | * @generated | ||
158 | */ | ||
159 | Variable createVariable(); | ||
160 | |||
161 | /** | ||
162 | * Returns a new object of class '<em>Assignment</em>'. | ||
163 | * <!-- begin-user-doc --> | ||
164 | * <!-- end-user-doc --> | ||
165 | * @return a new object of class '<em>Assignment</em>'. | ||
166 | * @generated | ||
167 | */ | ||
168 | Assignment createAssignment(); | ||
169 | |||
170 | /** | ||
171 | * Returns a new object of class '<em>Event Reference</em>'. | ||
172 | * <!-- begin-user-doc --> | ||
173 | * <!-- end-user-doc --> | ||
174 | * @return a new object of class '<em>Event Reference</em>'. | ||
175 | * @generated | ||
176 | */ | ||
177 | EventReference createEventReference(); | ||
178 | |||
179 | /** | ||
180 | * Returns a new object of class '<em>Component Instance</em>'. | ||
181 | * <!-- begin-user-doc --> | ||
182 | * <!-- end-user-doc --> | ||
183 | * @return a new object of class '<em>Component Instance</em>'. | ||
184 | * @generated | ||
185 | */ | ||
186 | ComponentInstance createComponentInstance(); | ||
187 | |||
188 | /** | ||
189 | * Returns the package supported by this factory. | ||
190 | * <!-- begin-user-doc --> | ||
191 | * <!-- end-user-doc --> | ||
192 | * @return the package supported by this factory. | ||
193 | * @generated | ||
194 | */ | ||
195 | CftLanguagePackage getCftLanguagePackage(); | ||
196 | |||
197 | } //CftLanguageFactory | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/CftLanguagePackage.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/CftLanguagePackage.java new file mode 100644 index 00000000..405a8691 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/CftLanguagePackage.java | |||
@@ -0,0 +1,1746 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage; | ||
5 | |||
6 | import org.eclipse.emf.ecore.EAttribute; | ||
7 | import org.eclipse.emf.ecore.EClass; | ||
8 | import org.eclipse.emf.ecore.EPackage; | ||
9 | import org.eclipse.emf.ecore.EReference; | ||
10 | |||
11 | /** | ||
12 | * <!-- begin-user-doc --> | ||
13 | * The <b>Package</b> for the model. | ||
14 | * It contains accessors for the meta objects to represent | ||
15 | * <ul> | ||
16 | * <li>each class,</li> | ||
17 | * <li>each feature of each class,</li> | ||
18 | * <li>each enum,</li> | ||
19 | * <li>and each data type</li> | ||
20 | * </ul> | ||
21 | * <!-- end-user-doc --> | ||
22 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguageFactory | ||
23 | * @model kind="package" | ||
24 | * @generated | ||
25 | */ | ||
26 | public interface CftLanguagePackage extends EPackage | ||
27 | { | ||
28 | /** | ||
29 | * The package name. | ||
30 | * <!-- begin-user-doc --> | ||
31 | * <!-- end-user-doc --> | ||
32 | * @generated | ||
33 | */ | ||
34 | String eNAME = "cftLanguage"; | ||
35 | |||
36 | /** | ||
37 | * The package namespace URI. | ||
38 | * <!-- begin-user-doc --> | ||
39 | * <!-- end-user-doc --> | ||
40 | * @generated | ||
41 | */ | ||
42 | String eNS_URI = "http://www.bme.hu/mit/inf/dslreasoner/faulttree/components/CftLanguage"; | ||
43 | |||
44 | /** | ||
45 | * The package namespace name. | ||
46 | * <!-- begin-user-doc --> | ||
47 | * <!-- end-user-doc --> | ||
48 | * @generated | ||
49 | */ | ||
50 | String eNS_PREFIX = "cftLanguage"; | ||
51 | |||
52 | /** | ||
53 | * The singleton instance of the package. | ||
54 | * <!-- begin-user-doc --> | ||
55 | * <!-- end-user-doc --> | ||
56 | * @generated | ||
57 | */ | ||
58 | CftLanguagePackage eINSTANCE = hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.CftLanguagePackageImpl.init(); | ||
59 | |||
60 | /** | ||
61 | * The meta object id for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.CftModelImpl <em>Cft Model</em>}' class. | ||
62 | * <!-- begin-user-doc --> | ||
63 | * <!-- end-user-doc --> | ||
64 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.CftModelImpl | ||
65 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.CftLanguagePackageImpl#getCftModel() | ||
66 | * @generated | ||
67 | */ | ||
68 | int CFT_MODEL = 0; | ||
69 | |||
70 | /** | ||
71 | * The feature id for the '<em><b>Package Name</b></em>' attribute. | ||
72 | * <!-- begin-user-doc --> | ||
73 | * <!-- end-user-doc --> | ||
74 | * @generated | ||
75 | * @ordered | ||
76 | */ | ||
77 | int CFT_MODEL__PACKAGE_NAME = 0; | ||
78 | |||
79 | /** | ||
80 | * The feature id for the '<em><b>Imports</b></em>' containment reference list. | ||
81 | * <!-- begin-user-doc --> | ||
82 | * <!-- end-user-doc --> | ||
83 | * @generated | ||
84 | * @ordered | ||
85 | */ | ||
86 | int CFT_MODEL__IMPORTS = 1; | ||
87 | |||
88 | /** | ||
89 | * The feature id for the '<em><b>Component Definitions</b></em>' containment reference list. | ||
90 | * <!-- begin-user-doc --> | ||
91 | * <!-- end-user-doc --> | ||
92 | * @generated | ||
93 | * @ordered | ||
94 | */ | ||
95 | int CFT_MODEL__COMPONENT_DEFINITIONS = 2; | ||
96 | |||
97 | /** | ||
98 | * The feature id for the '<em><b>Transformation Definitions</b></em>' containment reference list. | ||
99 | * <!-- begin-user-doc --> | ||
100 | * <!-- end-user-doc --> | ||
101 | * @generated | ||
102 | * @ordered | ||
103 | */ | ||
104 | int CFT_MODEL__TRANSFORMATION_DEFINITIONS = 3; | ||
105 | |||
106 | /** | ||
107 | * The number of structural features of the '<em>Cft Model</em>' class. | ||
108 | * <!-- begin-user-doc --> | ||
109 | * <!-- end-user-doc --> | ||
110 | * @generated | ||
111 | * @ordered | ||
112 | */ | ||
113 | int CFT_MODEL_FEATURE_COUNT = 4; | ||
114 | |||
115 | /** | ||
116 | * The meta object id for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.ImportDeclarationImpl <em>Import Declaration</em>}' class. | ||
117 | * <!-- begin-user-doc --> | ||
118 | * <!-- end-user-doc --> | ||
119 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.ImportDeclarationImpl | ||
120 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.CftLanguagePackageImpl#getImportDeclaration() | ||
121 | * @generated | ||
122 | */ | ||
123 | int IMPORT_DECLARATION = 1; | ||
124 | |||
125 | /** | ||
126 | * The feature id for the '<em><b>Imported Namespace</b></em>' attribute. | ||
127 | * <!-- begin-user-doc --> | ||
128 | * <!-- end-user-doc --> | ||
129 | * @generated | ||
130 | * @ordered | ||
131 | */ | ||
132 | int IMPORT_DECLARATION__IMPORTED_NAMESPACE = 0; | ||
133 | |||
134 | /** | ||
135 | * The number of structural features of the '<em>Import Declaration</em>' class. | ||
136 | * <!-- begin-user-doc --> | ||
137 | * <!-- end-user-doc --> | ||
138 | * @generated | ||
139 | * @ordered | ||
140 | */ | ||
141 | int IMPORT_DECLARATION_FEATURE_COUNT = 1; | ||
142 | |||
143 | /** | ||
144 | * The meta object id for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.ComponentDefinitionImpl <em>Component Definition</em>}' class. | ||
145 | * <!-- begin-user-doc --> | ||
146 | * <!-- end-user-doc --> | ||
147 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.ComponentDefinitionImpl | ||
148 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.CftLanguagePackageImpl#getComponentDefinition() | ||
149 | * @generated | ||
150 | */ | ||
151 | int COMPONENT_DEFINITION = 2; | ||
152 | |||
153 | /** | ||
154 | * The feature id for the '<em><b>Name</b></em>' attribute. | ||
155 | * <!-- begin-user-doc --> | ||
156 | * <!-- end-user-doc --> | ||
157 | * @generated | ||
158 | * @ordered | ||
159 | */ | ||
160 | int COMPONENT_DEFINITION__NAME = 0; | ||
161 | |||
162 | /** | ||
163 | * The feature id for the '<em><b>Input Events</b></em>' containment reference list. | ||
164 | * <!-- begin-user-doc --> | ||
165 | * <!-- end-user-doc --> | ||
166 | * @generated | ||
167 | * @ordered | ||
168 | */ | ||
169 | int COMPONENT_DEFINITION__INPUT_EVENTS = 1; | ||
170 | |||
171 | /** | ||
172 | * The feature id for the '<em><b>Output Events</b></em>' reference list. | ||
173 | * <!-- begin-user-doc --> | ||
174 | * <!-- end-user-doc --> | ||
175 | * @generated | ||
176 | * @ordered | ||
177 | */ | ||
178 | int COMPONENT_DEFINITION__OUTPUT_EVENTS = 2; | ||
179 | |||
180 | /** | ||
181 | * The feature id for the '<em><b>Event Definitions</b></em>' containment reference list. | ||
182 | * <!-- begin-user-doc --> | ||
183 | * <!-- end-user-doc --> | ||
184 | * @generated | ||
185 | * @ordered | ||
186 | */ | ||
187 | int COMPONENT_DEFINITION__EVENT_DEFINITIONS = 3; | ||
188 | |||
189 | /** | ||
190 | * The number of structural features of the '<em>Component Definition</em>' class. | ||
191 | * <!-- begin-user-doc --> | ||
192 | * <!-- end-user-doc --> | ||
193 | * @generated | ||
194 | * @ordered | ||
195 | */ | ||
196 | int COMPONENT_DEFINITION_FEATURE_COUNT = 4; | ||
197 | |||
198 | /** | ||
199 | * The meta object id for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.EventDeclarationImpl <em>Event Declaration</em>}' class. | ||
200 | * <!-- begin-user-doc --> | ||
201 | * <!-- end-user-doc --> | ||
202 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.EventDeclarationImpl | ||
203 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.CftLanguagePackageImpl#getEventDeclaration() | ||
204 | * @generated | ||
205 | */ | ||
206 | int EVENT_DECLARATION = 3; | ||
207 | |||
208 | /** | ||
209 | * The feature id for the '<em><b>Name</b></em>' attribute. | ||
210 | * <!-- begin-user-doc --> | ||
211 | * <!-- end-user-doc --> | ||
212 | * @generated | ||
213 | * @ordered | ||
214 | */ | ||
215 | int EVENT_DECLARATION__NAME = 0; | ||
216 | |||
217 | /** | ||
218 | * The number of structural features of the '<em>Event Declaration</em>' class. | ||
219 | * <!-- begin-user-doc --> | ||
220 | * <!-- end-user-doc --> | ||
221 | * @generated | ||
222 | * @ordered | ||
223 | */ | ||
224 | int EVENT_DECLARATION_FEATURE_COUNT = 1; | ||
225 | |||
226 | /** | ||
227 | * The meta object id for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.InputEventImpl <em>Input Event</em>}' class. | ||
228 | * <!-- begin-user-doc --> | ||
229 | * <!-- end-user-doc --> | ||
230 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.InputEventImpl | ||
231 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.CftLanguagePackageImpl#getInputEvent() | ||
232 | * @generated | ||
233 | */ | ||
234 | int INPUT_EVENT = 4; | ||
235 | |||
236 | /** | ||
237 | * The feature id for the '<em><b>Name</b></em>' attribute. | ||
238 | * <!-- begin-user-doc --> | ||
239 | * <!-- end-user-doc --> | ||
240 | * @generated | ||
241 | * @ordered | ||
242 | */ | ||
243 | int INPUT_EVENT__NAME = EVENT_DECLARATION__NAME; | ||
244 | |||
245 | /** | ||
246 | * The feature id for the '<em><b>Multiple</b></em>' attribute. | ||
247 | * <!-- begin-user-doc --> | ||
248 | * <!-- end-user-doc --> | ||
249 | * @generated | ||
250 | * @ordered | ||
251 | */ | ||
252 | int INPUT_EVENT__MULTIPLE = EVENT_DECLARATION_FEATURE_COUNT + 0; | ||
253 | |||
254 | /** | ||
255 | * The number of structural features of the '<em>Input Event</em>' class. | ||
256 | * <!-- begin-user-doc --> | ||
257 | * <!-- end-user-doc --> | ||
258 | * @generated | ||
259 | * @ordered | ||
260 | */ | ||
261 | int INPUT_EVENT_FEATURE_COUNT = EVENT_DECLARATION_FEATURE_COUNT + 1; | ||
262 | |||
263 | /** | ||
264 | * The meta object id for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.EventDefinitionImpl <em>Event Definition</em>}' class. | ||
265 | * <!-- begin-user-doc --> | ||
266 | * <!-- end-user-doc --> | ||
267 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.EventDefinitionImpl | ||
268 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.CftLanguagePackageImpl#getEventDefinition() | ||
269 | * @generated | ||
270 | */ | ||
271 | int EVENT_DEFINITION = 5; | ||
272 | |||
273 | /** | ||
274 | * The feature id for the '<em><b>Name</b></em>' attribute. | ||
275 | * <!-- begin-user-doc --> | ||
276 | * <!-- end-user-doc --> | ||
277 | * @generated | ||
278 | * @ordered | ||
279 | */ | ||
280 | int EVENT_DEFINITION__NAME = EVENT_DECLARATION__NAME; | ||
281 | |||
282 | /** | ||
283 | * The number of structural features of the '<em>Event Definition</em>' class. | ||
284 | * <!-- begin-user-doc --> | ||
285 | * <!-- end-user-doc --> | ||
286 | * @generated | ||
287 | * @ordered | ||
288 | */ | ||
289 | int EVENT_DEFINITION_FEATURE_COUNT = EVENT_DECLARATION_FEATURE_COUNT + 0; | ||
290 | |||
291 | /** | ||
292 | * The meta object id for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.BasicEventDefinitionImpl <em>Basic Event Definition</em>}' class. | ||
293 | * <!-- begin-user-doc --> | ||
294 | * <!-- end-user-doc --> | ||
295 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.BasicEventDefinitionImpl | ||
296 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.CftLanguagePackageImpl#getBasicEventDefinition() | ||
297 | * @generated | ||
298 | */ | ||
299 | int BASIC_EVENT_DEFINITION = 6; | ||
300 | |||
301 | /** | ||
302 | * The feature id for the '<em><b>Name</b></em>' attribute. | ||
303 | * <!-- begin-user-doc --> | ||
304 | * <!-- end-user-doc --> | ||
305 | * @generated | ||
306 | * @ordered | ||
307 | */ | ||
308 | int BASIC_EVENT_DEFINITION__NAME = EVENT_DEFINITION__NAME; | ||
309 | |||
310 | /** | ||
311 | * The feature id for the '<em><b>Rate</b></em>' attribute. | ||
312 | * <!-- begin-user-doc --> | ||
313 | * <!-- end-user-doc --> | ||
314 | * @generated | ||
315 | * @ordered | ||
316 | */ | ||
317 | int BASIC_EVENT_DEFINITION__RATE = EVENT_DEFINITION_FEATURE_COUNT + 0; | ||
318 | |||
319 | /** | ||
320 | * The number of structural features of the '<em>Basic Event Definition</em>' class. | ||
321 | * <!-- begin-user-doc --> | ||
322 | * <!-- end-user-doc --> | ||
323 | * @generated | ||
324 | * @ordered | ||
325 | */ | ||
326 | int BASIC_EVENT_DEFINITION_FEATURE_COUNT = EVENT_DEFINITION_FEATURE_COUNT + 1; | ||
327 | |||
328 | /** | ||
329 | * The meta object id for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.GateDefinitionImpl <em>Gate Definition</em>}' class. | ||
330 | * <!-- begin-user-doc --> | ||
331 | * <!-- end-user-doc --> | ||
332 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.GateDefinitionImpl | ||
333 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.CftLanguagePackageImpl#getGateDefinition() | ||
334 | * @generated | ||
335 | */ | ||
336 | int GATE_DEFINITION = 7; | ||
337 | |||
338 | /** | ||
339 | * The feature id for the '<em><b>Name</b></em>' attribute. | ||
340 | * <!-- begin-user-doc --> | ||
341 | * <!-- end-user-doc --> | ||
342 | * @generated | ||
343 | * @ordered | ||
344 | */ | ||
345 | int GATE_DEFINITION__NAME = EVENT_DEFINITION__NAME; | ||
346 | |||
347 | /** | ||
348 | * The feature id for the '<em><b>Input Events</b></em>' reference list. | ||
349 | * <!-- begin-user-doc --> | ||
350 | * <!-- end-user-doc --> | ||
351 | * @generated | ||
352 | * @ordered | ||
353 | */ | ||
354 | int GATE_DEFINITION__INPUT_EVENTS = EVENT_DEFINITION_FEATURE_COUNT + 0; | ||
355 | |||
356 | /** | ||
357 | * The number of structural features of the '<em>Gate Definition</em>' class. | ||
358 | * <!-- begin-user-doc --> | ||
359 | * <!-- end-user-doc --> | ||
360 | * @generated | ||
361 | * @ordered | ||
362 | */ | ||
363 | int GATE_DEFINITION_FEATURE_COUNT = EVENT_DEFINITION_FEATURE_COUNT + 1; | ||
364 | |||
365 | /** | ||
366 | * The meta object id for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.AndGateImpl <em>And Gate</em>}' class. | ||
367 | * <!-- begin-user-doc --> | ||
368 | * <!-- end-user-doc --> | ||
369 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.AndGateImpl | ||
370 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.CftLanguagePackageImpl#getAndGate() | ||
371 | * @generated | ||
372 | */ | ||
373 | int AND_GATE = 8; | ||
374 | |||
375 | /** | ||
376 | * The feature id for the '<em><b>Name</b></em>' attribute. | ||
377 | * <!-- begin-user-doc --> | ||
378 | * <!-- end-user-doc --> | ||
379 | * @generated | ||
380 | * @ordered | ||
381 | */ | ||
382 | int AND_GATE__NAME = GATE_DEFINITION__NAME; | ||
383 | |||
384 | /** | ||
385 | * The feature id for the '<em><b>Input Events</b></em>' reference list. | ||
386 | * <!-- begin-user-doc --> | ||
387 | * <!-- end-user-doc --> | ||
388 | * @generated | ||
389 | * @ordered | ||
390 | */ | ||
391 | int AND_GATE__INPUT_EVENTS = GATE_DEFINITION__INPUT_EVENTS; | ||
392 | |||
393 | /** | ||
394 | * The number of structural features of the '<em>And Gate</em>' class. | ||
395 | * <!-- begin-user-doc --> | ||
396 | * <!-- end-user-doc --> | ||
397 | * @generated | ||
398 | * @ordered | ||
399 | */ | ||
400 | int AND_GATE_FEATURE_COUNT = GATE_DEFINITION_FEATURE_COUNT + 0; | ||
401 | |||
402 | /** | ||
403 | * The meta object id for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.OrGateImpl <em>Or Gate</em>}' class. | ||
404 | * <!-- begin-user-doc --> | ||
405 | * <!-- end-user-doc --> | ||
406 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.OrGateImpl | ||
407 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.CftLanguagePackageImpl#getOrGate() | ||
408 | * @generated | ||
409 | */ | ||
410 | int OR_GATE = 9; | ||
411 | |||
412 | /** | ||
413 | * The feature id for the '<em><b>Name</b></em>' attribute. | ||
414 | * <!-- begin-user-doc --> | ||
415 | * <!-- end-user-doc --> | ||
416 | * @generated | ||
417 | * @ordered | ||
418 | */ | ||
419 | int OR_GATE__NAME = GATE_DEFINITION__NAME; | ||
420 | |||
421 | /** | ||
422 | * The feature id for the '<em><b>Input Events</b></em>' reference list. | ||
423 | * <!-- begin-user-doc --> | ||
424 | * <!-- end-user-doc --> | ||
425 | * @generated | ||
426 | * @ordered | ||
427 | */ | ||
428 | int OR_GATE__INPUT_EVENTS = GATE_DEFINITION__INPUT_EVENTS; | ||
429 | |||
430 | /** | ||
431 | * The number of structural features of the '<em>Or Gate</em>' class. | ||
432 | * <!-- begin-user-doc --> | ||
433 | * <!-- end-user-doc --> | ||
434 | * @generated | ||
435 | * @ordered | ||
436 | */ | ||
437 | int OR_GATE_FEATURE_COUNT = GATE_DEFINITION_FEATURE_COUNT + 0; | ||
438 | |||
439 | /** | ||
440 | * The meta object id for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.TransformationDefinitionImpl <em>Transformation Definition</em>}' class. | ||
441 | * <!-- begin-user-doc --> | ||
442 | * <!-- end-user-doc --> | ||
443 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.TransformationDefinitionImpl | ||
444 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.CftLanguagePackageImpl#getTransformationDefinition() | ||
445 | * @generated | ||
446 | */ | ||
447 | int TRANSFORMATION_DEFINITION = 10; | ||
448 | |||
449 | /** | ||
450 | * The feature id for the '<em><b>Name</b></em>' attribute. | ||
451 | * <!-- begin-user-doc --> | ||
452 | * <!-- end-user-doc --> | ||
453 | * @generated | ||
454 | * @ordered | ||
455 | */ | ||
456 | int TRANSFORMATION_DEFINITION__NAME = 0; | ||
457 | |||
458 | /** | ||
459 | * The feature id for the '<em><b>Mapping Definitions</b></em>' containment reference list. | ||
460 | * <!-- begin-user-doc --> | ||
461 | * <!-- end-user-doc --> | ||
462 | * @generated | ||
463 | * @ordered | ||
464 | */ | ||
465 | int TRANSFORMATION_DEFINITION__MAPPING_DEFINITIONS = 1; | ||
466 | |||
467 | /** | ||
468 | * The number of structural features of the '<em>Transformation Definition</em>' class. | ||
469 | * <!-- begin-user-doc --> | ||
470 | * <!-- end-user-doc --> | ||
471 | * @generated | ||
472 | * @ordered | ||
473 | */ | ||
474 | int TRANSFORMATION_DEFINITION_FEATURE_COUNT = 2; | ||
475 | |||
476 | /** | ||
477 | * The meta object id for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.MappingDefinitionImpl <em>Mapping Definition</em>}' class. | ||
478 | * <!-- begin-user-doc --> | ||
479 | * <!-- end-user-doc --> | ||
480 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.MappingDefinitionImpl | ||
481 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.CftLanguagePackageImpl#getMappingDefinition() | ||
482 | * @generated | ||
483 | */ | ||
484 | int MAPPING_DEFINITION = 11; | ||
485 | |||
486 | /** | ||
487 | * The feature id for the '<em><b>Top Level</b></em>' attribute. | ||
488 | * <!-- begin-user-doc --> | ||
489 | * <!-- end-user-doc --> | ||
490 | * @generated | ||
491 | * @ordered | ||
492 | */ | ||
493 | int MAPPING_DEFINITION__TOP_LEVEL = 0; | ||
494 | |||
495 | /** | ||
496 | * The feature id for the '<em><b>Pattern</b></em>' reference. | ||
497 | * <!-- begin-user-doc --> | ||
498 | * <!-- end-user-doc --> | ||
499 | * @generated | ||
500 | * @ordered | ||
501 | */ | ||
502 | int MAPPING_DEFINITION__PATTERN = 1; | ||
503 | |||
504 | /** | ||
505 | * The feature id for the '<em><b>Parameters</b></em>' containment reference list. | ||
506 | * <!-- begin-user-doc --> | ||
507 | * <!-- end-user-doc --> | ||
508 | * @generated | ||
509 | * @ordered | ||
510 | */ | ||
511 | int MAPPING_DEFINITION__PARAMETERS = 2; | ||
512 | |||
513 | /** | ||
514 | * The feature id for the '<em><b>Component Instance</b></em>' containment reference. | ||
515 | * <!-- begin-user-doc --> | ||
516 | * <!-- end-user-doc --> | ||
517 | * @generated | ||
518 | * @ordered | ||
519 | */ | ||
520 | int MAPPING_DEFINITION__COMPONENT_INSTANCE = 3; | ||
521 | |||
522 | /** | ||
523 | * The feature id for the '<em><b>Lookup Definitions</b></em>' containment reference list. | ||
524 | * <!-- begin-user-doc --> | ||
525 | * <!-- end-user-doc --> | ||
526 | * @generated | ||
527 | * @ordered | ||
528 | */ | ||
529 | int MAPPING_DEFINITION__LOOKUP_DEFINITIONS = 4; | ||
530 | |||
531 | /** | ||
532 | * The feature id for the '<em><b>Assignments</b></em>' containment reference list. | ||
533 | * <!-- begin-user-doc --> | ||
534 | * <!-- end-user-doc --> | ||
535 | * @generated | ||
536 | * @ordered | ||
537 | */ | ||
538 | int MAPPING_DEFINITION__ASSIGNMENTS = 5; | ||
539 | |||
540 | /** | ||
541 | * The number of structural features of the '<em>Mapping Definition</em>' class. | ||
542 | * <!-- begin-user-doc --> | ||
543 | * <!-- end-user-doc --> | ||
544 | * @generated | ||
545 | * @ordered | ||
546 | */ | ||
547 | int MAPPING_DEFINITION_FEATURE_COUNT = 6; | ||
548 | |||
549 | /** | ||
550 | * The meta object id for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.MappingParameterImpl <em>Mapping Parameter</em>}' class. | ||
551 | * <!-- begin-user-doc --> | ||
552 | * <!-- end-user-doc --> | ||
553 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.MappingParameterImpl | ||
554 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.CftLanguagePackageImpl#getMappingParameter() | ||
555 | * @generated | ||
556 | */ | ||
557 | int MAPPING_PARAMETER = 12; | ||
558 | |||
559 | /** | ||
560 | * The feature id for the '<em><b>Name</b></em>' attribute. | ||
561 | * <!-- begin-user-doc --> | ||
562 | * <!-- end-user-doc --> | ||
563 | * @generated | ||
564 | * @ordered | ||
565 | */ | ||
566 | int MAPPING_PARAMETER__NAME = 0; | ||
567 | |||
568 | /** | ||
569 | * The number of structural features of the '<em>Mapping Parameter</em>' class. | ||
570 | * <!-- begin-user-doc --> | ||
571 | * <!-- end-user-doc --> | ||
572 | * @generated | ||
573 | * @ordered | ||
574 | */ | ||
575 | int MAPPING_PARAMETER_FEATURE_COUNT = 1; | ||
576 | |||
577 | /** | ||
578 | * The meta object id for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.VariableImpl <em>Variable</em>}' class. | ||
579 | * <!-- begin-user-doc --> | ||
580 | * <!-- end-user-doc --> | ||
581 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.VariableImpl | ||
582 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.CftLanguagePackageImpl#getVariable() | ||
583 | * @generated | ||
584 | */ | ||
585 | int VARIABLE = 14; | ||
586 | |||
587 | /** | ||
588 | * The feature id for the '<em><b>Name</b></em>' attribute. | ||
589 | * <!-- begin-user-doc --> | ||
590 | * <!-- end-user-doc --> | ||
591 | * @generated | ||
592 | * @ordered | ||
593 | */ | ||
594 | int VARIABLE__NAME = 0; | ||
595 | |||
596 | /** | ||
597 | * The number of structural features of the '<em>Variable</em>' class. | ||
598 | * <!-- begin-user-doc --> | ||
599 | * <!-- end-user-doc --> | ||
600 | * @generated | ||
601 | * @ordered | ||
602 | */ | ||
603 | int VARIABLE_FEATURE_COUNT = 1; | ||
604 | |||
605 | /** | ||
606 | * The meta object id for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.LookupDefinitionImpl <em>Lookup Definition</em>}' class. | ||
607 | * <!-- begin-user-doc --> | ||
608 | * <!-- end-user-doc --> | ||
609 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.LookupDefinitionImpl | ||
610 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.CftLanguagePackageImpl#getLookupDefinition() | ||
611 | * @generated | ||
612 | */ | ||
613 | int LOOKUP_DEFINITION = 13; | ||
614 | |||
615 | /** | ||
616 | * The feature id for the '<em><b>Name</b></em>' attribute. | ||
617 | * <!-- begin-user-doc --> | ||
618 | * <!-- end-user-doc --> | ||
619 | * @generated | ||
620 | * @ordered | ||
621 | */ | ||
622 | int LOOKUP_DEFINITION__NAME = VARIABLE__NAME; | ||
623 | |||
624 | /** | ||
625 | * The feature id for the '<em><b>Mapping</b></em>' reference. | ||
626 | * <!-- begin-user-doc --> | ||
627 | * <!-- end-user-doc --> | ||
628 | * @generated | ||
629 | * @ordered | ||
630 | */ | ||
631 | int LOOKUP_DEFINITION__MAPPING = VARIABLE_FEATURE_COUNT + 0; | ||
632 | |||
633 | /** | ||
634 | * The feature id for the '<em><b>Arguments</b></em>' reference list. | ||
635 | * <!-- begin-user-doc --> | ||
636 | * <!-- end-user-doc --> | ||
637 | * @generated | ||
638 | * @ordered | ||
639 | */ | ||
640 | int LOOKUP_DEFINITION__ARGUMENTS = VARIABLE_FEATURE_COUNT + 1; | ||
641 | |||
642 | /** | ||
643 | * The number of structural features of the '<em>Lookup Definition</em>' class. | ||
644 | * <!-- begin-user-doc --> | ||
645 | * <!-- end-user-doc --> | ||
646 | * @generated | ||
647 | * @ordered | ||
648 | */ | ||
649 | int LOOKUP_DEFINITION_FEATURE_COUNT = VARIABLE_FEATURE_COUNT + 2; | ||
650 | |||
651 | /** | ||
652 | * The meta object id for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.AssignmentImpl <em>Assignment</em>}' class. | ||
653 | * <!-- begin-user-doc --> | ||
654 | * <!-- end-user-doc --> | ||
655 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.AssignmentImpl | ||
656 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.CftLanguagePackageImpl#getAssignment() | ||
657 | * @generated | ||
658 | */ | ||
659 | int ASSIGNMENT = 15; | ||
660 | |||
661 | /** | ||
662 | * The feature id for the '<em><b>Input</b></em>' containment reference. | ||
663 | * <!-- begin-user-doc --> | ||
664 | * <!-- end-user-doc --> | ||
665 | * @generated | ||
666 | * @ordered | ||
667 | */ | ||
668 | int ASSIGNMENT__INPUT = 0; | ||
669 | |||
670 | /** | ||
671 | * The feature id for the '<em><b>Multiple</b></em>' attribute. | ||
672 | * <!-- begin-user-doc --> | ||
673 | * <!-- end-user-doc --> | ||
674 | * @generated | ||
675 | * @ordered | ||
676 | */ | ||
677 | int ASSIGNMENT__MULTIPLE = 1; | ||
678 | |||
679 | /** | ||
680 | * The feature id for the '<em><b>Output</b></em>' containment reference. | ||
681 | * <!-- begin-user-doc --> | ||
682 | * <!-- end-user-doc --> | ||
683 | * @generated | ||
684 | * @ordered | ||
685 | */ | ||
686 | int ASSIGNMENT__OUTPUT = 2; | ||
687 | |||
688 | /** | ||
689 | * The number of structural features of the '<em>Assignment</em>' class. | ||
690 | * <!-- begin-user-doc --> | ||
691 | * <!-- end-user-doc --> | ||
692 | * @generated | ||
693 | * @ordered | ||
694 | */ | ||
695 | int ASSIGNMENT_FEATURE_COUNT = 3; | ||
696 | |||
697 | /** | ||
698 | * The meta object id for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.EventReferenceImpl <em>Event Reference</em>}' class. | ||
699 | * <!-- begin-user-doc --> | ||
700 | * <!-- end-user-doc --> | ||
701 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.EventReferenceImpl | ||
702 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.CftLanguagePackageImpl#getEventReference() | ||
703 | * @generated | ||
704 | */ | ||
705 | int EVENT_REFERENCE = 16; | ||
706 | |||
707 | /** | ||
708 | * The feature id for the '<em><b>Component</b></em>' reference. | ||
709 | * <!-- begin-user-doc --> | ||
710 | * <!-- end-user-doc --> | ||
711 | * @generated | ||
712 | * @ordered | ||
713 | */ | ||
714 | int EVENT_REFERENCE__COMPONENT = 0; | ||
715 | |||
716 | /** | ||
717 | * The feature id for the '<em><b>Event</b></em>' reference. | ||
718 | * <!-- begin-user-doc --> | ||
719 | * <!-- end-user-doc --> | ||
720 | * @generated | ||
721 | * @ordered | ||
722 | */ | ||
723 | int EVENT_REFERENCE__EVENT = 1; | ||
724 | |||
725 | /** | ||
726 | * The number of structural features of the '<em>Event Reference</em>' class. | ||
727 | * <!-- begin-user-doc --> | ||
728 | * <!-- end-user-doc --> | ||
729 | * @generated | ||
730 | * @ordered | ||
731 | */ | ||
732 | int EVENT_REFERENCE_FEATURE_COUNT = 2; | ||
733 | |||
734 | /** | ||
735 | * The meta object id for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.ComponentInstanceImpl <em>Component Instance</em>}' class. | ||
736 | * <!-- begin-user-doc --> | ||
737 | * <!-- end-user-doc --> | ||
738 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.ComponentInstanceImpl | ||
739 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.CftLanguagePackageImpl#getComponentInstance() | ||
740 | * @generated | ||
741 | */ | ||
742 | int COMPONENT_INSTANCE = 17; | ||
743 | |||
744 | /** | ||
745 | * The feature id for the '<em><b>Name</b></em>' attribute. | ||
746 | * <!-- begin-user-doc --> | ||
747 | * <!-- end-user-doc --> | ||
748 | * @generated | ||
749 | * @ordered | ||
750 | */ | ||
751 | int COMPONENT_INSTANCE__NAME = VARIABLE__NAME; | ||
752 | |||
753 | /** | ||
754 | * The feature id for the '<em><b>Component Type</b></em>' reference. | ||
755 | * <!-- begin-user-doc --> | ||
756 | * <!-- end-user-doc --> | ||
757 | * @generated | ||
758 | * @ordered | ||
759 | */ | ||
760 | int COMPONENT_INSTANCE__COMPONENT_TYPE = VARIABLE_FEATURE_COUNT + 0; | ||
761 | |||
762 | /** | ||
763 | * The number of structural features of the '<em>Component Instance</em>' class. | ||
764 | * <!-- begin-user-doc --> | ||
765 | * <!-- end-user-doc --> | ||
766 | * @generated | ||
767 | * @ordered | ||
768 | */ | ||
769 | int COMPONENT_INSTANCE_FEATURE_COUNT = VARIABLE_FEATURE_COUNT + 1; | ||
770 | |||
771 | |||
772 | /** | ||
773 | * Returns the meta object for class '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftModel <em>Cft Model</em>}'. | ||
774 | * <!-- begin-user-doc --> | ||
775 | * <!-- end-user-doc --> | ||
776 | * @return the meta object for class '<em>Cft Model</em>'. | ||
777 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftModel | ||
778 | * @generated | ||
779 | */ | ||
780 | EClass getCftModel(); | ||
781 | |||
782 | /** | ||
783 | * Returns the meta object for the attribute '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftModel#getPackageName <em>Package Name</em>}'. | ||
784 | * <!-- begin-user-doc --> | ||
785 | * <!-- end-user-doc --> | ||
786 | * @return the meta object for the attribute '<em>Package Name</em>'. | ||
787 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftModel#getPackageName() | ||
788 | * @see #getCftModel() | ||
789 | * @generated | ||
790 | */ | ||
791 | EAttribute getCftModel_PackageName(); | ||
792 | |||
793 | /** | ||
794 | * Returns the meta object for the containment reference list '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftModel#getImports <em>Imports</em>}'. | ||
795 | * <!-- begin-user-doc --> | ||
796 | * <!-- end-user-doc --> | ||
797 | * @return the meta object for the containment reference list '<em>Imports</em>'. | ||
798 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftModel#getImports() | ||
799 | * @see #getCftModel() | ||
800 | * @generated | ||
801 | */ | ||
802 | EReference getCftModel_Imports(); | ||
803 | |||
804 | /** | ||
805 | * Returns the meta object for the containment reference list '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftModel#getComponentDefinitions <em>Component Definitions</em>}'. | ||
806 | * <!-- begin-user-doc --> | ||
807 | * <!-- end-user-doc --> | ||
808 | * @return the meta object for the containment reference list '<em>Component Definitions</em>'. | ||
809 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftModel#getComponentDefinitions() | ||
810 | * @see #getCftModel() | ||
811 | * @generated | ||
812 | */ | ||
813 | EReference getCftModel_ComponentDefinitions(); | ||
814 | |||
815 | /** | ||
816 | * Returns the meta object for the containment reference list '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftModel#getTransformationDefinitions <em>Transformation Definitions</em>}'. | ||
817 | * <!-- begin-user-doc --> | ||
818 | * <!-- end-user-doc --> | ||
819 | * @return the meta object for the containment reference list '<em>Transformation Definitions</em>'. | ||
820 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftModel#getTransformationDefinitions() | ||
821 | * @see #getCftModel() | ||
822 | * @generated | ||
823 | */ | ||
824 | EReference getCftModel_TransformationDefinitions(); | ||
825 | |||
826 | /** | ||
827 | * Returns the meta object for class '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ImportDeclaration <em>Import Declaration</em>}'. | ||
828 | * <!-- begin-user-doc --> | ||
829 | * <!-- end-user-doc --> | ||
830 | * @return the meta object for class '<em>Import Declaration</em>'. | ||
831 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ImportDeclaration | ||
832 | * @generated | ||
833 | */ | ||
834 | EClass getImportDeclaration(); | ||
835 | |||
836 | /** | ||
837 | * Returns the meta object for the attribute '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ImportDeclaration#getImportedNamespace <em>Imported Namespace</em>}'. | ||
838 | * <!-- begin-user-doc --> | ||
839 | * <!-- end-user-doc --> | ||
840 | * @return the meta object for the attribute '<em>Imported Namespace</em>'. | ||
841 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ImportDeclaration#getImportedNamespace() | ||
842 | * @see #getImportDeclaration() | ||
843 | * @generated | ||
844 | */ | ||
845 | EAttribute getImportDeclaration_ImportedNamespace(); | ||
846 | |||
847 | /** | ||
848 | * Returns the meta object for class '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ComponentDefinition <em>Component Definition</em>}'. | ||
849 | * <!-- begin-user-doc --> | ||
850 | * <!-- end-user-doc --> | ||
851 | * @return the meta object for class '<em>Component Definition</em>'. | ||
852 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ComponentDefinition | ||
853 | * @generated | ||
854 | */ | ||
855 | EClass getComponentDefinition(); | ||
856 | |||
857 | /** | ||
858 | * Returns the meta object for the attribute '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ComponentDefinition#getName <em>Name</em>}'. | ||
859 | * <!-- begin-user-doc --> | ||
860 | * <!-- end-user-doc --> | ||
861 | * @return the meta object for the attribute '<em>Name</em>'. | ||
862 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ComponentDefinition#getName() | ||
863 | * @see #getComponentDefinition() | ||
864 | * @generated | ||
865 | */ | ||
866 | EAttribute getComponentDefinition_Name(); | ||
867 | |||
868 | /** | ||
869 | * Returns the meta object for the containment reference list '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ComponentDefinition#getInputEvents <em>Input Events</em>}'. | ||
870 | * <!-- begin-user-doc --> | ||
871 | * <!-- end-user-doc --> | ||
872 | * @return the meta object for the containment reference list '<em>Input Events</em>'. | ||
873 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ComponentDefinition#getInputEvents() | ||
874 | * @see #getComponentDefinition() | ||
875 | * @generated | ||
876 | */ | ||
877 | EReference getComponentDefinition_InputEvents(); | ||
878 | |||
879 | /** | ||
880 | * Returns the meta object for the reference list '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ComponentDefinition#getOutputEvents <em>Output Events</em>}'. | ||
881 | * <!-- begin-user-doc --> | ||
882 | * <!-- end-user-doc --> | ||
883 | * @return the meta object for the reference list '<em>Output Events</em>'. | ||
884 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ComponentDefinition#getOutputEvents() | ||
885 | * @see #getComponentDefinition() | ||
886 | * @generated | ||
887 | */ | ||
888 | EReference getComponentDefinition_OutputEvents(); | ||
889 | |||
890 | /** | ||
891 | * Returns the meta object for the containment reference list '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ComponentDefinition#getEventDefinitions <em>Event Definitions</em>}'. | ||
892 | * <!-- begin-user-doc --> | ||
893 | * <!-- end-user-doc --> | ||
894 | * @return the meta object for the containment reference list '<em>Event Definitions</em>'. | ||
895 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ComponentDefinition#getEventDefinitions() | ||
896 | * @see #getComponentDefinition() | ||
897 | * @generated | ||
898 | */ | ||
899 | EReference getComponentDefinition_EventDefinitions(); | ||
900 | |||
901 | /** | ||
902 | * Returns the meta object for class '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.EventDeclaration <em>Event Declaration</em>}'. | ||
903 | * <!-- begin-user-doc --> | ||
904 | * <!-- end-user-doc --> | ||
905 | * @return the meta object for class '<em>Event Declaration</em>'. | ||
906 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.EventDeclaration | ||
907 | * @generated | ||
908 | */ | ||
909 | EClass getEventDeclaration(); | ||
910 | |||
911 | /** | ||
912 | * Returns the meta object for the attribute '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.EventDeclaration#getName <em>Name</em>}'. | ||
913 | * <!-- begin-user-doc --> | ||
914 | * <!-- end-user-doc --> | ||
915 | * @return the meta object for the attribute '<em>Name</em>'. | ||
916 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.EventDeclaration#getName() | ||
917 | * @see #getEventDeclaration() | ||
918 | * @generated | ||
919 | */ | ||
920 | EAttribute getEventDeclaration_Name(); | ||
921 | |||
922 | /** | ||
923 | * Returns the meta object for class '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.InputEvent <em>Input Event</em>}'. | ||
924 | * <!-- begin-user-doc --> | ||
925 | * <!-- end-user-doc --> | ||
926 | * @return the meta object for class '<em>Input Event</em>'. | ||
927 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.InputEvent | ||
928 | * @generated | ||
929 | */ | ||
930 | EClass getInputEvent(); | ||
931 | |||
932 | /** | ||
933 | * Returns the meta object for the attribute '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.InputEvent#isMultiple <em>Multiple</em>}'. | ||
934 | * <!-- begin-user-doc --> | ||
935 | * <!-- end-user-doc --> | ||
936 | * @return the meta object for the attribute '<em>Multiple</em>'. | ||
937 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.InputEvent#isMultiple() | ||
938 | * @see #getInputEvent() | ||
939 | * @generated | ||
940 | */ | ||
941 | EAttribute getInputEvent_Multiple(); | ||
942 | |||
943 | /** | ||
944 | * Returns the meta object for class '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.EventDefinition <em>Event Definition</em>}'. | ||
945 | * <!-- begin-user-doc --> | ||
946 | * <!-- end-user-doc --> | ||
947 | * @return the meta object for class '<em>Event Definition</em>'. | ||
948 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.EventDefinition | ||
949 | * @generated | ||
950 | */ | ||
951 | EClass getEventDefinition(); | ||
952 | |||
953 | /** | ||
954 | * Returns the meta object for class '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.BasicEventDefinition <em>Basic Event Definition</em>}'. | ||
955 | * <!-- begin-user-doc --> | ||
956 | * <!-- end-user-doc --> | ||
957 | * @return the meta object for class '<em>Basic Event Definition</em>'. | ||
958 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.BasicEventDefinition | ||
959 | * @generated | ||
960 | */ | ||
961 | EClass getBasicEventDefinition(); | ||
962 | |||
963 | /** | ||
964 | * Returns the meta object for the attribute '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.BasicEventDefinition#getRate <em>Rate</em>}'. | ||
965 | * <!-- begin-user-doc --> | ||
966 | * <!-- end-user-doc --> | ||
967 | * @return the meta object for the attribute '<em>Rate</em>'. | ||
968 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.BasicEventDefinition#getRate() | ||
969 | * @see #getBasicEventDefinition() | ||
970 | * @generated | ||
971 | */ | ||
972 | EAttribute getBasicEventDefinition_Rate(); | ||
973 | |||
974 | /** | ||
975 | * Returns the meta object for class '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.GateDefinition <em>Gate Definition</em>}'. | ||
976 | * <!-- begin-user-doc --> | ||
977 | * <!-- end-user-doc --> | ||
978 | * @return the meta object for class '<em>Gate Definition</em>'. | ||
979 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.GateDefinition | ||
980 | * @generated | ||
981 | */ | ||
982 | EClass getGateDefinition(); | ||
983 | |||
984 | /** | ||
985 | * Returns the meta object for the reference list '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.GateDefinition#getInputEvents <em>Input Events</em>}'. | ||
986 | * <!-- begin-user-doc --> | ||
987 | * <!-- end-user-doc --> | ||
988 | * @return the meta object for the reference list '<em>Input Events</em>'. | ||
989 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.GateDefinition#getInputEvents() | ||
990 | * @see #getGateDefinition() | ||
991 | * @generated | ||
992 | */ | ||
993 | EReference getGateDefinition_InputEvents(); | ||
994 | |||
995 | /** | ||
996 | * Returns the meta object for class '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.AndGate <em>And Gate</em>}'. | ||
997 | * <!-- begin-user-doc --> | ||
998 | * <!-- end-user-doc --> | ||
999 | * @return the meta object for class '<em>And Gate</em>'. | ||
1000 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.AndGate | ||
1001 | * @generated | ||
1002 | */ | ||
1003 | EClass getAndGate(); | ||
1004 | |||
1005 | /** | ||
1006 | * Returns the meta object for class '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.OrGate <em>Or Gate</em>}'. | ||
1007 | * <!-- begin-user-doc --> | ||
1008 | * <!-- end-user-doc --> | ||
1009 | * @return the meta object for class '<em>Or Gate</em>'. | ||
1010 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.OrGate | ||
1011 | * @generated | ||
1012 | */ | ||
1013 | EClass getOrGate(); | ||
1014 | |||
1015 | /** | ||
1016 | * Returns the meta object for class '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.TransformationDefinition <em>Transformation Definition</em>}'. | ||
1017 | * <!-- begin-user-doc --> | ||
1018 | * <!-- end-user-doc --> | ||
1019 | * @return the meta object for class '<em>Transformation Definition</em>'. | ||
1020 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.TransformationDefinition | ||
1021 | * @generated | ||
1022 | */ | ||
1023 | EClass getTransformationDefinition(); | ||
1024 | |||
1025 | /** | ||
1026 | * Returns the meta object for the attribute '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.TransformationDefinition#getName <em>Name</em>}'. | ||
1027 | * <!-- begin-user-doc --> | ||
1028 | * <!-- end-user-doc --> | ||
1029 | * @return the meta object for the attribute '<em>Name</em>'. | ||
1030 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.TransformationDefinition#getName() | ||
1031 | * @see #getTransformationDefinition() | ||
1032 | * @generated | ||
1033 | */ | ||
1034 | EAttribute getTransformationDefinition_Name(); | ||
1035 | |||
1036 | /** | ||
1037 | * Returns the meta object for the containment reference list '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.TransformationDefinition#getMappingDefinitions <em>Mapping Definitions</em>}'. | ||
1038 | * <!-- begin-user-doc --> | ||
1039 | * <!-- end-user-doc --> | ||
1040 | * @return the meta object for the containment reference list '<em>Mapping Definitions</em>'. | ||
1041 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.TransformationDefinition#getMappingDefinitions() | ||
1042 | * @see #getTransformationDefinition() | ||
1043 | * @generated | ||
1044 | */ | ||
1045 | EReference getTransformationDefinition_MappingDefinitions(); | ||
1046 | |||
1047 | /** | ||
1048 | * Returns the meta object for class '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.MappingDefinition <em>Mapping Definition</em>}'. | ||
1049 | * <!-- begin-user-doc --> | ||
1050 | * <!-- end-user-doc --> | ||
1051 | * @return the meta object for class '<em>Mapping Definition</em>'. | ||
1052 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.MappingDefinition | ||
1053 | * @generated | ||
1054 | */ | ||
1055 | EClass getMappingDefinition(); | ||
1056 | |||
1057 | /** | ||
1058 | * Returns the meta object for the attribute '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.MappingDefinition#isTopLevel <em>Top Level</em>}'. | ||
1059 | * <!-- begin-user-doc --> | ||
1060 | * <!-- end-user-doc --> | ||
1061 | * @return the meta object for the attribute '<em>Top Level</em>'. | ||
1062 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.MappingDefinition#isTopLevel() | ||
1063 | * @see #getMappingDefinition() | ||
1064 | * @generated | ||
1065 | */ | ||
1066 | EAttribute getMappingDefinition_TopLevel(); | ||
1067 | |||
1068 | /** | ||
1069 | * Returns the meta object for the reference '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.MappingDefinition#getPattern <em>Pattern</em>}'. | ||
1070 | * <!-- begin-user-doc --> | ||
1071 | * <!-- end-user-doc --> | ||
1072 | * @return the meta object for the reference '<em>Pattern</em>'. | ||
1073 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.MappingDefinition#getPattern() | ||
1074 | * @see #getMappingDefinition() | ||
1075 | * @generated | ||
1076 | */ | ||
1077 | EReference getMappingDefinition_Pattern(); | ||
1078 | |||
1079 | /** | ||
1080 | * Returns the meta object for the containment reference list '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.MappingDefinition#getParameters <em>Parameters</em>}'. | ||
1081 | * <!-- begin-user-doc --> | ||
1082 | * <!-- end-user-doc --> | ||
1083 | * @return the meta object for the containment reference list '<em>Parameters</em>'. | ||
1084 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.MappingDefinition#getParameters() | ||
1085 | * @see #getMappingDefinition() | ||
1086 | * @generated | ||
1087 | */ | ||
1088 | EReference getMappingDefinition_Parameters(); | ||
1089 | |||
1090 | /** | ||
1091 | * Returns the meta object for the containment reference '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.MappingDefinition#getComponentInstance <em>Component Instance</em>}'. | ||
1092 | * <!-- begin-user-doc --> | ||
1093 | * <!-- end-user-doc --> | ||
1094 | * @return the meta object for the containment reference '<em>Component Instance</em>'. | ||
1095 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.MappingDefinition#getComponentInstance() | ||
1096 | * @see #getMappingDefinition() | ||
1097 | * @generated | ||
1098 | */ | ||
1099 | EReference getMappingDefinition_ComponentInstance(); | ||
1100 | |||
1101 | /** | ||
1102 | * Returns the meta object for the containment reference list '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.MappingDefinition#getLookupDefinitions <em>Lookup Definitions</em>}'. | ||
1103 | * <!-- begin-user-doc --> | ||
1104 | * <!-- end-user-doc --> | ||
1105 | * @return the meta object for the containment reference list '<em>Lookup Definitions</em>'. | ||
1106 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.MappingDefinition#getLookupDefinitions() | ||
1107 | * @see #getMappingDefinition() | ||
1108 | * @generated | ||
1109 | */ | ||
1110 | EReference getMappingDefinition_LookupDefinitions(); | ||
1111 | |||
1112 | /** | ||
1113 | * Returns the meta object for the containment reference list '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.MappingDefinition#getAssignments <em>Assignments</em>}'. | ||
1114 | * <!-- begin-user-doc --> | ||
1115 | * <!-- end-user-doc --> | ||
1116 | * @return the meta object for the containment reference list '<em>Assignments</em>'. | ||
1117 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.MappingDefinition#getAssignments() | ||
1118 | * @see #getMappingDefinition() | ||
1119 | * @generated | ||
1120 | */ | ||
1121 | EReference getMappingDefinition_Assignments(); | ||
1122 | |||
1123 | /** | ||
1124 | * Returns the meta object for class '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.MappingParameter <em>Mapping Parameter</em>}'. | ||
1125 | * <!-- begin-user-doc --> | ||
1126 | * <!-- end-user-doc --> | ||
1127 | * @return the meta object for class '<em>Mapping Parameter</em>'. | ||
1128 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.MappingParameter | ||
1129 | * @generated | ||
1130 | */ | ||
1131 | EClass getMappingParameter(); | ||
1132 | |||
1133 | /** | ||
1134 | * Returns the meta object for the attribute '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.MappingParameter#getName <em>Name</em>}'. | ||
1135 | * <!-- begin-user-doc --> | ||
1136 | * <!-- end-user-doc --> | ||
1137 | * @return the meta object for the attribute '<em>Name</em>'. | ||
1138 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.MappingParameter#getName() | ||
1139 | * @see #getMappingParameter() | ||
1140 | * @generated | ||
1141 | */ | ||
1142 | EAttribute getMappingParameter_Name(); | ||
1143 | |||
1144 | /** | ||
1145 | * Returns the meta object for class '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.LookupDefinition <em>Lookup Definition</em>}'. | ||
1146 | * <!-- begin-user-doc --> | ||
1147 | * <!-- end-user-doc --> | ||
1148 | * @return the meta object for class '<em>Lookup Definition</em>'. | ||
1149 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.LookupDefinition | ||
1150 | * @generated | ||
1151 | */ | ||
1152 | EClass getLookupDefinition(); | ||
1153 | |||
1154 | /** | ||
1155 | * Returns the meta object for the reference '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.LookupDefinition#getMapping <em>Mapping</em>}'. | ||
1156 | * <!-- begin-user-doc --> | ||
1157 | * <!-- end-user-doc --> | ||
1158 | * @return the meta object for the reference '<em>Mapping</em>'. | ||
1159 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.LookupDefinition#getMapping() | ||
1160 | * @see #getLookupDefinition() | ||
1161 | * @generated | ||
1162 | */ | ||
1163 | EReference getLookupDefinition_Mapping(); | ||
1164 | |||
1165 | /** | ||
1166 | * Returns the meta object for the reference list '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.LookupDefinition#getArguments <em>Arguments</em>}'. | ||
1167 | * <!-- begin-user-doc --> | ||
1168 | * <!-- end-user-doc --> | ||
1169 | * @return the meta object for the reference list '<em>Arguments</em>'. | ||
1170 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.LookupDefinition#getArguments() | ||
1171 | * @see #getLookupDefinition() | ||
1172 | * @generated | ||
1173 | */ | ||
1174 | EReference getLookupDefinition_Arguments(); | ||
1175 | |||
1176 | /** | ||
1177 | * Returns the meta object for class '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.Variable <em>Variable</em>}'. | ||
1178 | * <!-- begin-user-doc --> | ||
1179 | * <!-- end-user-doc --> | ||
1180 | * @return the meta object for class '<em>Variable</em>'. | ||
1181 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.Variable | ||
1182 | * @generated | ||
1183 | */ | ||
1184 | EClass getVariable(); | ||
1185 | |||
1186 | /** | ||
1187 | * Returns the meta object for the attribute '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.Variable#getName <em>Name</em>}'. | ||
1188 | * <!-- begin-user-doc --> | ||
1189 | * <!-- end-user-doc --> | ||
1190 | * @return the meta object for the attribute '<em>Name</em>'. | ||
1191 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.Variable#getName() | ||
1192 | * @see #getVariable() | ||
1193 | * @generated | ||
1194 | */ | ||
1195 | EAttribute getVariable_Name(); | ||
1196 | |||
1197 | /** | ||
1198 | * Returns the meta object for class '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.Assignment <em>Assignment</em>}'. | ||
1199 | * <!-- begin-user-doc --> | ||
1200 | * <!-- end-user-doc --> | ||
1201 | * @return the meta object for class '<em>Assignment</em>'. | ||
1202 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.Assignment | ||
1203 | * @generated | ||
1204 | */ | ||
1205 | EClass getAssignment(); | ||
1206 | |||
1207 | /** | ||
1208 | * Returns the meta object for the containment reference '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.Assignment#getInput <em>Input</em>}'. | ||
1209 | * <!-- begin-user-doc --> | ||
1210 | * <!-- end-user-doc --> | ||
1211 | * @return the meta object for the containment reference '<em>Input</em>'. | ||
1212 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.Assignment#getInput() | ||
1213 | * @see #getAssignment() | ||
1214 | * @generated | ||
1215 | */ | ||
1216 | EReference getAssignment_Input(); | ||
1217 | |||
1218 | /** | ||
1219 | * Returns the meta object for the attribute '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.Assignment#isMultiple <em>Multiple</em>}'. | ||
1220 | * <!-- begin-user-doc --> | ||
1221 | * <!-- end-user-doc --> | ||
1222 | * @return the meta object for the attribute '<em>Multiple</em>'. | ||
1223 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.Assignment#isMultiple() | ||
1224 | * @see #getAssignment() | ||
1225 | * @generated | ||
1226 | */ | ||
1227 | EAttribute getAssignment_Multiple(); | ||
1228 | |||
1229 | /** | ||
1230 | * Returns the meta object for the containment reference '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.Assignment#getOutput <em>Output</em>}'. | ||
1231 | * <!-- begin-user-doc --> | ||
1232 | * <!-- end-user-doc --> | ||
1233 | * @return the meta object for the containment reference '<em>Output</em>'. | ||
1234 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.Assignment#getOutput() | ||
1235 | * @see #getAssignment() | ||
1236 | * @generated | ||
1237 | */ | ||
1238 | EReference getAssignment_Output(); | ||
1239 | |||
1240 | /** | ||
1241 | * Returns the meta object for class '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.EventReference <em>Event Reference</em>}'. | ||
1242 | * <!-- begin-user-doc --> | ||
1243 | * <!-- end-user-doc --> | ||
1244 | * @return the meta object for class '<em>Event Reference</em>'. | ||
1245 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.EventReference | ||
1246 | * @generated | ||
1247 | */ | ||
1248 | EClass getEventReference(); | ||
1249 | |||
1250 | /** | ||
1251 | * Returns the meta object for the reference '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.EventReference#getComponent <em>Component</em>}'. | ||
1252 | * <!-- begin-user-doc --> | ||
1253 | * <!-- end-user-doc --> | ||
1254 | * @return the meta object for the reference '<em>Component</em>'. | ||
1255 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.EventReference#getComponent() | ||
1256 | * @see #getEventReference() | ||
1257 | * @generated | ||
1258 | */ | ||
1259 | EReference getEventReference_Component(); | ||
1260 | |||
1261 | /** | ||
1262 | * Returns the meta object for the reference '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.EventReference#getEvent <em>Event</em>}'. | ||
1263 | * <!-- begin-user-doc --> | ||
1264 | * <!-- end-user-doc --> | ||
1265 | * @return the meta object for the reference '<em>Event</em>'. | ||
1266 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.EventReference#getEvent() | ||
1267 | * @see #getEventReference() | ||
1268 | * @generated | ||
1269 | */ | ||
1270 | EReference getEventReference_Event(); | ||
1271 | |||
1272 | /** | ||
1273 | * Returns the meta object for class '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ComponentInstance <em>Component Instance</em>}'. | ||
1274 | * <!-- begin-user-doc --> | ||
1275 | * <!-- end-user-doc --> | ||
1276 | * @return the meta object for class '<em>Component Instance</em>'. | ||
1277 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ComponentInstance | ||
1278 | * @generated | ||
1279 | */ | ||
1280 | EClass getComponentInstance(); | ||
1281 | |||
1282 | /** | ||
1283 | * Returns the meta object for the reference '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ComponentInstance#getComponentType <em>Component Type</em>}'. | ||
1284 | * <!-- begin-user-doc --> | ||
1285 | * <!-- end-user-doc --> | ||
1286 | * @return the meta object for the reference '<em>Component Type</em>'. | ||
1287 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ComponentInstance#getComponentType() | ||
1288 | * @see #getComponentInstance() | ||
1289 | * @generated | ||
1290 | */ | ||
1291 | EReference getComponentInstance_ComponentType(); | ||
1292 | |||
1293 | /** | ||
1294 | * Returns the factory that creates the instances of the model. | ||
1295 | * <!-- begin-user-doc --> | ||
1296 | * <!-- end-user-doc --> | ||
1297 | * @return the factory that creates the instances of the model. | ||
1298 | * @generated | ||
1299 | */ | ||
1300 | CftLanguageFactory getCftLanguageFactory(); | ||
1301 | |||
1302 | /** | ||
1303 | * <!-- begin-user-doc --> | ||
1304 | * Defines literals for the meta objects that represent | ||
1305 | * <ul> | ||
1306 | * <li>each class,</li> | ||
1307 | * <li>each feature of each class,</li> | ||
1308 | * <li>each enum,</li> | ||
1309 | * <li>and each data type</li> | ||
1310 | * </ul> | ||
1311 | * <!-- end-user-doc --> | ||
1312 | * @generated | ||
1313 | */ | ||
1314 | interface Literals | ||
1315 | { | ||
1316 | /** | ||
1317 | * The meta object literal for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.CftModelImpl <em>Cft Model</em>}' class. | ||
1318 | * <!-- begin-user-doc --> | ||
1319 | * <!-- end-user-doc --> | ||
1320 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.CftModelImpl | ||
1321 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.CftLanguagePackageImpl#getCftModel() | ||
1322 | * @generated | ||
1323 | */ | ||
1324 | EClass CFT_MODEL = eINSTANCE.getCftModel(); | ||
1325 | |||
1326 | /** | ||
1327 | * The meta object literal for the '<em><b>Package Name</b></em>' attribute feature. | ||
1328 | * <!-- begin-user-doc --> | ||
1329 | * <!-- end-user-doc --> | ||
1330 | * @generated | ||
1331 | */ | ||
1332 | EAttribute CFT_MODEL__PACKAGE_NAME = eINSTANCE.getCftModel_PackageName(); | ||
1333 | |||
1334 | /** | ||
1335 | * The meta object literal for the '<em><b>Imports</b></em>' containment reference list feature. | ||
1336 | * <!-- begin-user-doc --> | ||
1337 | * <!-- end-user-doc --> | ||
1338 | * @generated | ||
1339 | */ | ||
1340 | EReference CFT_MODEL__IMPORTS = eINSTANCE.getCftModel_Imports(); | ||
1341 | |||
1342 | /** | ||
1343 | * The meta object literal for the '<em><b>Component Definitions</b></em>' containment reference list feature. | ||
1344 | * <!-- begin-user-doc --> | ||
1345 | * <!-- end-user-doc --> | ||
1346 | * @generated | ||
1347 | */ | ||
1348 | EReference CFT_MODEL__COMPONENT_DEFINITIONS = eINSTANCE.getCftModel_ComponentDefinitions(); | ||
1349 | |||
1350 | /** | ||
1351 | * The meta object literal for the '<em><b>Transformation Definitions</b></em>' containment reference list feature. | ||
1352 | * <!-- begin-user-doc --> | ||
1353 | * <!-- end-user-doc --> | ||
1354 | * @generated | ||
1355 | */ | ||
1356 | EReference CFT_MODEL__TRANSFORMATION_DEFINITIONS = eINSTANCE.getCftModel_TransformationDefinitions(); | ||
1357 | |||
1358 | /** | ||
1359 | * The meta object literal for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.ImportDeclarationImpl <em>Import Declaration</em>}' class. | ||
1360 | * <!-- begin-user-doc --> | ||
1361 | * <!-- end-user-doc --> | ||
1362 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.ImportDeclarationImpl | ||
1363 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.CftLanguagePackageImpl#getImportDeclaration() | ||
1364 | * @generated | ||
1365 | */ | ||
1366 | EClass IMPORT_DECLARATION = eINSTANCE.getImportDeclaration(); | ||
1367 | |||
1368 | /** | ||
1369 | * The meta object literal for the '<em><b>Imported Namespace</b></em>' attribute feature. | ||
1370 | * <!-- begin-user-doc --> | ||
1371 | * <!-- end-user-doc --> | ||
1372 | * @generated | ||
1373 | */ | ||
1374 | EAttribute IMPORT_DECLARATION__IMPORTED_NAMESPACE = eINSTANCE.getImportDeclaration_ImportedNamespace(); | ||
1375 | |||
1376 | /** | ||
1377 | * The meta object literal for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.ComponentDefinitionImpl <em>Component Definition</em>}' class. | ||
1378 | * <!-- begin-user-doc --> | ||
1379 | * <!-- end-user-doc --> | ||
1380 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.ComponentDefinitionImpl | ||
1381 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.CftLanguagePackageImpl#getComponentDefinition() | ||
1382 | * @generated | ||
1383 | */ | ||
1384 | EClass COMPONENT_DEFINITION = eINSTANCE.getComponentDefinition(); | ||
1385 | |||
1386 | /** | ||
1387 | * The meta object literal for the '<em><b>Name</b></em>' attribute feature. | ||
1388 | * <!-- begin-user-doc --> | ||
1389 | * <!-- end-user-doc --> | ||
1390 | * @generated | ||
1391 | */ | ||
1392 | EAttribute COMPONENT_DEFINITION__NAME = eINSTANCE.getComponentDefinition_Name(); | ||
1393 | |||
1394 | /** | ||
1395 | * The meta object literal for the '<em><b>Input Events</b></em>' containment reference list feature. | ||
1396 | * <!-- begin-user-doc --> | ||
1397 | * <!-- end-user-doc --> | ||
1398 | * @generated | ||
1399 | */ | ||
1400 | EReference COMPONENT_DEFINITION__INPUT_EVENTS = eINSTANCE.getComponentDefinition_InputEvents(); | ||
1401 | |||
1402 | /** | ||
1403 | * The meta object literal for the '<em><b>Output Events</b></em>' reference list feature. | ||
1404 | * <!-- begin-user-doc --> | ||
1405 | * <!-- end-user-doc --> | ||
1406 | * @generated | ||
1407 | */ | ||
1408 | EReference COMPONENT_DEFINITION__OUTPUT_EVENTS = eINSTANCE.getComponentDefinition_OutputEvents(); | ||
1409 | |||
1410 | /** | ||
1411 | * The meta object literal for the '<em><b>Event Definitions</b></em>' containment reference list feature. | ||
1412 | * <!-- begin-user-doc --> | ||
1413 | * <!-- end-user-doc --> | ||
1414 | * @generated | ||
1415 | */ | ||
1416 | EReference COMPONENT_DEFINITION__EVENT_DEFINITIONS = eINSTANCE.getComponentDefinition_EventDefinitions(); | ||
1417 | |||
1418 | /** | ||
1419 | * The meta object literal for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.EventDeclarationImpl <em>Event Declaration</em>}' class. | ||
1420 | * <!-- begin-user-doc --> | ||
1421 | * <!-- end-user-doc --> | ||
1422 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.EventDeclarationImpl | ||
1423 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.CftLanguagePackageImpl#getEventDeclaration() | ||
1424 | * @generated | ||
1425 | */ | ||
1426 | EClass EVENT_DECLARATION = eINSTANCE.getEventDeclaration(); | ||
1427 | |||
1428 | /** | ||
1429 | * The meta object literal for the '<em><b>Name</b></em>' attribute feature. | ||
1430 | * <!-- begin-user-doc --> | ||
1431 | * <!-- end-user-doc --> | ||
1432 | * @generated | ||
1433 | */ | ||
1434 | EAttribute EVENT_DECLARATION__NAME = eINSTANCE.getEventDeclaration_Name(); | ||
1435 | |||
1436 | /** | ||
1437 | * The meta object literal for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.InputEventImpl <em>Input Event</em>}' class. | ||
1438 | * <!-- begin-user-doc --> | ||
1439 | * <!-- end-user-doc --> | ||
1440 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.InputEventImpl | ||
1441 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.CftLanguagePackageImpl#getInputEvent() | ||
1442 | * @generated | ||
1443 | */ | ||
1444 | EClass INPUT_EVENT = eINSTANCE.getInputEvent(); | ||
1445 | |||
1446 | /** | ||
1447 | * The meta object literal for the '<em><b>Multiple</b></em>' attribute feature. | ||
1448 | * <!-- begin-user-doc --> | ||
1449 | * <!-- end-user-doc --> | ||
1450 | * @generated | ||
1451 | */ | ||
1452 | EAttribute INPUT_EVENT__MULTIPLE = eINSTANCE.getInputEvent_Multiple(); | ||
1453 | |||
1454 | /** | ||
1455 | * The meta object literal for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.EventDefinitionImpl <em>Event Definition</em>}' class. | ||
1456 | * <!-- begin-user-doc --> | ||
1457 | * <!-- end-user-doc --> | ||
1458 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.EventDefinitionImpl | ||
1459 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.CftLanguagePackageImpl#getEventDefinition() | ||
1460 | * @generated | ||
1461 | */ | ||
1462 | EClass EVENT_DEFINITION = eINSTANCE.getEventDefinition(); | ||
1463 | |||
1464 | /** | ||
1465 | * The meta object literal for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.BasicEventDefinitionImpl <em>Basic Event Definition</em>}' class. | ||
1466 | * <!-- begin-user-doc --> | ||
1467 | * <!-- end-user-doc --> | ||
1468 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.BasicEventDefinitionImpl | ||
1469 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.CftLanguagePackageImpl#getBasicEventDefinition() | ||
1470 | * @generated | ||
1471 | */ | ||
1472 | EClass BASIC_EVENT_DEFINITION = eINSTANCE.getBasicEventDefinition(); | ||
1473 | |||
1474 | /** | ||
1475 | * The meta object literal for the '<em><b>Rate</b></em>' attribute feature. | ||
1476 | * <!-- begin-user-doc --> | ||
1477 | * <!-- end-user-doc --> | ||
1478 | * @generated | ||
1479 | */ | ||
1480 | EAttribute BASIC_EVENT_DEFINITION__RATE = eINSTANCE.getBasicEventDefinition_Rate(); | ||
1481 | |||
1482 | /** | ||
1483 | * The meta object literal for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.GateDefinitionImpl <em>Gate Definition</em>}' class. | ||
1484 | * <!-- begin-user-doc --> | ||
1485 | * <!-- end-user-doc --> | ||
1486 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.GateDefinitionImpl | ||
1487 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.CftLanguagePackageImpl#getGateDefinition() | ||
1488 | * @generated | ||
1489 | */ | ||
1490 | EClass GATE_DEFINITION = eINSTANCE.getGateDefinition(); | ||
1491 | |||
1492 | /** | ||
1493 | * The meta object literal for the '<em><b>Input Events</b></em>' reference list feature. | ||
1494 | * <!-- begin-user-doc --> | ||
1495 | * <!-- end-user-doc --> | ||
1496 | * @generated | ||
1497 | */ | ||
1498 | EReference GATE_DEFINITION__INPUT_EVENTS = eINSTANCE.getGateDefinition_InputEvents(); | ||
1499 | |||
1500 | /** | ||
1501 | * The meta object literal for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.AndGateImpl <em>And Gate</em>}' class. | ||
1502 | * <!-- begin-user-doc --> | ||
1503 | * <!-- end-user-doc --> | ||
1504 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.AndGateImpl | ||
1505 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.CftLanguagePackageImpl#getAndGate() | ||
1506 | * @generated | ||
1507 | */ | ||
1508 | EClass AND_GATE = eINSTANCE.getAndGate(); | ||
1509 | |||
1510 | /** | ||
1511 | * The meta object literal for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.OrGateImpl <em>Or Gate</em>}' class. | ||
1512 | * <!-- begin-user-doc --> | ||
1513 | * <!-- end-user-doc --> | ||
1514 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.OrGateImpl | ||
1515 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.CftLanguagePackageImpl#getOrGate() | ||
1516 | * @generated | ||
1517 | */ | ||
1518 | EClass OR_GATE = eINSTANCE.getOrGate(); | ||
1519 | |||
1520 | /** | ||
1521 | * The meta object literal for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.TransformationDefinitionImpl <em>Transformation Definition</em>}' class. | ||
1522 | * <!-- begin-user-doc --> | ||
1523 | * <!-- end-user-doc --> | ||
1524 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.TransformationDefinitionImpl | ||
1525 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.CftLanguagePackageImpl#getTransformationDefinition() | ||
1526 | * @generated | ||
1527 | */ | ||
1528 | EClass TRANSFORMATION_DEFINITION = eINSTANCE.getTransformationDefinition(); | ||
1529 | |||
1530 | /** | ||
1531 | * The meta object literal for the '<em><b>Name</b></em>' attribute feature. | ||
1532 | * <!-- begin-user-doc --> | ||
1533 | * <!-- end-user-doc --> | ||
1534 | * @generated | ||
1535 | */ | ||
1536 | EAttribute TRANSFORMATION_DEFINITION__NAME = eINSTANCE.getTransformationDefinition_Name(); | ||
1537 | |||
1538 | /** | ||
1539 | * The meta object literal for the '<em><b>Mapping Definitions</b></em>' containment reference list feature. | ||
1540 | * <!-- begin-user-doc --> | ||
1541 | * <!-- end-user-doc --> | ||
1542 | * @generated | ||
1543 | */ | ||
1544 | EReference TRANSFORMATION_DEFINITION__MAPPING_DEFINITIONS = eINSTANCE.getTransformationDefinition_MappingDefinitions(); | ||
1545 | |||
1546 | /** | ||
1547 | * The meta object literal for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.MappingDefinitionImpl <em>Mapping Definition</em>}' class. | ||
1548 | * <!-- begin-user-doc --> | ||
1549 | * <!-- end-user-doc --> | ||
1550 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.MappingDefinitionImpl | ||
1551 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.CftLanguagePackageImpl#getMappingDefinition() | ||
1552 | * @generated | ||
1553 | */ | ||
1554 | EClass MAPPING_DEFINITION = eINSTANCE.getMappingDefinition(); | ||
1555 | |||
1556 | /** | ||
1557 | * The meta object literal for the '<em><b>Top Level</b></em>' attribute feature. | ||
1558 | * <!-- begin-user-doc --> | ||
1559 | * <!-- end-user-doc --> | ||
1560 | * @generated | ||
1561 | */ | ||
1562 | EAttribute MAPPING_DEFINITION__TOP_LEVEL = eINSTANCE.getMappingDefinition_TopLevel(); | ||
1563 | |||
1564 | /** | ||
1565 | * The meta object literal for the '<em><b>Pattern</b></em>' reference feature. | ||
1566 | * <!-- begin-user-doc --> | ||
1567 | * <!-- end-user-doc --> | ||
1568 | * @generated | ||
1569 | */ | ||
1570 | EReference MAPPING_DEFINITION__PATTERN = eINSTANCE.getMappingDefinition_Pattern(); | ||
1571 | |||
1572 | /** | ||
1573 | * The meta object literal for the '<em><b>Parameters</b></em>' containment reference list feature. | ||
1574 | * <!-- begin-user-doc --> | ||
1575 | * <!-- end-user-doc --> | ||
1576 | * @generated | ||
1577 | */ | ||
1578 | EReference MAPPING_DEFINITION__PARAMETERS = eINSTANCE.getMappingDefinition_Parameters(); | ||
1579 | |||
1580 | /** | ||
1581 | * The meta object literal for the '<em><b>Component Instance</b></em>' containment reference feature. | ||
1582 | * <!-- begin-user-doc --> | ||
1583 | * <!-- end-user-doc --> | ||
1584 | * @generated | ||
1585 | */ | ||
1586 | EReference MAPPING_DEFINITION__COMPONENT_INSTANCE = eINSTANCE.getMappingDefinition_ComponentInstance(); | ||
1587 | |||
1588 | /** | ||
1589 | * The meta object literal for the '<em><b>Lookup Definitions</b></em>' containment reference list feature. | ||
1590 | * <!-- begin-user-doc --> | ||
1591 | * <!-- end-user-doc --> | ||
1592 | * @generated | ||
1593 | */ | ||
1594 | EReference MAPPING_DEFINITION__LOOKUP_DEFINITIONS = eINSTANCE.getMappingDefinition_LookupDefinitions(); | ||
1595 | |||
1596 | /** | ||
1597 | * The meta object literal for the '<em><b>Assignments</b></em>' containment reference list feature. | ||
1598 | * <!-- begin-user-doc --> | ||
1599 | * <!-- end-user-doc --> | ||
1600 | * @generated | ||
1601 | */ | ||
1602 | EReference MAPPING_DEFINITION__ASSIGNMENTS = eINSTANCE.getMappingDefinition_Assignments(); | ||
1603 | |||
1604 | /** | ||
1605 | * The meta object literal for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.MappingParameterImpl <em>Mapping Parameter</em>}' class. | ||
1606 | * <!-- begin-user-doc --> | ||
1607 | * <!-- end-user-doc --> | ||
1608 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.MappingParameterImpl | ||
1609 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.CftLanguagePackageImpl#getMappingParameter() | ||
1610 | * @generated | ||
1611 | */ | ||
1612 | EClass MAPPING_PARAMETER = eINSTANCE.getMappingParameter(); | ||
1613 | |||
1614 | /** | ||
1615 | * The meta object literal for the '<em><b>Name</b></em>' attribute feature. | ||
1616 | * <!-- begin-user-doc --> | ||
1617 | * <!-- end-user-doc --> | ||
1618 | * @generated | ||
1619 | */ | ||
1620 | EAttribute MAPPING_PARAMETER__NAME = eINSTANCE.getMappingParameter_Name(); | ||
1621 | |||
1622 | /** | ||
1623 | * The meta object literal for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.LookupDefinitionImpl <em>Lookup Definition</em>}' class. | ||
1624 | * <!-- begin-user-doc --> | ||
1625 | * <!-- end-user-doc --> | ||
1626 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.LookupDefinitionImpl | ||
1627 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.CftLanguagePackageImpl#getLookupDefinition() | ||
1628 | * @generated | ||
1629 | */ | ||
1630 | EClass LOOKUP_DEFINITION = eINSTANCE.getLookupDefinition(); | ||
1631 | |||
1632 | /** | ||
1633 | * The meta object literal for the '<em><b>Mapping</b></em>' reference feature. | ||
1634 | * <!-- begin-user-doc --> | ||
1635 | * <!-- end-user-doc --> | ||
1636 | * @generated | ||
1637 | */ | ||
1638 | EReference LOOKUP_DEFINITION__MAPPING = eINSTANCE.getLookupDefinition_Mapping(); | ||
1639 | |||
1640 | /** | ||
1641 | * The meta object literal for the '<em><b>Arguments</b></em>' reference list feature. | ||
1642 | * <!-- begin-user-doc --> | ||
1643 | * <!-- end-user-doc --> | ||
1644 | * @generated | ||
1645 | */ | ||
1646 | EReference LOOKUP_DEFINITION__ARGUMENTS = eINSTANCE.getLookupDefinition_Arguments(); | ||
1647 | |||
1648 | /** | ||
1649 | * The meta object literal for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.VariableImpl <em>Variable</em>}' class. | ||
1650 | * <!-- begin-user-doc --> | ||
1651 | * <!-- end-user-doc --> | ||
1652 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.VariableImpl | ||
1653 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.CftLanguagePackageImpl#getVariable() | ||
1654 | * @generated | ||
1655 | */ | ||
1656 | EClass VARIABLE = eINSTANCE.getVariable(); | ||
1657 | |||
1658 | /** | ||
1659 | * The meta object literal for the '<em><b>Name</b></em>' attribute feature. | ||
1660 | * <!-- begin-user-doc --> | ||
1661 | * <!-- end-user-doc --> | ||
1662 | * @generated | ||
1663 | */ | ||
1664 | EAttribute VARIABLE__NAME = eINSTANCE.getVariable_Name(); | ||
1665 | |||
1666 | /** | ||
1667 | * The meta object literal for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.AssignmentImpl <em>Assignment</em>}' class. | ||
1668 | * <!-- begin-user-doc --> | ||
1669 | * <!-- end-user-doc --> | ||
1670 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.AssignmentImpl | ||
1671 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.CftLanguagePackageImpl#getAssignment() | ||
1672 | * @generated | ||
1673 | */ | ||
1674 | EClass ASSIGNMENT = eINSTANCE.getAssignment(); | ||
1675 | |||
1676 | /** | ||
1677 | * The meta object literal for the '<em><b>Input</b></em>' containment reference feature. | ||
1678 | * <!-- begin-user-doc --> | ||
1679 | * <!-- end-user-doc --> | ||
1680 | * @generated | ||
1681 | */ | ||
1682 | EReference ASSIGNMENT__INPUT = eINSTANCE.getAssignment_Input(); | ||
1683 | |||
1684 | /** | ||
1685 | * The meta object literal for the '<em><b>Multiple</b></em>' attribute feature. | ||
1686 | * <!-- begin-user-doc --> | ||
1687 | * <!-- end-user-doc --> | ||
1688 | * @generated | ||
1689 | */ | ||
1690 | EAttribute ASSIGNMENT__MULTIPLE = eINSTANCE.getAssignment_Multiple(); | ||
1691 | |||
1692 | /** | ||
1693 | * The meta object literal for the '<em><b>Output</b></em>' containment reference feature. | ||
1694 | * <!-- begin-user-doc --> | ||
1695 | * <!-- end-user-doc --> | ||
1696 | * @generated | ||
1697 | */ | ||
1698 | EReference ASSIGNMENT__OUTPUT = eINSTANCE.getAssignment_Output(); | ||
1699 | |||
1700 | /** | ||
1701 | * The meta object literal for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.EventReferenceImpl <em>Event Reference</em>}' class. | ||
1702 | * <!-- begin-user-doc --> | ||
1703 | * <!-- end-user-doc --> | ||
1704 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.EventReferenceImpl | ||
1705 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.CftLanguagePackageImpl#getEventReference() | ||
1706 | * @generated | ||
1707 | */ | ||
1708 | EClass EVENT_REFERENCE = eINSTANCE.getEventReference(); | ||
1709 | |||
1710 | /** | ||
1711 | * The meta object literal for the '<em><b>Component</b></em>' reference feature. | ||
1712 | * <!-- begin-user-doc --> | ||
1713 | * <!-- end-user-doc --> | ||
1714 | * @generated | ||
1715 | */ | ||
1716 | EReference EVENT_REFERENCE__COMPONENT = eINSTANCE.getEventReference_Component(); | ||
1717 | |||
1718 | /** | ||
1719 | * The meta object literal for the '<em><b>Event</b></em>' reference feature. | ||
1720 | * <!-- begin-user-doc --> | ||
1721 | * <!-- end-user-doc --> | ||
1722 | * @generated | ||
1723 | */ | ||
1724 | EReference EVENT_REFERENCE__EVENT = eINSTANCE.getEventReference_Event(); | ||
1725 | |||
1726 | /** | ||
1727 | * The meta object literal for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.ComponentInstanceImpl <em>Component Instance</em>}' class. | ||
1728 | * <!-- begin-user-doc --> | ||
1729 | * <!-- end-user-doc --> | ||
1730 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.ComponentInstanceImpl | ||
1731 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.CftLanguagePackageImpl#getComponentInstance() | ||
1732 | * @generated | ||
1733 | */ | ||
1734 | EClass COMPONENT_INSTANCE = eINSTANCE.getComponentInstance(); | ||
1735 | |||
1736 | /** | ||
1737 | * The meta object literal for the '<em><b>Component Type</b></em>' reference feature. | ||
1738 | * <!-- begin-user-doc --> | ||
1739 | * <!-- end-user-doc --> | ||
1740 | * @generated | ||
1741 | */ | ||
1742 | EReference COMPONENT_INSTANCE__COMPONENT_TYPE = eINSTANCE.getComponentInstance_ComponentType(); | ||
1743 | |||
1744 | } | ||
1745 | |||
1746 | } //CftLanguagePackage | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/CftModel.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/CftModel.java new file mode 100644 index 00000000..5291e747 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/CftModel.java | |||
@@ -0,0 +1,105 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage; | ||
5 | |||
6 | import org.eclipse.emf.common.util.EList; | ||
7 | |||
8 | import org.eclipse.emf.ecore.EObject; | ||
9 | |||
10 | /** | ||
11 | * <!-- begin-user-doc --> | ||
12 | * A representation of the model object '<em><b>Cft Model</b></em>'. | ||
13 | * <!-- end-user-doc --> | ||
14 | * | ||
15 | * <p> | ||
16 | * The following features are supported: | ||
17 | * </p> | ||
18 | * <ul> | ||
19 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftModel#getPackageName <em>Package Name</em>}</li> | ||
20 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftModel#getImports <em>Imports</em>}</li> | ||
21 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftModel#getComponentDefinitions <em>Component Definitions</em>}</li> | ||
22 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftModel#getTransformationDefinitions <em>Transformation Definitions</em>}</li> | ||
23 | * </ul> | ||
24 | * | ||
25 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage#getCftModel() | ||
26 | * @model | ||
27 | * @generated | ||
28 | */ | ||
29 | public interface CftModel extends EObject | ||
30 | { | ||
31 | /** | ||
32 | * Returns the value of the '<em><b>Package Name</b></em>' attribute. | ||
33 | * <!-- begin-user-doc --> | ||
34 | * <p> | ||
35 | * If the meaning of the '<em>Package Name</em>' attribute isn't clear, | ||
36 | * there really should be more of a description here... | ||
37 | * </p> | ||
38 | * <!-- end-user-doc --> | ||
39 | * @return the value of the '<em>Package Name</em>' attribute. | ||
40 | * @see #setPackageName(String) | ||
41 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage#getCftModel_PackageName() | ||
42 | * @model | ||
43 | * @generated | ||
44 | */ | ||
45 | String getPackageName(); | ||
46 | |||
47 | /** | ||
48 | * Sets the value of the '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftModel#getPackageName <em>Package Name</em>}' attribute. | ||
49 | * <!-- begin-user-doc --> | ||
50 | * <!-- end-user-doc --> | ||
51 | * @param value the new value of the '<em>Package Name</em>' attribute. | ||
52 | * @see #getPackageName() | ||
53 | * @generated | ||
54 | */ | ||
55 | void setPackageName(String value); | ||
56 | |||
57 | /** | ||
58 | * Returns the value of the '<em><b>Imports</b></em>' containment reference list. | ||
59 | * The list contents are of type {@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ImportDeclaration}. | ||
60 | * <!-- begin-user-doc --> | ||
61 | * <p> | ||
62 | * If the meaning of the '<em>Imports</em>' containment reference list isn't clear, | ||
63 | * there really should be more of a description here... | ||
64 | * </p> | ||
65 | * <!-- end-user-doc --> | ||
66 | * @return the value of the '<em>Imports</em>' containment reference list. | ||
67 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage#getCftModel_Imports() | ||
68 | * @model containment="true" | ||
69 | * @generated | ||
70 | */ | ||
71 | EList<ImportDeclaration> getImports(); | ||
72 | |||
73 | /** | ||
74 | * Returns the value of the '<em><b>Component Definitions</b></em>' containment reference list. | ||
75 | * The list contents are of type {@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ComponentDefinition}. | ||
76 | * <!-- begin-user-doc --> | ||
77 | * <p> | ||
78 | * If the meaning of the '<em>Component Definitions</em>' containment reference list isn't clear, | ||
79 | * there really should be more of a description here... | ||
80 | * </p> | ||
81 | * <!-- end-user-doc --> | ||
82 | * @return the value of the '<em>Component Definitions</em>' containment reference list. | ||
83 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage#getCftModel_ComponentDefinitions() | ||
84 | * @model containment="true" | ||
85 | * @generated | ||
86 | */ | ||
87 | EList<ComponentDefinition> getComponentDefinitions(); | ||
88 | |||
89 | /** | ||
90 | * Returns the value of the '<em><b>Transformation Definitions</b></em>' containment reference list. | ||
91 | * The list contents are of type {@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.TransformationDefinition}. | ||
92 | * <!-- begin-user-doc --> | ||
93 | * <p> | ||
94 | * If the meaning of the '<em>Transformation Definitions</em>' containment reference list isn't clear, | ||
95 | * there really should be more of a description here... | ||
96 | * </p> | ||
97 | * <!-- end-user-doc --> | ||
98 | * @return the value of the '<em>Transformation Definitions</em>' containment reference list. | ||
99 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage#getCftModel_TransformationDefinitions() | ||
100 | * @model containment="true" | ||
101 | * @generated | ||
102 | */ | ||
103 | EList<TransformationDefinition> getTransformationDefinitions(); | ||
104 | |||
105 | } // CftModel | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/ComponentDefinition.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/ComponentDefinition.java new file mode 100644 index 00000000..dae78e7e --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/ComponentDefinition.java | |||
@@ -0,0 +1,105 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage; | ||
5 | |||
6 | import org.eclipse.emf.common.util.EList; | ||
7 | |||
8 | import org.eclipse.emf.ecore.EObject; | ||
9 | |||
10 | /** | ||
11 | * <!-- begin-user-doc --> | ||
12 | * A representation of the model object '<em><b>Component Definition</b></em>'. | ||
13 | * <!-- end-user-doc --> | ||
14 | * | ||
15 | * <p> | ||
16 | * The following features are supported: | ||
17 | * </p> | ||
18 | * <ul> | ||
19 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ComponentDefinition#getName <em>Name</em>}</li> | ||
20 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ComponentDefinition#getInputEvents <em>Input Events</em>}</li> | ||
21 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ComponentDefinition#getOutputEvents <em>Output Events</em>}</li> | ||
22 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ComponentDefinition#getEventDefinitions <em>Event Definitions</em>}</li> | ||
23 | * </ul> | ||
24 | * | ||
25 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage#getComponentDefinition() | ||
26 | * @model | ||
27 | * @generated | ||
28 | */ | ||
29 | public interface ComponentDefinition extends EObject | ||
30 | { | ||
31 | /** | ||
32 | * Returns the value of the '<em><b>Name</b></em>' attribute. | ||
33 | * <!-- begin-user-doc --> | ||
34 | * <p> | ||
35 | * If the meaning of the '<em>Name</em>' attribute isn't clear, | ||
36 | * there really should be more of a description here... | ||
37 | * </p> | ||
38 | * <!-- end-user-doc --> | ||
39 | * @return the value of the '<em>Name</em>' attribute. | ||
40 | * @see #setName(String) | ||
41 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage#getComponentDefinition_Name() | ||
42 | * @model | ||
43 | * @generated | ||
44 | */ | ||
45 | String getName(); | ||
46 | |||
47 | /** | ||
48 | * Sets the value of the '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ComponentDefinition#getName <em>Name</em>}' attribute. | ||
49 | * <!-- begin-user-doc --> | ||
50 | * <!-- end-user-doc --> | ||
51 | * @param value the new value of the '<em>Name</em>' attribute. | ||
52 | * @see #getName() | ||
53 | * @generated | ||
54 | */ | ||
55 | void setName(String value); | ||
56 | |||
57 | /** | ||
58 | * Returns the value of the '<em><b>Input Events</b></em>' containment reference list. | ||
59 | * The list contents are of type {@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.InputEvent}. | ||
60 | * <!-- begin-user-doc --> | ||
61 | * <p> | ||
62 | * If the meaning of the '<em>Input Events</em>' containment reference list isn't clear, | ||
63 | * there really should be more of a description here... | ||
64 | * </p> | ||
65 | * <!-- end-user-doc --> | ||
66 | * @return the value of the '<em>Input Events</em>' containment reference list. | ||
67 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage#getComponentDefinition_InputEvents() | ||
68 | * @model containment="true" | ||
69 | * @generated | ||
70 | */ | ||
71 | EList<InputEvent> getInputEvents(); | ||
72 | |||
73 | /** | ||
74 | * Returns the value of the '<em><b>Output Events</b></em>' reference list. | ||
75 | * The list contents are of type {@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.EventDeclaration}. | ||
76 | * <!-- begin-user-doc --> | ||
77 | * <p> | ||
78 | * If the meaning of the '<em>Output Events</em>' reference list isn't clear, | ||
79 | * there really should be more of a description here... | ||
80 | * </p> | ||
81 | * <!-- end-user-doc --> | ||
82 | * @return the value of the '<em>Output Events</em>' reference list. | ||
83 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage#getComponentDefinition_OutputEvents() | ||
84 | * @model | ||
85 | * @generated | ||
86 | */ | ||
87 | EList<EventDeclaration> getOutputEvents(); | ||
88 | |||
89 | /** | ||
90 | * Returns the value of the '<em><b>Event Definitions</b></em>' containment reference list. | ||
91 | * The list contents are of type {@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.EventDefinition}. | ||
92 | * <!-- begin-user-doc --> | ||
93 | * <p> | ||
94 | * If the meaning of the '<em>Event Definitions</em>' containment reference list isn't clear, | ||
95 | * there really should be more of a description here... | ||
96 | * </p> | ||
97 | * <!-- end-user-doc --> | ||
98 | * @return the value of the '<em>Event Definitions</em>' containment reference list. | ||
99 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage#getComponentDefinition_EventDefinitions() | ||
100 | * @model containment="true" | ||
101 | * @generated | ||
102 | */ | ||
103 | EList<EventDefinition> getEventDefinitions(); | ||
104 | |||
105 | } // ComponentDefinition | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/ComponentInstance.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/ComponentInstance.java new file mode 100644 index 00000000..f9f0f57b --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/ComponentInstance.java | |||
@@ -0,0 +1,51 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage; | ||
5 | |||
6 | |||
7 | /** | ||
8 | * <!-- begin-user-doc --> | ||
9 | * A representation of the model object '<em><b>Component Instance</b></em>'. | ||
10 | * <!-- end-user-doc --> | ||
11 | * | ||
12 | * <p> | ||
13 | * The following features are supported: | ||
14 | * </p> | ||
15 | * <ul> | ||
16 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ComponentInstance#getComponentType <em>Component Type</em>}</li> | ||
17 | * </ul> | ||
18 | * | ||
19 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage#getComponentInstance() | ||
20 | * @model | ||
21 | * @generated | ||
22 | */ | ||
23 | public interface ComponentInstance extends Variable | ||
24 | { | ||
25 | /** | ||
26 | * Returns the value of the '<em><b>Component Type</b></em>' reference. | ||
27 | * <!-- begin-user-doc --> | ||
28 | * <p> | ||
29 | * If the meaning of the '<em>Component Type</em>' reference isn't clear, | ||
30 | * there really should be more of a description here... | ||
31 | * </p> | ||
32 | * <!-- end-user-doc --> | ||
33 | * @return the value of the '<em>Component Type</em>' reference. | ||
34 | * @see #setComponentType(ComponentDefinition) | ||
35 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage#getComponentInstance_ComponentType() | ||
36 | * @model | ||
37 | * @generated | ||
38 | */ | ||
39 | ComponentDefinition getComponentType(); | ||
40 | |||
41 | /** | ||
42 | * Sets the value of the '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ComponentInstance#getComponentType <em>Component Type</em>}' reference. | ||
43 | * <!-- begin-user-doc --> | ||
44 | * <!-- end-user-doc --> | ||
45 | * @param value the new value of the '<em>Component Type</em>' reference. | ||
46 | * @see #getComponentType() | ||
47 | * @generated | ||
48 | */ | ||
49 | void setComponentType(ComponentDefinition value); | ||
50 | |||
51 | } // ComponentInstance | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/EventDeclaration.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/EventDeclaration.java new file mode 100644 index 00000000..c03c117e --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/EventDeclaration.java | |||
@@ -0,0 +1,52 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage; | ||
5 | |||
6 | import org.eclipse.emf.ecore.EObject; | ||
7 | |||
8 | /** | ||
9 | * <!-- begin-user-doc --> | ||
10 | * A representation of the model object '<em><b>Event Declaration</b></em>'. | ||
11 | * <!-- end-user-doc --> | ||
12 | * | ||
13 | * <p> | ||
14 | * The following features are supported: | ||
15 | * </p> | ||
16 | * <ul> | ||
17 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.EventDeclaration#getName <em>Name</em>}</li> | ||
18 | * </ul> | ||
19 | * | ||
20 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage#getEventDeclaration() | ||
21 | * @model | ||
22 | * @generated | ||
23 | */ | ||
24 | public interface EventDeclaration extends EObject | ||
25 | { | ||
26 | /** | ||
27 | * Returns the value of the '<em><b>Name</b></em>' attribute. | ||
28 | * <!-- begin-user-doc --> | ||
29 | * <p> | ||
30 | * If the meaning of the '<em>Name</em>' attribute isn't clear, | ||
31 | * there really should be more of a description here... | ||
32 | * </p> | ||
33 | * <!-- end-user-doc --> | ||
34 | * @return the value of the '<em>Name</em>' attribute. | ||
35 | * @see #setName(String) | ||
36 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage#getEventDeclaration_Name() | ||
37 | * @model | ||
38 | * @generated | ||
39 | */ | ||
40 | String getName(); | ||
41 | |||
42 | /** | ||
43 | * Sets the value of the '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.EventDeclaration#getName <em>Name</em>}' attribute. | ||
44 | * <!-- begin-user-doc --> | ||
45 | * <!-- end-user-doc --> | ||
46 | * @param value the new value of the '<em>Name</em>' attribute. | ||
47 | * @see #getName() | ||
48 | * @generated | ||
49 | */ | ||
50 | void setName(String value); | ||
51 | |||
52 | } // EventDeclaration | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/EventDefinition.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/EventDefinition.java new file mode 100644 index 00000000..0d4f7f95 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/EventDefinition.java | |||
@@ -0,0 +1,19 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage; | ||
5 | |||
6 | |||
7 | /** | ||
8 | * <!-- begin-user-doc --> | ||
9 | * A representation of the model object '<em><b>Event Definition</b></em>'. | ||
10 | * <!-- end-user-doc --> | ||
11 | * | ||
12 | * | ||
13 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage#getEventDefinition() | ||
14 | * @model | ||
15 | * @generated | ||
16 | */ | ||
17 | public interface EventDefinition extends EventDeclaration | ||
18 | { | ||
19 | } // EventDefinition | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/EventReference.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/EventReference.java new file mode 100644 index 00000000..b351b185 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/EventReference.java | |||
@@ -0,0 +1,79 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage; | ||
5 | |||
6 | import org.eclipse.emf.ecore.EObject; | ||
7 | |||
8 | /** | ||
9 | * <!-- begin-user-doc --> | ||
10 | * A representation of the model object '<em><b>Event Reference</b></em>'. | ||
11 | * <!-- end-user-doc --> | ||
12 | * | ||
13 | * <p> | ||
14 | * The following features are supported: | ||
15 | * </p> | ||
16 | * <ul> | ||
17 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.EventReference#getComponent <em>Component</em>}</li> | ||
18 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.EventReference#getEvent <em>Event</em>}</li> | ||
19 | * </ul> | ||
20 | * | ||
21 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage#getEventReference() | ||
22 | * @model | ||
23 | * @generated | ||
24 | */ | ||
25 | public interface EventReference extends EObject | ||
26 | { | ||
27 | /** | ||
28 | * Returns the value of the '<em><b>Component</b></em>' reference. | ||
29 | * <!-- begin-user-doc --> | ||
30 | * <p> | ||
31 | * If the meaning of the '<em>Component</em>' reference isn't clear, | ||
32 | * there really should be more of a description here... | ||
33 | * </p> | ||
34 | * <!-- end-user-doc --> | ||
35 | * @return the value of the '<em>Component</em>' reference. | ||
36 | * @see #setComponent(Variable) | ||
37 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage#getEventReference_Component() | ||
38 | * @model | ||
39 | * @generated | ||
40 | */ | ||
41 | Variable getComponent(); | ||
42 | |||
43 | /** | ||
44 | * Sets the value of the '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.EventReference#getComponent <em>Component</em>}' reference. | ||
45 | * <!-- begin-user-doc --> | ||
46 | * <!-- end-user-doc --> | ||
47 | * @param value the new value of the '<em>Component</em>' reference. | ||
48 | * @see #getComponent() | ||
49 | * @generated | ||
50 | */ | ||
51 | void setComponent(Variable value); | ||
52 | |||
53 | /** | ||
54 | * Returns the value of the '<em><b>Event</b></em>' reference. | ||
55 | * <!-- begin-user-doc --> | ||
56 | * <p> | ||
57 | * If the meaning of the '<em>Event</em>' reference isn't clear, | ||
58 | * there really should be more of a description here... | ||
59 | * </p> | ||
60 | * <!-- end-user-doc --> | ||
61 | * @return the value of the '<em>Event</em>' reference. | ||
62 | * @see #setEvent(EventDeclaration) | ||
63 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage#getEventReference_Event() | ||
64 | * @model | ||
65 | * @generated | ||
66 | */ | ||
67 | EventDeclaration getEvent(); | ||
68 | |||
69 | /** | ||
70 | * Sets the value of the '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.EventReference#getEvent <em>Event</em>}' reference. | ||
71 | * <!-- begin-user-doc --> | ||
72 | * <!-- end-user-doc --> | ||
73 | * @param value the new value of the '<em>Event</em>' reference. | ||
74 | * @see #getEvent() | ||
75 | * @generated | ||
76 | */ | ||
77 | void setEvent(EventDeclaration value); | ||
78 | |||
79 | } // EventReference | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/GateDefinition.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/GateDefinition.java new file mode 100644 index 00000000..3020f2ca --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/GateDefinition.java | |||
@@ -0,0 +1,42 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage; | ||
5 | |||
6 | import org.eclipse.emf.common.util.EList; | ||
7 | |||
8 | /** | ||
9 | * <!-- begin-user-doc --> | ||
10 | * A representation of the model object '<em><b>Gate Definition</b></em>'. | ||
11 | * <!-- end-user-doc --> | ||
12 | * | ||
13 | * <p> | ||
14 | * The following features are supported: | ||
15 | * </p> | ||
16 | * <ul> | ||
17 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.GateDefinition#getInputEvents <em>Input Events</em>}</li> | ||
18 | * </ul> | ||
19 | * | ||
20 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage#getGateDefinition() | ||
21 | * @model | ||
22 | * @generated | ||
23 | */ | ||
24 | public interface GateDefinition extends EventDefinition | ||
25 | { | ||
26 | /** | ||
27 | * Returns the value of the '<em><b>Input Events</b></em>' reference list. | ||
28 | * The list contents are of type {@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.EventDeclaration}. | ||
29 | * <!-- begin-user-doc --> | ||
30 | * <p> | ||
31 | * If the meaning of the '<em>Input Events</em>' reference list isn't clear, | ||
32 | * there really should be more of a description here... | ||
33 | * </p> | ||
34 | * <!-- end-user-doc --> | ||
35 | * @return the value of the '<em>Input Events</em>' reference list. | ||
36 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage#getGateDefinition_InputEvents() | ||
37 | * @model | ||
38 | * @generated | ||
39 | */ | ||
40 | EList<EventDeclaration> getInputEvents(); | ||
41 | |||
42 | } // GateDefinition | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/ImportDeclaration.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/ImportDeclaration.java new file mode 100644 index 00000000..bcb36395 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/ImportDeclaration.java | |||
@@ -0,0 +1,52 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage; | ||
5 | |||
6 | import org.eclipse.emf.ecore.EObject; | ||
7 | |||
8 | /** | ||
9 | * <!-- begin-user-doc --> | ||
10 | * A representation of the model object '<em><b>Import Declaration</b></em>'. | ||
11 | * <!-- end-user-doc --> | ||
12 | * | ||
13 | * <p> | ||
14 | * The following features are supported: | ||
15 | * </p> | ||
16 | * <ul> | ||
17 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ImportDeclaration#getImportedNamespace <em>Imported Namespace</em>}</li> | ||
18 | * </ul> | ||
19 | * | ||
20 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage#getImportDeclaration() | ||
21 | * @model | ||
22 | * @generated | ||
23 | */ | ||
24 | public interface ImportDeclaration extends EObject | ||
25 | { | ||
26 | /** | ||
27 | * Returns the value of the '<em><b>Imported Namespace</b></em>' attribute. | ||
28 | * <!-- begin-user-doc --> | ||
29 | * <p> | ||
30 | * If the meaning of the '<em>Imported Namespace</em>' attribute isn't clear, | ||
31 | * there really should be more of a description here... | ||
32 | * </p> | ||
33 | * <!-- end-user-doc --> | ||
34 | * @return the value of the '<em>Imported Namespace</em>' attribute. | ||
35 | * @see #setImportedNamespace(String) | ||
36 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage#getImportDeclaration_ImportedNamespace() | ||
37 | * @model | ||
38 | * @generated | ||
39 | */ | ||
40 | String getImportedNamespace(); | ||
41 | |||
42 | /** | ||
43 | * Sets the value of the '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ImportDeclaration#getImportedNamespace <em>Imported Namespace</em>}' attribute. | ||
44 | * <!-- begin-user-doc --> | ||
45 | * <!-- end-user-doc --> | ||
46 | * @param value the new value of the '<em>Imported Namespace</em>' attribute. | ||
47 | * @see #getImportedNamespace() | ||
48 | * @generated | ||
49 | */ | ||
50 | void setImportedNamespace(String value); | ||
51 | |||
52 | } // ImportDeclaration | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/InputEvent.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/InputEvent.java new file mode 100644 index 00000000..4269fa10 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/InputEvent.java | |||
@@ -0,0 +1,51 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage; | ||
5 | |||
6 | |||
7 | /** | ||
8 | * <!-- begin-user-doc --> | ||
9 | * A representation of the model object '<em><b>Input Event</b></em>'. | ||
10 | * <!-- end-user-doc --> | ||
11 | * | ||
12 | * <p> | ||
13 | * The following features are supported: | ||
14 | * </p> | ||
15 | * <ul> | ||
16 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.InputEvent#isMultiple <em>Multiple</em>}</li> | ||
17 | * </ul> | ||
18 | * | ||
19 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage#getInputEvent() | ||
20 | * @model | ||
21 | * @generated | ||
22 | */ | ||
23 | public interface InputEvent extends EventDeclaration | ||
24 | { | ||
25 | /** | ||
26 | * Returns the value of the '<em><b>Multiple</b></em>' attribute. | ||
27 | * <!-- begin-user-doc --> | ||
28 | * <p> | ||
29 | * If the meaning of the '<em>Multiple</em>' attribute isn't clear, | ||
30 | * there really should be more of a description here... | ||
31 | * </p> | ||
32 | * <!-- end-user-doc --> | ||
33 | * @return the value of the '<em>Multiple</em>' attribute. | ||
34 | * @see #setMultiple(boolean) | ||
35 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage#getInputEvent_Multiple() | ||
36 | * @model | ||
37 | * @generated | ||
38 | */ | ||
39 | boolean isMultiple(); | ||
40 | |||
41 | /** | ||
42 | * Sets the value of the '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.InputEvent#isMultiple <em>Multiple</em>}' attribute. | ||
43 | * <!-- begin-user-doc --> | ||
44 | * <!-- end-user-doc --> | ||
45 | * @param value the new value of the '<em>Multiple</em>' attribute. | ||
46 | * @see #isMultiple() | ||
47 | * @generated | ||
48 | */ | ||
49 | void setMultiple(boolean value); | ||
50 | |||
51 | } // InputEvent | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/LookupDefinition.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/LookupDefinition.java new file mode 100644 index 00000000..f0ad3519 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/LookupDefinition.java | |||
@@ -0,0 +1,69 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage; | ||
5 | |||
6 | import org.eclipse.emf.common.util.EList; | ||
7 | |||
8 | /** | ||
9 | * <!-- begin-user-doc --> | ||
10 | * A representation of the model object '<em><b>Lookup Definition</b></em>'. | ||
11 | * <!-- end-user-doc --> | ||
12 | * | ||
13 | * <p> | ||
14 | * The following features are supported: | ||
15 | * </p> | ||
16 | * <ul> | ||
17 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.LookupDefinition#getMapping <em>Mapping</em>}</li> | ||
18 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.LookupDefinition#getArguments <em>Arguments</em>}</li> | ||
19 | * </ul> | ||
20 | * | ||
21 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage#getLookupDefinition() | ||
22 | * @model | ||
23 | * @generated | ||
24 | */ | ||
25 | public interface LookupDefinition extends Variable | ||
26 | { | ||
27 | /** | ||
28 | * Returns the value of the '<em><b>Mapping</b></em>' reference. | ||
29 | * <!-- begin-user-doc --> | ||
30 | * <p> | ||
31 | * If the meaning of the '<em>Mapping</em>' reference isn't clear, | ||
32 | * there really should be more of a description here... | ||
33 | * </p> | ||
34 | * <!-- end-user-doc --> | ||
35 | * @return the value of the '<em>Mapping</em>' reference. | ||
36 | * @see #setMapping(MappingDefinition) | ||
37 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage#getLookupDefinition_Mapping() | ||
38 | * @model | ||
39 | * @generated | ||
40 | */ | ||
41 | MappingDefinition getMapping(); | ||
42 | |||
43 | /** | ||
44 | * Sets the value of the '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.LookupDefinition#getMapping <em>Mapping</em>}' reference. | ||
45 | * <!-- begin-user-doc --> | ||
46 | * <!-- end-user-doc --> | ||
47 | * @param value the new value of the '<em>Mapping</em>' reference. | ||
48 | * @see #getMapping() | ||
49 | * @generated | ||
50 | */ | ||
51 | void setMapping(MappingDefinition value); | ||
52 | |||
53 | /** | ||
54 | * Returns the value of the '<em><b>Arguments</b></em>' reference list. | ||
55 | * The list contents are of type {@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.MappingParameter}. | ||
56 | * <!-- begin-user-doc --> | ||
57 | * <p> | ||
58 | * If the meaning of the '<em>Arguments</em>' reference list isn't clear, | ||
59 | * there really should be more of a description here... | ||
60 | * </p> | ||
61 | * <!-- end-user-doc --> | ||
62 | * @return the value of the '<em>Arguments</em>' reference list. | ||
63 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage#getLookupDefinition_Arguments() | ||
64 | * @model | ||
65 | * @generated | ||
66 | */ | ||
67 | EList<MappingParameter> getArguments(); | ||
68 | |||
69 | } // LookupDefinition | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/MappingDefinition.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/MappingDefinition.java new file mode 100644 index 00000000..14c539b4 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/MappingDefinition.java | |||
@@ -0,0 +1,161 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage; | ||
5 | |||
6 | import org.eclipse.emf.common.util.EList; | ||
7 | |||
8 | import org.eclipse.emf.ecore.EObject; | ||
9 | |||
10 | import org.eclipse.viatra.query.patternlanguage.emf.vql.Pattern; | ||
11 | |||
12 | /** | ||
13 | * <!-- begin-user-doc --> | ||
14 | * A representation of the model object '<em><b>Mapping Definition</b></em>'. | ||
15 | * <!-- end-user-doc --> | ||
16 | * | ||
17 | * <p> | ||
18 | * The following features are supported: | ||
19 | * </p> | ||
20 | * <ul> | ||
21 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.MappingDefinition#isTopLevel <em>Top Level</em>}</li> | ||
22 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.MappingDefinition#getPattern <em>Pattern</em>}</li> | ||
23 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.MappingDefinition#getParameters <em>Parameters</em>}</li> | ||
24 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.MappingDefinition#getComponentInstance <em>Component Instance</em>}</li> | ||
25 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.MappingDefinition#getLookupDefinitions <em>Lookup Definitions</em>}</li> | ||
26 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.MappingDefinition#getAssignments <em>Assignments</em>}</li> | ||
27 | * </ul> | ||
28 | * | ||
29 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage#getMappingDefinition() | ||
30 | * @model | ||
31 | * @generated | ||
32 | */ | ||
33 | public interface MappingDefinition extends EObject | ||
34 | { | ||
35 | /** | ||
36 | * Returns the value of the '<em><b>Top Level</b></em>' attribute. | ||
37 | * <!-- begin-user-doc --> | ||
38 | * <p> | ||
39 | * If the meaning of the '<em>Top Level</em>' attribute isn't clear, | ||
40 | * there really should be more of a description here... | ||
41 | * </p> | ||
42 | * <!-- end-user-doc --> | ||
43 | * @return the value of the '<em>Top Level</em>' attribute. | ||
44 | * @see #setTopLevel(boolean) | ||
45 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage#getMappingDefinition_TopLevel() | ||
46 | * @model | ||
47 | * @generated | ||
48 | */ | ||
49 | boolean isTopLevel(); | ||
50 | |||
51 | /** | ||
52 | * Sets the value of the '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.MappingDefinition#isTopLevel <em>Top Level</em>}' attribute. | ||
53 | * <!-- begin-user-doc --> | ||
54 | * <!-- end-user-doc --> | ||
55 | * @param value the new value of the '<em>Top Level</em>' attribute. | ||
56 | * @see #isTopLevel() | ||
57 | * @generated | ||
58 | */ | ||
59 | void setTopLevel(boolean value); | ||
60 | |||
61 | /** | ||
62 | * Returns the value of the '<em><b>Pattern</b></em>' reference. | ||
63 | * <!-- begin-user-doc --> | ||
64 | * <p> | ||
65 | * If the meaning of the '<em>Pattern</em>' reference isn't clear, | ||
66 | * there really should be more of a description here... | ||
67 | * </p> | ||
68 | * <!-- end-user-doc --> | ||
69 | * @return the value of the '<em>Pattern</em>' reference. | ||
70 | * @see #setPattern(Pattern) | ||
71 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage#getMappingDefinition_Pattern() | ||
72 | * @model | ||
73 | * @generated | ||
74 | */ | ||
75 | Pattern getPattern(); | ||
76 | |||
77 | /** | ||
78 | * Sets the value of the '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.MappingDefinition#getPattern <em>Pattern</em>}' reference. | ||
79 | * <!-- begin-user-doc --> | ||
80 | * <!-- end-user-doc --> | ||
81 | * @param value the new value of the '<em>Pattern</em>' reference. | ||
82 | * @see #getPattern() | ||
83 | * @generated | ||
84 | */ | ||
85 | void setPattern(Pattern value); | ||
86 | |||
87 | /** | ||
88 | * Returns the value of the '<em><b>Parameters</b></em>' containment reference list. | ||
89 | * The list contents are of type {@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.MappingParameter}. | ||
90 | * <!-- begin-user-doc --> | ||
91 | * <p> | ||
92 | * If the meaning of the '<em>Parameters</em>' containment reference list isn't clear, | ||
93 | * there really should be more of a description here... | ||
94 | * </p> | ||
95 | * <!-- end-user-doc --> | ||
96 | * @return the value of the '<em>Parameters</em>' containment reference list. | ||
97 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage#getMappingDefinition_Parameters() | ||
98 | * @model containment="true" | ||
99 | * @generated | ||
100 | */ | ||
101 | EList<MappingParameter> getParameters(); | ||
102 | |||
103 | /** | ||
104 | * Returns the value of the '<em><b>Component Instance</b></em>' containment reference. | ||
105 | * <!-- begin-user-doc --> | ||
106 | * <p> | ||
107 | * If the meaning of the '<em>Component Instance</em>' containment reference isn't clear, | ||
108 | * there really should be more of a description here... | ||
109 | * </p> | ||
110 | * <!-- end-user-doc --> | ||
111 | * @return the value of the '<em>Component Instance</em>' containment reference. | ||
112 | * @see #setComponentInstance(ComponentInstance) | ||
113 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage#getMappingDefinition_ComponentInstance() | ||
114 | * @model containment="true" | ||
115 | * @generated | ||
116 | */ | ||
117 | ComponentInstance getComponentInstance(); | ||
118 | |||
119 | /** | ||
120 | * Sets the value of the '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.MappingDefinition#getComponentInstance <em>Component Instance</em>}' containment reference. | ||
121 | * <!-- begin-user-doc --> | ||
122 | * <!-- end-user-doc --> | ||
123 | * @param value the new value of the '<em>Component Instance</em>' containment reference. | ||
124 | * @see #getComponentInstance() | ||
125 | * @generated | ||
126 | */ | ||
127 | void setComponentInstance(ComponentInstance value); | ||
128 | |||
129 | /** | ||
130 | * Returns the value of the '<em><b>Lookup Definitions</b></em>' containment reference list. | ||
131 | * The list contents are of type {@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.LookupDefinition}. | ||
132 | * <!-- begin-user-doc --> | ||
133 | * <p> | ||
134 | * If the meaning of the '<em>Lookup Definitions</em>' containment reference list isn't clear, | ||
135 | * there really should be more of a description here... | ||
136 | * </p> | ||
137 | * <!-- end-user-doc --> | ||
138 | * @return the value of the '<em>Lookup Definitions</em>' containment reference list. | ||
139 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage#getMappingDefinition_LookupDefinitions() | ||
140 | * @model containment="true" | ||
141 | * @generated | ||
142 | */ | ||
143 | EList<LookupDefinition> getLookupDefinitions(); | ||
144 | |||
145 | /** | ||
146 | * Returns the value of the '<em><b>Assignments</b></em>' containment reference list. | ||
147 | * The list contents are of type {@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.Assignment}. | ||
148 | * <!-- begin-user-doc --> | ||
149 | * <p> | ||
150 | * If the meaning of the '<em>Assignments</em>' containment reference list isn't clear, | ||
151 | * there really should be more of a description here... | ||
152 | * </p> | ||
153 | * <!-- end-user-doc --> | ||
154 | * @return the value of the '<em>Assignments</em>' containment reference list. | ||
155 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage#getMappingDefinition_Assignments() | ||
156 | * @model containment="true" | ||
157 | * @generated | ||
158 | */ | ||
159 | EList<Assignment> getAssignments(); | ||
160 | |||
161 | } // MappingDefinition | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/MappingParameter.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/MappingParameter.java new file mode 100644 index 00000000..5fc3c006 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/MappingParameter.java | |||
@@ -0,0 +1,52 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage; | ||
5 | |||
6 | import org.eclipse.emf.ecore.EObject; | ||
7 | |||
8 | /** | ||
9 | * <!-- begin-user-doc --> | ||
10 | * A representation of the model object '<em><b>Mapping Parameter</b></em>'. | ||
11 | * <!-- end-user-doc --> | ||
12 | * | ||
13 | * <p> | ||
14 | * The following features are supported: | ||
15 | * </p> | ||
16 | * <ul> | ||
17 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.MappingParameter#getName <em>Name</em>}</li> | ||
18 | * </ul> | ||
19 | * | ||
20 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage#getMappingParameter() | ||
21 | * @model | ||
22 | * @generated | ||
23 | */ | ||
24 | public interface MappingParameter extends EObject | ||
25 | { | ||
26 | /** | ||
27 | * Returns the value of the '<em><b>Name</b></em>' attribute. | ||
28 | * <!-- begin-user-doc --> | ||
29 | * <p> | ||
30 | * If the meaning of the '<em>Name</em>' attribute isn't clear, | ||
31 | * there really should be more of a description here... | ||
32 | * </p> | ||
33 | * <!-- end-user-doc --> | ||
34 | * @return the value of the '<em>Name</em>' attribute. | ||
35 | * @see #setName(String) | ||
36 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage#getMappingParameter_Name() | ||
37 | * @model | ||
38 | * @generated | ||
39 | */ | ||
40 | String getName(); | ||
41 | |||
42 | /** | ||
43 | * Sets the value of the '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.MappingParameter#getName <em>Name</em>}' attribute. | ||
44 | * <!-- begin-user-doc --> | ||
45 | * <!-- end-user-doc --> | ||
46 | * @param value the new value of the '<em>Name</em>' attribute. | ||
47 | * @see #getName() | ||
48 | * @generated | ||
49 | */ | ||
50 | void setName(String value); | ||
51 | |||
52 | } // MappingParameter | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/OrGate.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/OrGate.java new file mode 100644 index 00000000..44a2bc07 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/OrGate.java | |||
@@ -0,0 +1,19 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage; | ||
5 | |||
6 | |||
7 | /** | ||
8 | * <!-- begin-user-doc --> | ||
9 | * A representation of the model object '<em><b>Or Gate</b></em>'. | ||
10 | * <!-- end-user-doc --> | ||
11 | * | ||
12 | * | ||
13 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage#getOrGate() | ||
14 | * @model | ||
15 | * @generated | ||
16 | */ | ||
17 | public interface OrGate extends GateDefinition | ||
18 | { | ||
19 | } // OrGate | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/TransformationDefinition.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/TransformationDefinition.java new file mode 100644 index 00000000..1412e725 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/TransformationDefinition.java | |||
@@ -0,0 +1,71 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage; | ||
5 | |||
6 | import org.eclipse.emf.common.util.EList; | ||
7 | |||
8 | import org.eclipse.emf.ecore.EObject; | ||
9 | |||
10 | /** | ||
11 | * <!-- begin-user-doc --> | ||
12 | * A representation of the model object '<em><b>Transformation Definition</b></em>'. | ||
13 | * <!-- end-user-doc --> | ||
14 | * | ||
15 | * <p> | ||
16 | * The following features are supported: | ||
17 | * </p> | ||
18 | * <ul> | ||
19 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.TransformationDefinition#getName <em>Name</em>}</li> | ||
20 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.TransformationDefinition#getMappingDefinitions <em>Mapping Definitions</em>}</li> | ||
21 | * </ul> | ||
22 | * | ||
23 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage#getTransformationDefinition() | ||
24 | * @model | ||
25 | * @generated | ||
26 | */ | ||
27 | public interface TransformationDefinition extends EObject | ||
28 | { | ||
29 | /** | ||
30 | * Returns the value of the '<em><b>Name</b></em>' attribute. | ||
31 | * <!-- begin-user-doc --> | ||
32 | * <p> | ||
33 | * If the meaning of the '<em>Name</em>' attribute isn't clear, | ||
34 | * there really should be more of a description here... | ||
35 | * </p> | ||
36 | * <!-- end-user-doc --> | ||
37 | * @return the value of the '<em>Name</em>' attribute. | ||
38 | * @see #setName(String) | ||
39 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage#getTransformationDefinition_Name() | ||
40 | * @model | ||
41 | * @generated | ||
42 | */ | ||
43 | String getName(); | ||
44 | |||
45 | /** | ||
46 | * Sets the value of the '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.TransformationDefinition#getName <em>Name</em>}' attribute. | ||
47 | * <!-- begin-user-doc --> | ||
48 | * <!-- end-user-doc --> | ||
49 | * @param value the new value of the '<em>Name</em>' attribute. | ||
50 | * @see #getName() | ||
51 | * @generated | ||
52 | */ | ||
53 | void setName(String value); | ||
54 | |||
55 | /** | ||
56 | * Returns the value of the '<em><b>Mapping Definitions</b></em>' containment reference list. | ||
57 | * The list contents are of type {@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.MappingDefinition}. | ||
58 | * <!-- begin-user-doc --> | ||
59 | * <p> | ||
60 | * If the meaning of the '<em>Mapping Definitions</em>' containment reference list isn't clear, | ||
61 | * there really should be more of a description here... | ||
62 | * </p> | ||
63 | * <!-- end-user-doc --> | ||
64 | * @return the value of the '<em>Mapping Definitions</em>' containment reference list. | ||
65 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage#getTransformationDefinition_MappingDefinitions() | ||
66 | * @model containment="true" | ||
67 | * @generated | ||
68 | */ | ||
69 | EList<MappingDefinition> getMappingDefinitions(); | ||
70 | |||
71 | } // TransformationDefinition | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/Variable.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/Variable.java new file mode 100644 index 00000000..d49749da --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/Variable.java | |||
@@ -0,0 +1,52 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage; | ||
5 | |||
6 | import org.eclipse.emf.ecore.EObject; | ||
7 | |||
8 | /** | ||
9 | * <!-- begin-user-doc --> | ||
10 | * A representation of the model object '<em><b>Variable</b></em>'. | ||
11 | * <!-- end-user-doc --> | ||
12 | * | ||
13 | * <p> | ||
14 | * The following features are supported: | ||
15 | * </p> | ||
16 | * <ul> | ||
17 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.Variable#getName <em>Name</em>}</li> | ||
18 | * </ul> | ||
19 | * | ||
20 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage#getVariable() | ||
21 | * @model | ||
22 | * @generated | ||
23 | */ | ||
24 | public interface Variable extends EObject | ||
25 | { | ||
26 | /** | ||
27 | * Returns the value of the '<em><b>Name</b></em>' attribute. | ||
28 | * <!-- begin-user-doc --> | ||
29 | * <p> | ||
30 | * If the meaning of the '<em>Name</em>' attribute isn't clear, | ||
31 | * there really should be more of a description here... | ||
32 | * </p> | ||
33 | * <!-- end-user-doc --> | ||
34 | * @return the value of the '<em>Name</em>' attribute. | ||
35 | * @see #setName(String) | ||
36 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage#getVariable_Name() | ||
37 | * @model | ||
38 | * @generated | ||
39 | */ | ||
40 | String getName(); | ||
41 | |||
42 | /** | ||
43 | * Sets the value of the '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.Variable#getName <em>Name</em>}' attribute. | ||
44 | * <!-- begin-user-doc --> | ||
45 | * <!-- end-user-doc --> | ||
46 | * @param value the new value of the '<em>Name</em>' attribute. | ||
47 | * @see #getName() | ||
48 | * @generated | ||
49 | */ | ||
50 | void setName(String value); | ||
51 | |||
52 | } // Variable | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/AndGateImpl.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/AndGateImpl.java new file mode 100644 index 00000000..d38a9fcd --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/AndGateImpl.java | |||
@@ -0,0 +1,41 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl; | ||
5 | |||
6 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.AndGate; | ||
7 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage; | ||
8 | |||
9 | import org.eclipse.emf.ecore.EClass; | ||
10 | |||
11 | /** | ||
12 | * <!-- begin-user-doc --> | ||
13 | * An implementation of the model object '<em><b>And Gate</b></em>'. | ||
14 | * <!-- end-user-doc --> | ||
15 | * | ||
16 | * @generated | ||
17 | */ | ||
18 | public class AndGateImpl extends GateDefinitionImpl implements AndGate | ||
19 | { | ||
20 | /** | ||
21 | * <!-- begin-user-doc --> | ||
22 | * <!-- end-user-doc --> | ||
23 | * @generated | ||
24 | */ | ||
25 | protected AndGateImpl() | ||
26 | { | ||
27 | super(); | ||
28 | } | ||
29 | |||
30 | /** | ||
31 | * <!-- begin-user-doc --> | ||
32 | * <!-- end-user-doc --> | ||
33 | * @generated | ||
34 | */ | ||
35 | @Override | ||
36 | protected EClass eStaticClass() | ||
37 | { | ||
38 | return CftLanguagePackage.Literals.AND_GATE; | ||
39 | } | ||
40 | |||
41 | } //AndGateImpl | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/AssignmentImpl.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/AssignmentImpl.java new file mode 100644 index 00000000..0b37cdbb --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/AssignmentImpl.java | |||
@@ -0,0 +1,343 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl; | ||
5 | |||
6 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.Assignment; | ||
7 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage; | ||
8 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.EventReference; | ||
9 | |||
10 | import org.eclipse.emf.common.notify.Notification; | ||
11 | import org.eclipse.emf.common.notify.NotificationChain; | ||
12 | |||
13 | import org.eclipse.emf.ecore.EClass; | ||
14 | import org.eclipse.emf.ecore.InternalEObject; | ||
15 | |||
16 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
17 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; | ||
18 | |||
19 | /** | ||
20 | * <!-- begin-user-doc --> | ||
21 | * An implementation of the model object '<em><b>Assignment</b></em>'. | ||
22 | * <!-- end-user-doc --> | ||
23 | * <p> | ||
24 | * The following features are implemented: | ||
25 | * </p> | ||
26 | * <ul> | ||
27 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.AssignmentImpl#getInput <em>Input</em>}</li> | ||
28 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.AssignmentImpl#isMultiple <em>Multiple</em>}</li> | ||
29 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.AssignmentImpl#getOutput <em>Output</em>}</li> | ||
30 | * </ul> | ||
31 | * | ||
32 | * @generated | ||
33 | */ | ||
34 | public class AssignmentImpl extends MinimalEObjectImpl.Container implements Assignment | ||
35 | { | ||
36 | /** | ||
37 | * The cached value of the '{@link #getInput() <em>Input</em>}' containment reference. | ||
38 | * <!-- begin-user-doc --> | ||
39 | * <!-- end-user-doc --> | ||
40 | * @see #getInput() | ||
41 | * @generated | ||
42 | * @ordered | ||
43 | */ | ||
44 | protected EventReference input; | ||
45 | |||
46 | /** | ||
47 | * The default value of the '{@link #isMultiple() <em>Multiple</em>}' attribute. | ||
48 | * <!-- begin-user-doc --> | ||
49 | * <!-- end-user-doc --> | ||
50 | * @see #isMultiple() | ||
51 | * @generated | ||
52 | * @ordered | ||
53 | */ | ||
54 | protected static final boolean MULTIPLE_EDEFAULT = false; | ||
55 | |||
56 | /** | ||
57 | * The cached value of the '{@link #isMultiple() <em>Multiple</em>}' attribute. | ||
58 | * <!-- begin-user-doc --> | ||
59 | * <!-- end-user-doc --> | ||
60 | * @see #isMultiple() | ||
61 | * @generated | ||
62 | * @ordered | ||
63 | */ | ||
64 | protected boolean multiple = MULTIPLE_EDEFAULT; | ||
65 | |||
66 | /** | ||
67 | * The cached value of the '{@link #getOutput() <em>Output</em>}' containment reference. | ||
68 | * <!-- begin-user-doc --> | ||
69 | * <!-- end-user-doc --> | ||
70 | * @see #getOutput() | ||
71 | * @generated | ||
72 | * @ordered | ||
73 | */ | ||
74 | protected EventReference output; | ||
75 | |||
76 | /** | ||
77 | * <!-- begin-user-doc --> | ||
78 | * <!-- end-user-doc --> | ||
79 | * @generated | ||
80 | */ | ||
81 | protected AssignmentImpl() | ||
82 | { | ||
83 | super(); | ||
84 | } | ||
85 | |||
86 | /** | ||
87 | * <!-- begin-user-doc --> | ||
88 | * <!-- end-user-doc --> | ||
89 | * @generated | ||
90 | */ | ||
91 | @Override | ||
92 | protected EClass eStaticClass() | ||
93 | { | ||
94 | return CftLanguagePackage.Literals.ASSIGNMENT; | ||
95 | } | ||
96 | |||
97 | /** | ||
98 | * <!-- begin-user-doc --> | ||
99 | * <!-- end-user-doc --> | ||
100 | * @generated | ||
101 | */ | ||
102 | @Override | ||
103 | public EventReference getInput() | ||
104 | { | ||
105 | return input; | ||
106 | } | ||
107 | |||
108 | /** | ||
109 | * <!-- begin-user-doc --> | ||
110 | * <!-- end-user-doc --> | ||
111 | * @generated | ||
112 | */ | ||
113 | public NotificationChain basicSetInput(EventReference newInput, NotificationChain msgs) | ||
114 | { | ||
115 | EventReference oldInput = input; | ||
116 | input = newInput; | ||
117 | if (eNotificationRequired()) | ||
118 | { | ||
119 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, CftLanguagePackage.ASSIGNMENT__INPUT, oldInput, newInput); | ||
120 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
121 | } | ||
122 | return msgs; | ||
123 | } | ||
124 | |||
125 | /** | ||
126 | * <!-- begin-user-doc --> | ||
127 | * <!-- end-user-doc --> | ||
128 | * @generated | ||
129 | */ | ||
130 | @Override | ||
131 | public void setInput(EventReference newInput) | ||
132 | { | ||
133 | if (newInput != input) | ||
134 | { | ||
135 | NotificationChain msgs = null; | ||
136 | if (input != null) | ||
137 | msgs = ((InternalEObject)input).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - CftLanguagePackage.ASSIGNMENT__INPUT, null, msgs); | ||
138 | if (newInput != null) | ||
139 | msgs = ((InternalEObject)newInput).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - CftLanguagePackage.ASSIGNMENT__INPUT, null, msgs); | ||
140 | msgs = basicSetInput(newInput, msgs); | ||
141 | if (msgs != null) msgs.dispatch(); | ||
142 | } | ||
143 | else if (eNotificationRequired()) | ||
144 | eNotify(new ENotificationImpl(this, Notification.SET, CftLanguagePackage.ASSIGNMENT__INPUT, newInput, newInput)); | ||
145 | } | ||
146 | |||
147 | /** | ||
148 | * <!-- begin-user-doc --> | ||
149 | * <!-- end-user-doc --> | ||
150 | * @generated | ||
151 | */ | ||
152 | @Override | ||
153 | public boolean isMultiple() | ||
154 | { | ||
155 | return multiple; | ||
156 | } | ||
157 | |||
158 | /** | ||
159 | * <!-- begin-user-doc --> | ||
160 | * <!-- end-user-doc --> | ||
161 | * @generated | ||
162 | */ | ||
163 | @Override | ||
164 | public void setMultiple(boolean newMultiple) | ||
165 | { | ||
166 | boolean oldMultiple = multiple; | ||
167 | multiple = newMultiple; | ||
168 | if (eNotificationRequired()) | ||
169 | eNotify(new ENotificationImpl(this, Notification.SET, CftLanguagePackage.ASSIGNMENT__MULTIPLE, oldMultiple, multiple)); | ||
170 | } | ||
171 | |||
172 | /** | ||
173 | * <!-- begin-user-doc --> | ||
174 | * <!-- end-user-doc --> | ||
175 | * @generated | ||
176 | */ | ||
177 | @Override | ||
178 | public EventReference getOutput() | ||
179 | { | ||
180 | return output; | ||
181 | } | ||
182 | |||
183 | /** | ||
184 | * <!-- begin-user-doc --> | ||
185 | * <!-- end-user-doc --> | ||
186 | * @generated | ||
187 | */ | ||
188 | public NotificationChain basicSetOutput(EventReference newOutput, NotificationChain msgs) | ||
189 | { | ||
190 | EventReference oldOutput = output; | ||
191 | output = newOutput; | ||
192 | if (eNotificationRequired()) | ||
193 | { | ||
194 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, CftLanguagePackage.ASSIGNMENT__OUTPUT, oldOutput, newOutput); | ||
195 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
196 | } | ||
197 | return msgs; | ||
198 | } | ||
199 | |||
200 | /** | ||
201 | * <!-- begin-user-doc --> | ||
202 | * <!-- end-user-doc --> | ||
203 | * @generated | ||
204 | */ | ||
205 | @Override | ||
206 | public void setOutput(EventReference newOutput) | ||
207 | { | ||
208 | if (newOutput != output) | ||
209 | { | ||
210 | NotificationChain msgs = null; | ||
211 | if (output != null) | ||
212 | msgs = ((InternalEObject)output).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - CftLanguagePackage.ASSIGNMENT__OUTPUT, null, msgs); | ||
213 | if (newOutput != null) | ||
214 | msgs = ((InternalEObject)newOutput).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - CftLanguagePackage.ASSIGNMENT__OUTPUT, null, msgs); | ||
215 | msgs = basicSetOutput(newOutput, msgs); | ||
216 | if (msgs != null) msgs.dispatch(); | ||
217 | } | ||
218 | else if (eNotificationRequired()) | ||
219 | eNotify(new ENotificationImpl(this, Notification.SET, CftLanguagePackage.ASSIGNMENT__OUTPUT, newOutput, newOutput)); | ||
220 | } | ||
221 | |||
222 | /** | ||
223 | * <!-- begin-user-doc --> | ||
224 | * <!-- end-user-doc --> | ||
225 | * @generated | ||
226 | */ | ||
227 | @Override | ||
228 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) | ||
229 | { | ||
230 | switch (featureID) | ||
231 | { | ||
232 | case CftLanguagePackage.ASSIGNMENT__INPUT: | ||
233 | return basicSetInput(null, msgs); | ||
234 | case CftLanguagePackage.ASSIGNMENT__OUTPUT: | ||
235 | return basicSetOutput(null, msgs); | ||
236 | } | ||
237 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
238 | } | ||
239 | |||
240 | /** | ||
241 | * <!-- begin-user-doc --> | ||
242 | * <!-- end-user-doc --> | ||
243 | * @generated | ||
244 | */ | ||
245 | @Override | ||
246 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
247 | { | ||
248 | switch (featureID) | ||
249 | { | ||
250 | case CftLanguagePackage.ASSIGNMENT__INPUT: | ||
251 | return getInput(); | ||
252 | case CftLanguagePackage.ASSIGNMENT__MULTIPLE: | ||
253 | return isMultiple(); | ||
254 | case CftLanguagePackage.ASSIGNMENT__OUTPUT: | ||
255 | return getOutput(); | ||
256 | } | ||
257 | return super.eGet(featureID, resolve, coreType); | ||
258 | } | ||
259 | |||
260 | /** | ||
261 | * <!-- begin-user-doc --> | ||
262 | * <!-- end-user-doc --> | ||
263 | * @generated | ||
264 | */ | ||
265 | @Override | ||
266 | public void eSet(int featureID, Object newValue) | ||
267 | { | ||
268 | switch (featureID) | ||
269 | { | ||
270 | case CftLanguagePackage.ASSIGNMENT__INPUT: | ||
271 | setInput((EventReference)newValue); | ||
272 | return; | ||
273 | case CftLanguagePackage.ASSIGNMENT__MULTIPLE: | ||
274 | setMultiple((Boolean)newValue); | ||
275 | return; | ||
276 | case CftLanguagePackage.ASSIGNMENT__OUTPUT: | ||
277 | setOutput((EventReference)newValue); | ||
278 | return; | ||
279 | } | ||
280 | super.eSet(featureID, newValue); | ||
281 | } | ||
282 | |||
283 | /** | ||
284 | * <!-- begin-user-doc --> | ||
285 | * <!-- end-user-doc --> | ||
286 | * @generated | ||
287 | */ | ||
288 | @Override | ||
289 | public void eUnset(int featureID) | ||
290 | { | ||
291 | switch (featureID) | ||
292 | { | ||
293 | case CftLanguagePackage.ASSIGNMENT__INPUT: | ||
294 | setInput((EventReference)null); | ||
295 | return; | ||
296 | case CftLanguagePackage.ASSIGNMENT__MULTIPLE: | ||
297 | setMultiple(MULTIPLE_EDEFAULT); | ||
298 | return; | ||
299 | case CftLanguagePackage.ASSIGNMENT__OUTPUT: | ||
300 | setOutput((EventReference)null); | ||
301 | return; | ||
302 | } | ||
303 | super.eUnset(featureID); | ||
304 | } | ||
305 | |||
306 | /** | ||
307 | * <!-- begin-user-doc --> | ||
308 | * <!-- end-user-doc --> | ||
309 | * @generated | ||
310 | */ | ||
311 | @Override | ||
312 | public boolean eIsSet(int featureID) | ||
313 | { | ||
314 | switch (featureID) | ||
315 | { | ||
316 | case CftLanguagePackage.ASSIGNMENT__INPUT: | ||
317 | return input != null; | ||
318 | case CftLanguagePackage.ASSIGNMENT__MULTIPLE: | ||
319 | return multiple != MULTIPLE_EDEFAULT; | ||
320 | case CftLanguagePackage.ASSIGNMENT__OUTPUT: | ||
321 | return output != null; | ||
322 | } | ||
323 | return super.eIsSet(featureID); | ||
324 | } | ||
325 | |||
326 | /** | ||
327 | * <!-- begin-user-doc --> | ||
328 | * <!-- end-user-doc --> | ||
329 | * @generated | ||
330 | */ | ||
331 | @Override | ||
332 | public String toString() | ||
333 | { | ||
334 | if (eIsProxy()) return super.toString(); | ||
335 | |||
336 | StringBuilder result = new StringBuilder(super.toString()); | ||
337 | result.append(" (multiple: "); | ||
338 | result.append(multiple); | ||
339 | result.append(')'); | ||
340 | return result.toString(); | ||
341 | } | ||
342 | |||
343 | } //AssignmentImpl | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/BasicEventDefinitionImpl.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/BasicEventDefinitionImpl.java new file mode 100644 index 00000000..34c865c3 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/BasicEventDefinitionImpl.java | |||
@@ -0,0 +1,179 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl; | ||
5 | |||
6 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.BasicEventDefinition; | ||
7 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage; | ||
8 | |||
9 | import org.eclipse.emf.common.notify.Notification; | ||
10 | |||
11 | import org.eclipse.emf.ecore.EClass; | ||
12 | |||
13 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
14 | |||
15 | /** | ||
16 | * <!-- begin-user-doc --> | ||
17 | * An implementation of the model object '<em><b>Basic Event Definition</b></em>'. | ||
18 | * <!-- end-user-doc --> | ||
19 | * <p> | ||
20 | * The following features are implemented: | ||
21 | * </p> | ||
22 | * <ul> | ||
23 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.BasicEventDefinitionImpl#getRate <em>Rate</em>}</li> | ||
24 | * </ul> | ||
25 | * | ||
26 | * @generated | ||
27 | */ | ||
28 | public class BasicEventDefinitionImpl extends EventDefinitionImpl implements BasicEventDefinition | ||
29 | { | ||
30 | /** | ||
31 | * The default value of the '{@link #getRate() <em>Rate</em>}' attribute. | ||
32 | * <!-- begin-user-doc --> | ||
33 | * <!-- end-user-doc --> | ||
34 | * @see #getRate() | ||
35 | * @generated | ||
36 | * @ordered | ||
37 | */ | ||
38 | protected static final double RATE_EDEFAULT = 0.0; | ||
39 | |||
40 | /** | ||
41 | * The cached value of the '{@link #getRate() <em>Rate</em>}' attribute. | ||
42 | * <!-- begin-user-doc --> | ||
43 | * <!-- end-user-doc --> | ||
44 | * @see #getRate() | ||
45 | * @generated | ||
46 | * @ordered | ||
47 | */ | ||
48 | protected double rate = RATE_EDEFAULT; | ||
49 | |||
50 | /** | ||
51 | * <!-- begin-user-doc --> | ||
52 | * <!-- end-user-doc --> | ||
53 | * @generated | ||
54 | */ | ||
55 | protected BasicEventDefinitionImpl() | ||
56 | { | ||
57 | super(); | ||
58 | } | ||
59 | |||
60 | /** | ||
61 | * <!-- begin-user-doc --> | ||
62 | * <!-- end-user-doc --> | ||
63 | * @generated | ||
64 | */ | ||
65 | @Override | ||
66 | protected EClass eStaticClass() | ||
67 | { | ||
68 | return CftLanguagePackage.Literals.BASIC_EVENT_DEFINITION; | ||
69 | } | ||
70 | |||
71 | /** | ||
72 | * <!-- begin-user-doc --> | ||
73 | * <!-- end-user-doc --> | ||
74 | * @generated | ||
75 | */ | ||
76 | @Override | ||
77 | public double getRate() | ||
78 | { | ||
79 | return rate; | ||
80 | } | ||
81 | |||
82 | /** | ||
83 | * <!-- begin-user-doc --> | ||
84 | * <!-- end-user-doc --> | ||
85 | * @generated | ||
86 | */ | ||
87 | @Override | ||
88 | public void setRate(double newRate) | ||
89 | { | ||
90 | double oldRate = rate; | ||
91 | rate = newRate; | ||
92 | if (eNotificationRequired()) | ||
93 | eNotify(new ENotificationImpl(this, Notification.SET, CftLanguagePackage.BASIC_EVENT_DEFINITION__RATE, oldRate, rate)); | ||
94 | } | ||
95 | |||
96 | /** | ||
97 | * <!-- begin-user-doc --> | ||
98 | * <!-- end-user-doc --> | ||
99 | * @generated | ||
100 | */ | ||
101 | @Override | ||
102 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
103 | { | ||
104 | switch (featureID) | ||
105 | { | ||
106 | case CftLanguagePackage.BASIC_EVENT_DEFINITION__RATE: | ||
107 | return getRate(); | ||
108 | } | ||
109 | return super.eGet(featureID, resolve, coreType); | ||
110 | } | ||
111 | |||
112 | /** | ||
113 | * <!-- begin-user-doc --> | ||
114 | * <!-- end-user-doc --> | ||
115 | * @generated | ||
116 | */ | ||
117 | @Override | ||
118 | public void eSet(int featureID, Object newValue) | ||
119 | { | ||
120 | switch (featureID) | ||
121 | { | ||
122 | case CftLanguagePackage.BASIC_EVENT_DEFINITION__RATE: | ||
123 | setRate((Double)newValue); | ||
124 | return; | ||
125 | } | ||
126 | super.eSet(featureID, newValue); | ||
127 | } | ||
128 | |||
129 | /** | ||
130 | * <!-- begin-user-doc --> | ||
131 | * <!-- end-user-doc --> | ||
132 | * @generated | ||
133 | */ | ||
134 | @Override | ||
135 | public void eUnset(int featureID) | ||
136 | { | ||
137 | switch (featureID) | ||
138 | { | ||
139 | case CftLanguagePackage.BASIC_EVENT_DEFINITION__RATE: | ||
140 | setRate(RATE_EDEFAULT); | ||
141 | return; | ||
142 | } | ||
143 | super.eUnset(featureID); | ||
144 | } | ||
145 | |||
146 | /** | ||
147 | * <!-- begin-user-doc --> | ||
148 | * <!-- end-user-doc --> | ||
149 | * @generated | ||
150 | */ | ||
151 | @Override | ||
152 | public boolean eIsSet(int featureID) | ||
153 | { | ||
154 | switch (featureID) | ||
155 | { | ||
156 | case CftLanguagePackage.BASIC_EVENT_DEFINITION__RATE: | ||
157 | return rate != RATE_EDEFAULT; | ||
158 | } | ||
159 | return super.eIsSet(featureID); | ||
160 | } | ||
161 | |||
162 | /** | ||
163 | * <!-- begin-user-doc --> | ||
164 | * <!-- end-user-doc --> | ||
165 | * @generated | ||
166 | */ | ||
167 | @Override | ||
168 | public String toString() | ||
169 | { | ||
170 | if (eIsProxy()) return super.toString(); | ||
171 | |||
172 | StringBuilder result = new StringBuilder(super.toString()); | ||
173 | result.append(" (rate: "); | ||
174 | result.append(rate); | ||
175 | result.append(')'); | ||
176 | return result.toString(); | ||
177 | } | ||
178 | |||
179 | } //BasicEventDefinitionImpl | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/CftLanguageFactoryImpl.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/CftLanguageFactoryImpl.java new file mode 100644 index 00000000..04b066b2 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/CftLanguageFactoryImpl.java | |||
@@ -0,0 +1,330 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl; | ||
5 | |||
6 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.*; | ||
7 | |||
8 | import org.eclipse.emf.ecore.EClass; | ||
9 | import org.eclipse.emf.ecore.EObject; | ||
10 | import org.eclipse.emf.ecore.EPackage; | ||
11 | |||
12 | import org.eclipse.emf.ecore.impl.EFactoryImpl; | ||
13 | |||
14 | import org.eclipse.emf.ecore.plugin.EcorePlugin; | ||
15 | |||
16 | /** | ||
17 | * <!-- begin-user-doc --> | ||
18 | * An implementation of the model <b>Factory</b>. | ||
19 | * <!-- end-user-doc --> | ||
20 | * @generated | ||
21 | */ | ||
22 | public class CftLanguageFactoryImpl extends EFactoryImpl implements CftLanguageFactory | ||
23 | { | ||
24 | /** | ||
25 | * Creates the default factory implementation. | ||
26 | * <!-- begin-user-doc --> | ||
27 | * <!-- end-user-doc --> | ||
28 | * @generated | ||
29 | */ | ||
30 | public static CftLanguageFactory init() | ||
31 | { | ||
32 | try | ||
33 | { | ||
34 | CftLanguageFactory theCftLanguageFactory = (CftLanguageFactory)EPackage.Registry.INSTANCE.getEFactory(CftLanguagePackage.eNS_URI); | ||
35 | if (theCftLanguageFactory != null) | ||
36 | { | ||
37 | return theCftLanguageFactory; | ||
38 | } | ||
39 | } | ||
40 | catch (Exception exception) | ||
41 | { | ||
42 | EcorePlugin.INSTANCE.log(exception); | ||
43 | } | ||
44 | return new CftLanguageFactoryImpl(); | ||
45 | } | ||
46 | |||
47 | /** | ||
48 | * Creates an instance of the factory. | ||
49 | * <!-- begin-user-doc --> | ||
50 | * <!-- end-user-doc --> | ||
51 | * @generated | ||
52 | */ | ||
53 | public CftLanguageFactoryImpl() | ||
54 | { | ||
55 | super(); | ||
56 | } | ||
57 | |||
58 | /** | ||
59 | * <!-- begin-user-doc --> | ||
60 | * <!-- end-user-doc --> | ||
61 | * @generated | ||
62 | */ | ||
63 | @Override | ||
64 | public EObject create(EClass eClass) | ||
65 | { | ||
66 | switch (eClass.getClassifierID()) | ||
67 | { | ||
68 | case CftLanguagePackage.CFT_MODEL: return createCftModel(); | ||
69 | case CftLanguagePackage.IMPORT_DECLARATION: return createImportDeclaration(); | ||
70 | case CftLanguagePackage.COMPONENT_DEFINITION: return createComponentDefinition(); | ||
71 | case CftLanguagePackage.EVENT_DECLARATION: return createEventDeclaration(); | ||
72 | case CftLanguagePackage.INPUT_EVENT: return createInputEvent(); | ||
73 | case CftLanguagePackage.EVENT_DEFINITION: return createEventDefinition(); | ||
74 | case CftLanguagePackage.BASIC_EVENT_DEFINITION: return createBasicEventDefinition(); | ||
75 | case CftLanguagePackage.GATE_DEFINITION: return createGateDefinition(); | ||
76 | case CftLanguagePackage.AND_GATE: return createAndGate(); | ||
77 | case CftLanguagePackage.OR_GATE: return createOrGate(); | ||
78 | case CftLanguagePackage.TRANSFORMATION_DEFINITION: return createTransformationDefinition(); | ||
79 | case CftLanguagePackage.MAPPING_DEFINITION: return createMappingDefinition(); | ||
80 | case CftLanguagePackage.MAPPING_PARAMETER: return createMappingParameter(); | ||
81 | case CftLanguagePackage.LOOKUP_DEFINITION: return createLookupDefinition(); | ||
82 | case CftLanguagePackage.VARIABLE: return createVariable(); | ||
83 | case CftLanguagePackage.ASSIGNMENT: return createAssignment(); | ||
84 | case CftLanguagePackage.EVENT_REFERENCE: return createEventReference(); | ||
85 | case CftLanguagePackage.COMPONENT_INSTANCE: return createComponentInstance(); | ||
86 | default: | ||
87 | throw new IllegalArgumentException("The class '" + eClass.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 CftModel createCftModel() | ||
98 | { | ||
99 | CftModelImpl cftModel = new CftModelImpl(); | ||
100 | return cftModel; | ||
101 | } | ||
102 | |||
103 | /** | ||
104 | * <!-- begin-user-doc --> | ||
105 | * <!-- end-user-doc --> | ||
106 | * @generated | ||
107 | */ | ||
108 | @Override | ||
109 | public ImportDeclaration createImportDeclaration() | ||
110 | { | ||
111 | ImportDeclarationImpl importDeclaration = new ImportDeclarationImpl(); | ||
112 | return importDeclaration; | ||
113 | } | ||
114 | |||
115 | /** | ||
116 | * <!-- begin-user-doc --> | ||
117 | * <!-- end-user-doc --> | ||
118 | * @generated | ||
119 | */ | ||
120 | @Override | ||
121 | public ComponentDefinition createComponentDefinition() | ||
122 | { | ||
123 | ComponentDefinitionImpl componentDefinition = new ComponentDefinitionImpl(); | ||
124 | return componentDefinition; | ||
125 | } | ||
126 | |||
127 | /** | ||
128 | * <!-- begin-user-doc --> | ||
129 | * <!-- end-user-doc --> | ||
130 | * @generated | ||
131 | */ | ||
132 | @Override | ||
133 | public EventDeclaration createEventDeclaration() | ||
134 | { | ||
135 | EventDeclarationImpl eventDeclaration = new EventDeclarationImpl(); | ||
136 | return eventDeclaration; | ||
137 | } | ||
138 | |||
139 | /** | ||
140 | * <!-- begin-user-doc --> | ||
141 | * <!-- end-user-doc --> | ||
142 | * @generated | ||
143 | */ | ||
144 | @Override | ||
145 | public InputEvent createInputEvent() | ||
146 | { | ||
147 | InputEventImpl inputEvent = new InputEventImpl(); | ||
148 | return inputEvent; | ||
149 | } | ||
150 | |||
151 | /** | ||
152 | * <!-- begin-user-doc --> | ||
153 | * <!-- end-user-doc --> | ||
154 | * @generated | ||
155 | */ | ||
156 | @Override | ||
157 | public EventDefinition createEventDefinition() | ||
158 | { | ||
159 | EventDefinitionImpl eventDefinition = new EventDefinitionImpl(); | ||
160 | return eventDefinition; | ||
161 | } | ||
162 | |||
163 | /** | ||
164 | * <!-- begin-user-doc --> | ||
165 | * <!-- end-user-doc --> | ||
166 | * @generated | ||
167 | */ | ||
168 | @Override | ||
169 | public BasicEventDefinition createBasicEventDefinition() | ||
170 | { | ||
171 | BasicEventDefinitionImpl basicEventDefinition = new BasicEventDefinitionImpl(); | ||
172 | return basicEventDefinition; | ||
173 | } | ||
174 | |||
175 | /** | ||
176 | * <!-- begin-user-doc --> | ||
177 | * <!-- end-user-doc --> | ||
178 | * @generated | ||
179 | */ | ||
180 | @Override | ||
181 | public GateDefinition createGateDefinition() | ||
182 | { | ||
183 | GateDefinitionImpl gateDefinition = new GateDefinitionImpl(); | ||
184 | return gateDefinition; | ||
185 | } | ||
186 | |||
187 | /** | ||
188 | * <!-- begin-user-doc --> | ||
189 | * <!-- end-user-doc --> | ||
190 | * @generated | ||
191 | */ | ||
192 | @Override | ||
193 | public AndGate createAndGate() | ||
194 | { | ||
195 | AndGateImpl andGate = new AndGateImpl(); | ||
196 | return andGate; | ||
197 | } | ||
198 | |||
199 | /** | ||
200 | * <!-- begin-user-doc --> | ||
201 | * <!-- end-user-doc --> | ||
202 | * @generated | ||
203 | */ | ||
204 | @Override | ||
205 | public OrGate createOrGate() | ||
206 | { | ||
207 | OrGateImpl orGate = new OrGateImpl(); | ||
208 | return orGate; | ||
209 | } | ||
210 | |||
211 | /** | ||
212 | * <!-- begin-user-doc --> | ||
213 | * <!-- end-user-doc --> | ||
214 | * @generated | ||
215 | */ | ||
216 | @Override | ||
217 | public TransformationDefinition createTransformationDefinition() | ||
218 | { | ||
219 | TransformationDefinitionImpl transformationDefinition = new TransformationDefinitionImpl(); | ||
220 | return transformationDefinition; | ||
221 | } | ||
222 | |||
223 | /** | ||
224 | * <!-- begin-user-doc --> | ||
225 | * <!-- end-user-doc --> | ||
226 | * @generated | ||
227 | */ | ||
228 | @Override | ||
229 | public MappingDefinition createMappingDefinition() | ||
230 | { | ||
231 | MappingDefinitionImpl mappingDefinition = new MappingDefinitionImpl(); | ||
232 | return mappingDefinition; | ||
233 | } | ||
234 | |||
235 | /** | ||
236 | * <!-- begin-user-doc --> | ||
237 | * <!-- end-user-doc --> | ||
238 | * @generated | ||
239 | */ | ||
240 | @Override | ||
241 | public MappingParameter createMappingParameter() | ||
242 | { | ||
243 | MappingParameterImpl mappingParameter = new MappingParameterImpl(); | ||
244 | return mappingParameter; | ||
245 | } | ||
246 | |||
247 | /** | ||
248 | * <!-- begin-user-doc --> | ||
249 | * <!-- end-user-doc --> | ||
250 | * @generated | ||
251 | */ | ||
252 | @Override | ||
253 | public LookupDefinition createLookupDefinition() | ||
254 | { | ||
255 | LookupDefinitionImpl lookupDefinition = new LookupDefinitionImpl(); | ||
256 | return lookupDefinition; | ||
257 | } | ||
258 | |||
259 | /** | ||
260 | * <!-- begin-user-doc --> | ||
261 | * <!-- end-user-doc --> | ||
262 | * @generated | ||
263 | */ | ||
264 | @Override | ||
265 | public Variable createVariable() | ||
266 | { | ||
267 | VariableImpl variable = new VariableImpl(); | ||
268 | return variable; | ||
269 | } | ||
270 | |||
271 | /** | ||
272 | * <!-- begin-user-doc --> | ||
273 | * <!-- end-user-doc --> | ||
274 | * @generated | ||
275 | */ | ||
276 | @Override | ||
277 | public Assignment createAssignment() | ||
278 | { | ||
279 | AssignmentImpl assignment = new AssignmentImpl(); | ||
280 | return assignment; | ||
281 | } | ||
282 | |||
283 | /** | ||
284 | * <!-- begin-user-doc --> | ||
285 | * <!-- end-user-doc --> | ||
286 | * @generated | ||
287 | */ | ||
288 | @Override | ||
289 | public EventReference createEventReference() | ||
290 | { | ||
291 | EventReferenceImpl eventReference = new EventReferenceImpl(); | ||
292 | return eventReference; | ||
293 | } | ||
294 | |||
295 | /** | ||
296 | * <!-- begin-user-doc --> | ||
297 | * <!-- end-user-doc --> | ||
298 | * @generated | ||
299 | */ | ||
300 | @Override | ||
301 | public ComponentInstance createComponentInstance() | ||
302 | { | ||
303 | ComponentInstanceImpl componentInstance = new ComponentInstanceImpl(); | ||
304 | return componentInstance; | ||
305 | } | ||
306 | |||
307 | /** | ||
308 | * <!-- begin-user-doc --> | ||
309 | * <!-- end-user-doc --> | ||
310 | * @generated | ||
311 | */ | ||
312 | @Override | ||
313 | public CftLanguagePackage getCftLanguagePackage() | ||
314 | { | ||
315 | return (CftLanguagePackage)getEPackage(); | ||
316 | } | ||
317 | |||
318 | /** | ||
319 | * <!-- begin-user-doc --> | ||
320 | * <!-- end-user-doc --> | ||
321 | * @deprecated | ||
322 | * @generated | ||
323 | */ | ||
324 | @Deprecated | ||
325 | public static CftLanguagePackage getPackage() | ||
326 | { | ||
327 | return CftLanguagePackage.eINSTANCE; | ||
328 | } | ||
329 | |||
330 | } //CftLanguageFactoryImpl | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/CftLanguagePackageImpl.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/CftLanguagePackageImpl.java new file mode 100644 index 00000000..95520ab8 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/CftLanguagePackageImpl.java | |||
@@ -0,0 +1,999 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl; | ||
5 | |||
6 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.AndGate; | ||
7 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.Assignment; | ||
8 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.BasicEventDefinition; | ||
9 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguageFactory; | ||
10 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage; | ||
11 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftModel; | ||
12 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ComponentDefinition; | ||
13 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ComponentInstance; | ||
14 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.EventDeclaration; | ||
15 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.EventDefinition; | ||
16 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.EventReference; | ||
17 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.GateDefinition; | ||
18 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ImportDeclaration; | ||
19 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.InputEvent; | ||
20 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.LookupDefinition; | ||
21 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.MappingDefinition; | ||
22 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.MappingParameter; | ||
23 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.OrGate; | ||
24 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.TransformationDefinition; | ||
25 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.Variable; | ||
26 | |||
27 | import org.eclipse.emf.ecore.EAttribute; | ||
28 | import org.eclipse.emf.ecore.EClass; | ||
29 | import org.eclipse.emf.ecore.EPackage; | ||
30 | import org.eclipse.emf.ecore.EReference; | ||
31 | import org.eclipse.emf.ecore.EcorePackage; | ||
32 | |||
33 | import org.eclipse.emf.ecore.impl.EPackageImpl; | ||
34 | |||
35 | import org.eclipse.viatra.query.patternlanguage.emf.vql.PatternLanguagePackage; | ||
36 | |||
37 | import org.eclipse.xtext.common.types.TypesPackage; | ||
38 | |||
39 | import org.eclipse.xtext.xbase.XbasePackage; | ||
40 | |||
41 | import org.eclipse.xtext.xtype.XtypePackage; | ||
42 | |||
43 | /** | ||
44 | * <!-- begin-user-doc --> | ||
45 | * An implementation of the model <b>Package</b>. | ||
46 | * <!-- end-user-doc --> | ||
47 | * @generated | ||
48 | */ | ||
49 | public class CftLanguagePackageImpl extends EPackageImpl implements CftLanguagePackage | ||
50 | { | ||
51 | /** | ||
52 | * <!-- begin-user-doc --> | ||
53 | * <!-- end-user-doc --> | ||
54 | * @generated | ||
55 | */ | ||
56 | private EClass cftModelEClass = null; | ||
57 | |||
58 | /** | ||
59 | * <!-- begin-user-doc --> | ||
60 | * <!-- end-user-doc --> | ||
61 | * @generated | ||
62 | */ | ||
63 | private EClass importDeclarationEClass = null; | ||
64 | |||
65 | /** | ||
66 | * <!-- begin-user-doc --> | ||
67 | * <!-- end-user-doc --> | ||
68 | * @generated | ||
69 | */ | ||
70 | private EClass componentDefinitionEClass = null; | ||
71 | |||
72 | /** | ||
73 | * <!-- begin-user-doc --> | ||
74 | * <!-- end-user-doc --> | ||
75 | * @generated | ||
76 | */ | ||
77 | private EClass eventDeclarationEClass = null; | ||
78 | |||
79 | /** | ||
80 | * <!-- begin-user-doc --> | ||
81 | * <!-- end-user-doc --> | ||
82 | * @generated | ||
83 | */ | ||
84 | private EClass inputEventEClass = null; | ||
85 | |||
86 | /** | ||
87 | * <!-- begin-user-doc --> | ||
88 | * <!-- end-user-doc --> | ||
89 | * @generated | ||
90 | */ | ||
91 | private EClass eventDefinitionEClass = null; | ||
92 | |||
93 | /** | ||
94 | * <!-- begin-user-doc --> | ||
95 | * <!-- end-user-doc --> | ||
96 | * @generated | ||
97 | */ | ||
98 | private EClass basicEventDefinitionEClass = null; | ||
99 | |||
100 | /** | ||
101 | * <!-- begin-user-doc --> | ||
102 | * <!-- end-user-doc --> | ||
103 | * @generated | ||
104 | */ | ||
105 | private EClass gateDefinitionEClass = null; | ||
106 | |||
107 | /** | ||
108 | * <!-- begin-user-doc --> | ||
109 | * <!-- end-user-doc --> | ||
110 | * @generated | ||
111 | */ | ||
112 | private EClass andGateEClass = null; | ||
113 | |||
114 | /** | ||
115 | * <!-- begin-user-doc --> | ||
116 | * <!-- end-user-doc --> | ||
117 | * @generated | ||
118 | */ | ||
119 | private EClass orGateEClass = null; | ||
120 | |||
121 | /** | ||
122 | * <!-- begin-user-doc --> | ||
123 | * <!-- end-user-doc --> | ||
124 | * @generated | ||
125 | */ | ||
126 | private EClass transformationDefinitionEClass = null; | ||
127 | |||
128 | /** | ||
129 | * <!-- begin-user-doc --> | ||
130 | * <!-- end-user-doc --> | ||
131 | * @generated | ||
132 | */ | ||
133 | private EClass mappingDefinitionEClass = null; | ||
134 | |||
135 | /** | ||
136 | * <!-- begin-user-doc --> | ||
137 | * <!-- end-user-doc --> | ||
138 | * @generated | ||
139 | */ | ||
140 | private EClass mappingParameterEClass = null; | ||
141 | |||
142 | /** | ||
143 | * <!-- begin-user-doc --> | ||
144 | * <!-- end-user-doc --> | ||
145 | * @generated | ||
146 | */ | ||
147 | private EClass lookupDefinitionEClass = null; | ||
148 | |||
149 | /** | ||
150 | * <!-- begin-user-doc --> | ||
151 | * <!-- end-user-doc --> | ||
152 | * @generated | ||
153 | */ | ||
154 | private EClass variableEClass = null; | ||
155 | |||
156 | /** | ||
157 | * <!-- begin-user-doc --> | ||
158 | * <!-- end-user-doc --> | ||
159 | * @generated | ||
160 | */ | ||
161 | private EClass assignmentEClass = null; | ||
162 | |||
163 | /** | ||
164 | * <!-- begin-user-doc --> | ||
165 | * <!-- end-user-doc --> | ||
166 | * @generated | ||
167 | */ | ||
168 | private EClass eventReferenceEClass = null; | ||
169 | |||
170 | /** | ||
171 | * <!-- begin-user-doc --> | ||
172 | * <!-- end-user-doc --> | ||
173 | * @generated | ||
174 | */ | ||
175 | private EClass componentInstanceEClass = null; | ||
176 | |||
177 | /** | ||
178 | * Creates an instance of the model <b>Package</b>, registered with | ||
179 | * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package | ||
180 | * package URI value. | ||
181 | * <p>Note: the correct way to create the package is via the static | ||
182 | * factory method {@link #init init()}, which also performs | ||
183 | * initialization of the package, or returns the registered package, | ||
184 | * if one already exists. | ||
185 | * <!-- begin-user-doc --> | ||
186 | * <!-- end-user-doc --> | ||
187 | * @see org.eclipse.emf.ecore.EPackage.Registry | ||
188 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage#eNS_URI | ||
189 | * @see #init() | ||
190 | * @generated | ||
191 | */ | ||
192 | private CftLanguagePackageImpl() | ||
193 | { | ||
194 | super(eNS_URI, CftLanguageFactory.eINSTANCE); | ||
195 | } | ||
196 | |||
197 | /** | ||
198 | * <!-- begin-user-doc --> | ||
199 | * <!-- end-user-doc --> | ||
200 | * @generated | ||
201 | */ | ||
202 | private static boolean isInited = false; | ||
203 | |||
204 | /** | ||
205 | * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends. | ||
206 | * | ||
207 | * <p>This method is used to initialize {@link CftLanguagePackage#eINSTANCE} when that field is accessed. | ||
208 | * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. | ||
209 | * <!-- begin-user-doc --> | ||
210 | * <!-- end-user-doc --> | ||
211 | * @see #eNS_URI | ||
212 | * @see #createPackageContents() | ||
213 | * @see #initializePackageContents() | ||
214 | * @generated | ||
215 | */ | ||
216 | public static CftLanguagePackage init() | ||
217 | { | ||
218 | if (isInited) return (CftLanguagePackage)EPackage.Registry.INSTANCE.getEPackage(CftLanguagePackage.eNS_URI); | ||
219 | |||
220 | // Obtain or create and register package | ||
221 | Object registeredCftLanguagePackage = EPackage.Registry.INSTANCE.get(eNS_URI); | ||
222 | CftLanguagePackageImpl theCftLanguagePackage = registeredCftLanguagePackage instanceof CftLanguagePackageImpl ? (CftLanguagePackageImpl)registeredCftLanguagePackage : new CftLanguagePackageImpl(); | ||
223 | |||
224 | isInited = true; | ||
225 | |||
226 | // Initialize simple dependencies | ||
227 | EcorePackage.eINSTANCE.eClass(); | ||
228 | PatternLanguagePackage.eINSTANCE.eClass(); | ||
229 | XtypePackage.eINSTANCE.eClass(); | ||
230 | TypesPackage.eINSTANCE.eClass(); | ||
231 | XbasePackage.eINSTANCE.eClass(); | ||
232 | |||
233 | // Create package meta-data objects | ||
234 | theCftLanguagePackage.createPackageContents(); | ||
235 | |||
236 | // Initialize created meta-data | ||
237 | theCftLanguagePackage.initializePackageContents(); | ||
238 | |||
239 | // Mark meta-data to indicate it can't be changed | ||
240 | theCftLanguagePackage.freeze(); | ||
241 | |||
242 | // Update the registry and return the package | ||
243 | EPackage.Registry.INSTANCE.put(CftLanguagePackage.eNS_URI, theCftLanguagePackage); | ||
244 | return theCftLanguagePackage; | ||
245 | } | ||
246 | |||
247 | /** | ||
248 | * <!-- begin-user-doc --> | ||
249 | * <!-- end-user-doc --> | ||
250 | * @generated | ||
251 | */ | ||
252 | @Override | ||
253 | public EClass getCftModel() | ||
254 | { | ||
255 | return cftModelEClass; | ||
256 | } | ||
257 | |||
258 | /** | ||
259 | * <!-- begin-user-doc --> | ||
260 | * <!-- end-user-doc --> | ||
261 | * @generated | ||
262 | */ | ||
263 | @Override | ||
264 | public EAttribute getCftModel_PackageName() | ||
265 | { | ||
266 | return (EAttribute)cftModelEClass.getEStructuralFeatures().get(0); | ||
267 | } | ||
268 | |||
269 | /** | ||
270 | * <!-- begin-user-doc --> | ||
271 | * <!-- end-user-doc --> | ||
272 | * @generated | ||
273 | */ | ||
274 | @Override | ||
275 | public EReference getCftModel_Imports() | ||
276 | { | ||
277 | return (EReference)cftModelEClass.getEStructuralFeatures().get(1); | ||
278 | } | ||
279 | |||
280 | /** | ||
281 | * <!-- begin-user-doc --> | ||
282 | * <!-- end-user-doc --> | ||
283 | * @generated | ||
284 | */ | ||
285 | @Override | ||
286 | public EReference getCftModel_ComponentDefinitions() | ||
287 | { | ||
288 | return (EReference)cftModelEClass.getEStructuralFeatures().get(2); | ||
289 | } | ||
290 | |||
291 | /** | ||
292 | * <!-- begin-user-doc --> | ||
293 | * <!-- end-user-doc --> | ||
294 | * @generated | ||
295 | */ | ||
296 | @Override | ||
297 | public EReference getCftModel_TransformationDefinitions() | ||
298 | { | ||
299 | return (EReference)cftModelEClass.getEStructuralFeatures().get(3); | ||
300 | } | ||
301 | |||
302 | /** | ||
303 | * <!-- begin-user-doc --> | ||
304 | * <!-- end-user-doc --> | ||
305 | * @generated | ||
306 | */ | ||
307 | @Override | ||
308 | public EClass getImportDeclaration() | ||
309 | { | ||
310 | return importDeclarationEClass; | ||
311 | } | ||
312 | |||
313 | /** | ||
314 | * <!-- begin-user-doc --> | ||
315 | * <!-- end-user-doc --> | ||
316 | * @generated | ||
317 | */ | ||
318 | @Override | ||
319 | public EAttribute getImportDeclaration_ImportedNamespace() | ||
320 | { | ||
321 | return (EAttribute)importDeclarationEClass.getEStructuralFeatures().get(0); | ||
322 | } | ||
323 | |||
324 | /** | ||
325 | * <!-- begin-user-doc --> | ||
326 | * <!-- end-user-doc --> | ||
327 | * @generated | ||
328 | */ | ||
329 | @Override | ||
330 | public EClass getComponentDefinition() | ||
331 | { | ||
332 | return componentDefinitionEClass; | ||
333 | } | ||
334 | |||
335 | /** | ||
336 | * <!-- begin-user-doc --> | ||
337 | * <!-- end-user-doc --> | ||
338 | * @generated | ||
339 | */ | ||
340 | @Override | ||
341 | public EAttribute getComponentDefinition_Name() | ||
342 | { | ||
343 | return (EAttribute)componentDefinitionEClass.getEStructuralFeatures().get(0); | ||
344 | } | ||
345 | |||
346 | /** | ||
347 | * <!-- begin-user-doc --> | ||
348 | * <!-- end-user-doc --> | ||
349 | * @generated | ||
350 | */ | ||
351 | @Override | ||
352 | public EReference getComponentDefinition_InputEvents() | ||
353 | { | ||
354 | return (EReference)componentDefinitionEClass.getEStructuralFeatures().get(1); | ||
355 | } | ||
356 | |||
357 | /** | ||
358 | * <!-- begin-user-doc --> | ||
359 | * <!-- end-user-doc --> | ||
360 | * @generated | ||
361 | */ | ||
362 | @Override | ||
363 | public EReference getComponentDefinition_OutputEvents() | ||
364 | { | ||
365 | return (EReference)componentDefinitionEClass.getEStructuralFeatures().get(2); | ||
366 | } | ||
367 | |||
368 | /** | ||
369 | * <!-- begin-user-doc --> | ||
370 | * <!-- end-user-doc --> | ||
371 | * @generated | ||
372 | */ | ||
373 | @Override | ||
374 | public EReference getComponentDefinition_EventDefinitions() | ||
375 | { | ||
376 | return (EReference)componentDefinitionEClass.getEStructuralFeatures().get(3); | ||
377 | } | ||
378 | |||
379 | /** | ||
380 | * <!-- begin-user-doc --> | ||
381 | * <!-- end-user-doc --> | ||
382 | * @generated | ||
383 | */ | ||
384 | @Override | ||
385 | public EClass getEventDeclaration() | ||
386 | { | ||
387 | return eventDeclarationEClass; | ||
388 | } | ||
389 | |||
390 | /** | ||
391 | * <!-- begin-user-doc --> | ||
392 | * <!-- end-user-doc --> | ||
393 | * @generated | ||
394 | */ | ||
395 | @Override | ||
396 | public EAttribute getEventDeclaration_Name() | ||
397 | { | ||
398 | return (EAttribute)eventDeclarationEClass.getEStructuralFeatures().get(0); | ||
399 | } | ||
400 | |||
401 | /** | ||
402 | * <!-- begin-user-doc --> | ||
403 | * <!-- end-user-doc --> | ||
404 | * @generated | ||
405 | */ | ||
406 | @Override | ||
407 | public EClass getInputEvent() | ||
408 | { | ||
409 | return inputEventEClass; | ||
410 | } | ||
411 | |||
412 | /** | ||
413 | * <!-- begin-user-doc --> | ||
414 | * <!-- end-user-doc --> | ||
415 | * @generated | ||
416 | */ | ||
417 | @Override | ||
418 | public EAttribute getInputEvent_Multiple() | ||
419 | { | ||
420 | return (EAttribute)inputEventEClass.getEStructuralFeatures().get(0); | ||
421 | } | ||
422 | |||
423 | /** | ||
424 | * <!-- begin-user-doc --> | ||
425 | * <!-- end-user-doc --> | ||
426 | * @generated | ||
427 | */ | ||
428 | @Override | ||
429 | public EClass getEventDefinition() | ||
430 | { | ||
431 | return eventDefinitionEClass; | ||
432 | } | ||
433 | |||
434 | /** | ||
435 | * <!-- begin-user-doc --> | ||
436 | * <!-- end-user-doc --> | ||
437 | * @generated | ||
438 | */ | ||
439 | @Override | ||
440 | public EClass getBasicEventDefinition() | ||
441 | { | ||
442 | return basicEventDefinitionEClass; | ||
443 | } | ||
444 | |||
445 | /** | ||
446 | * <!-- begin-user-doc --> | ||
447 | * <!-- end-user-doc --> | ||
448 | * @generated | ||
449 | */ | ||
450 | @Override | ||
451 | public EAttribute getBasicEventDefinition_Rate() | ||
452 | { | ||
453 | return (EAttribute)basicEventDefinitionEClass.getEStructuralFeatures().get(0); | ||
454 | } | ||
455 | |||
456 | /** | ||
457 | * <!-- begin-user-doc --> | ||
458 | * <!-- end-user-doc --> | ||
459 | * @generated | ||
460 | */ | ||
461 | @Override | ||
462 | public EClass getGateDefinition() | ||
463 | { | ||
464 | return gateDefinitionEClass; | ||
465 | } | ||
466 | |||
467 | /** | ||
468 | * <!-- begin-user-doc --> | ||
469 | * <!-- end-user-doc --> | ||
470 | * @generated | ||
471 | */ | ||
472 | @Override | ||
473 | public EReference getGateDefinition_InputEvents() | ||
474 | { | ||
475 | return (EReference)gateDefinitionEClass.getEStructuralFeatures().get(0); | ||
476 | } | ||
477 | |||
478 | /** | ||
479 | * <!-- begin-user-doc --> | ||
480 | * <!-- end-user-doc --> | ||
481 | * @generated | ||
482 | */ | ||
483 | @Override | ||
484 | public EClass getAndGate() | ||
485 | { | ||
486 | return andGateEClass; | ||
487 | } | ||
488 | |||
489 | /** | ||
490 | * <!-- begin-user-doc --> | ||
491 | * <!-- end-user-doc --> | ||
492 | * @generated | ||
493 | */ | ||
494 | @Override | ||
495 | public EClass getOrGate() | ||
496 | { | ||
497 | return orGateEClass; | ||
498 | } | ||
499 | |||
500 | /** | ||
501 | * <!-- begin-user-doc --> | ||
502 | * <!-- end-user-doc --> | ||
503 | * @generated | ||
504 | */ | ||
505 | @Override | ||
506 | public EClass getTransformationDefinition() | ||
507 | { | ||
508 | return transformationDefinitionEClass; | ||
509 | } | ||
510 | |||
511 | /** | ||
512 | * <!-- begin-user-doc --> | ||
513 | * <!-- end-user-doc --> | ||
514 | * @generated | ||
515 | */ | ||
516 | @Override | ||
517 | public EAttribute getTransformationDefinition_Name() | ||
518 | { | ||
519 | return (EAttribute)transformationDefinitionEClass.getEStructuralFeatures().get(0); | ||
520 | } | ||
521 | |||
522 | /** | ||
523 | * <!-- begin-user-doc --> | ||
524 | * <!-- end-user-doc --> | ||
525 | * @generated | ||
526 | */ | ||
527 | @Override | ||
528 | public EReference getTransformationDefinition_MappingDefinitions() | ||
529 | { | ||
530 | return (EReference)transformationDefinitionEClass.getEStructuralFeatures().get(1); | ||
531 | } | ||
532 | |||
533 | /** | ||
534 | * <!-- begin-user-doc --> | ||
535 | * <!-- end-user-doc --> | ||
536 | * @generated | ||
537 | */ | ||
538 | @Override | ||
539 | public EClass getMappingDefinition() | ||
540 | { | ||
541 | return mappingDefinitionEClass; | ||
542 | } | ||
543 | |||
544 | /** | ||
545 | * <!-- begin-user-doc --> | ||
546 | * <!-- end-user-doc --> | ||
547 | * @generated | ||
548 | */ | ||
549 | @Override | ||
550 | public EAttribute getMappingDefinition_TopLevel() | ||
551 | { | ||
552 | return (EAttribute)mappingDefinitionEClass.getEStructuralFeatures().get(0); | ||
553 | } | ||
554 | |||
555 | /** | ||
556 | * <!-- begin-user-doc --> | ||
557 | * <!-- end-user-doc --> | ||
558 | * @generated | ||
559 | */ | ||
560 | @Override | ||
561 | public EReference getMappingDefinition_Pattern() | ||
562 | { | ||
563 | return (EReference)mappingDefinitionEClass.getEStructuralFeatures().get(1); | ||
564 | } | ||
565 | |||
566 | /** | ||
567 | * <!-- begin-user-doc --> | ||
568 | * <!-- end-user-doc --> | ||
569 | * @generated | ||
570 | */ | ||
571 | @Override | ||
572 | public EReference getMappingDefinition_Parameters() | ||
573 | { | ||
574 | return (EReference)mappingDefinitionEClass.getEStructuralFeatures().get(2); | ||
575 | } | ||
576 | |||
577 | /** | ||
578 | * <!-- begin-user-doc --> | ||
579 | * <!-- end-user-doc --> | ||
580 | * @generated | ||
581 | */ | ||
582 | @Override | ||
583 | public EReference getMappingDefinition_ComponentInstance() | ||
584 | { | ||
585 | return (EReference)mappingDefinitionEClass.getEStructuralFeatures().get(3); | ||
586 | } | ||
587 | |||
588 | /** | ||
589 | * <!-- begin-user-doc --> | ||
590 | * <!-- end-user-doc --> | ||
591 | * @generated | ||
592 | */ | ||
593 | @Override | ||
594 | public EReference getMappingDefinition_LookupDefinitions() | ||
595 | { | ||
596 | return (EReference)mappingDefinitionEClass.getEStructuralFeatures().get(4); | ||
597 | } | ||
598 | |||
599 | /** | ||
600 | * <!-- begin-user-doc --> | ||
601 | * <!-- end-user-doc --> | ||
602 | * @generated | ||
603 | */ | ||
604 | @Override | ||
605 | public EReference getMappingDefinition_Assignments() | ||
606 | { | ||
607 | return (EReference)mappingDefinitionEClass.getEStructuralFeatures().get(5); | ||
608 | } | ||
609 | |||
610 | /** | ||
611 | * <!-- begin-user-doc --> | ||
612 | * <!-- end-user-doc --> | ||
613 | * @generated | ||
614 | */ | ||
615 | @Override | ||
616 | public EClass getMappingParameter() | ||
617 | { | ||
618 | return mappingParameterEClass; | ||
619 | } | ||
620 | |||
621 | /** | ||
622 | * <!-- begin-user-doc --> | ||
623 | * <!-- end-user-doc --> | ||
624 | * @generated | ||
625 | */ | ||
626 | @Override | ||
627 | public EAttribute getMappingParameter_Name() | ||
628 | { | ||
629 | return (EAttribute)mappingParameterEClass.getEStructuralFeatures().get(0); | ||
630 | } | ||
631 | |||
632 | /** | ||
633 | * <!-- begin-user-doc --> | ||
634 | * <!-- end-user-doc --> | ||
635 | * @generated | ||
636 | */ | ||
637 | @Override | ||
638 | public EClass getLookupDefinition() | ||
639 | { | ||
640 | return lookupDefinitionEClass; | ||
641 | } | ||
642 | |||
643 | /** | ||
644 | * <!-- begin-user-doc --> | ||
645 | * <!-- end-user-doc --> | ||
646 | * @generated | ||
647 | */ | ||
648 | @Override | ||
649 | public EReference getLookupDefinition_Mapping() | ||
650 | { | ||
651 | return (EReference)lookupDefinitionEClass.getEStructuralFeatures().get(0); | ||
652 | } | ||
653 | |||
654 | /** | ||
655 | * <!-- begin-user-doc --> | ||
656 | * <!-- end-user-doc --> | ||
657 | * @generated | ||
658 | */ | ||
659 | @Override | ||
660 | public EReference getLookupDefinition_Arguments() | ||
661 | { | ||
662 | return (EReference)lookupDefinitionEClass.getEStructuralFeatures().get(1); | ||
663 | } | ||
664 | |||
665 | /** | ||
666 | * <!-- begin-user-doc --> | ||
667 | * <!-- end-user-doc --> | ||
668 | * @generated | ||
669 | */ | ||
670 | @Override | ||
671 | public EClass getVariable() | ||
672 | { | ||
673 | return variableEClass; | ||
674 | } | ||
675 | |||
676 | /** | ||
677 | * <!-- begin-user-doc --> | ||
678 | * <!-- end-user-doc --> | ||
679 | * @generated | ||
680 | */ | ||
681 | @Override | ||
682 | public EAttribute getVariable_Name() | ||
683 | { | ||
684 | return (EAttribute)variableEClass.getEStructuralFeatures().get(0); | ||
685 | } | ||
686 | |||
687 | /** | ||
688 | * <!-- begin-user-doc --> | ||
689 | * <!-- end-user-doc --> | ||
690 | * @generated | ||
691 | */ | ||
692 | @Override | ||
693 | public EClass getAssignment() | ||
694 | { | ||
695 | return assignmentEClass; | ||
696 | } | ||
697 | |||
698 | /** | ||
699 | * <!-- begin-user-doc --> | ||
700 | * <!-- end-user-doc --> | ||
701 | * @generated | ||
702 | */ | ||
703 | @Override | ||
704 | public EReference getAssignment_Input() | ||
705 | { | ||
706 | return (EReference)assignmentEClass.getEStructuralFeatures().get(0); | ||
707 | } | ||
708 | |||
709 | /** | ||
710 | * <!-- begin-user-doc --> | ||
711 | * <!-- end-user-doc --> | ||
712 | * @generated | ||
713 | */ | ||
714 | @Override | ||
715 | public EAttribute getAssignment_Multiple() | ||
716 | { | ||
717 | return (EAttribute)assignmentEClass.getEStructuralFeatures().get(1); | ||
718 | } | ||
719 | |||
720 | /** | ||
721 | * <!-- begin-user-doc --> | ||
722 | * <!-- end-user-doc --> | ||
723 | * @generated | ||
724 | */ | ||
725 | @Override | ||
726 | public EReference getAssignment_Output() | ||
727 | { | ||
728 | return (EReference)assignmentEClass.getEStructuralFeatures().get(2); | ||
729 | } | ||
730 | |||
731 | /** | ||
732 | * <!-- begin-user-doc --> | ||
733 | * <!-- end-user-doc --> | ||
734 | * @generated | ||
735 | */ | ||
736 | @Override | ||
737 | public EClass getEventReference() | ||
738 | { | ||
739 | return eventReferenceEClass; | ||
740 | } | ||
741 | |||
742 | /** | ||
743 | * <!-- begin-user-doc --> | ||
744 | * <!-- end-user-doc --> | ||
745 | * @generated | ||
746 | */ | ||
747 | @Override | ||
748 | public EReference getEventReference_Component() | ||
749 | { | ||
750 | return (EReference)eventReferenceEClass.getEStructuralFeatures().get(0); | ||
751 | } | ||
752 | |||
753 | /** | ||
754 | * <!-- begin-user-doc --> | ||
755 | * <!-- end-user-doc --> | ||
756 | * @generated | ||
757 | */ | ||
758 | @Override | ||
759 | public EReference getEventReference_Event() | ||
760 | { | ||
761 | return (EReference)eventReferenceEClass.getEStructuralFeatures().get(1); | ||
762 | } | ||
763 | |||
764 | /** | ||
765 | * <!-- begin-user-doc --> | ||
766 | * <!-- end-user-doc --> | ||
767 | * @generated | ||
768 | */ | ||
769 | @Override | ||
770 | public EClass getComponentInstance() | ||
771 | { | ||
772 | return componentInstanceEClass; | ||
773 | } | ||
774 | |||
775 | /** | ||
776 | * <!-- begin-user-doc --> | ||
777 | * <!-- end-user-doc --> | ||
778 | * @generated | ||
779 | */ | ||
780 | @Override | ||
781 | public EReference getComponentInstance_ComponentType() | ||
782 | { | ||
783 | return (EReference)componentInstanceEClass.getEStructuralFeatures().get(0); | ||
784 | } | ||
785 | |||
786 | /** | ||
787 | * <!-- begin-user-doc --> | ||
788 | * <!-- end-user-doc --> | ||
789 | * @generated | ||
790 | */ | ||
791 | @Override | ||
792 | public CftLanguageFactory getCftLanguageFactory() | ||
793 | { | ||
794 | return (CftLanguageFactory)getEFactoryInstance(); | ||
795 | } | ||
796 | |||
797 | /** | ||
798 | * <!-- begin-user-doc --> | ||
799 | * <!-- end-user-doc --> | ||
800 | * @generated | ||
801 | */ | ||
802 | private boolean isCreated = false; | ||
803 | |||
804 | /** | ||
805 | * Creates the meta-model objects for the package. This method is | ||
806 | * guarded to have no affect on any invocation but its first. | ||
807 | * <!-- begin-user-doc --> | ||
808 | * <!-- end-user-doc --> | ||
809 | * @generated | ||
810 | */ | ||
811 | public void createPackageContents() | ||
812 | { | ||
813 | if (isCreated) return; | ||
814 | isCreated = true; | ||
815 | |||
816 | // Create classes and their features | ||
817 | cftModelEClass = createEClass(CFT_MODEL); | ||
818 | createEAttribute(cftModelEClass, CFT_MODEL__PACKAGE_NAME); | ||
819 | createEReference(cftModelEClass, CFT_MODEL__IMPORTS); | ||
820 | createEReference(cftModelEClass, CFT_MODEL__COMPONENT_DEFINITIONS); | ||
821 | createEReference(cftModelEClass, CFT_MODEL__TRANSFORMATION_DEFINITIONS); | ||
822 | |||
823 | importDeclarationEClass = createEClass(IMPORT_DECLARATION); | ||
824 | createEAttribute(importDeclarationEClass, IMPORT_DECLARATION__IMPORTED_NAMESPACE); | ||
825 | |||
826 | componentDefinitionEClass = createEClass(COMPONENT_DEFINITION); | ||
827 | createEAttribute(componentDefinitionEClass, COMPONENT_DEFINITION__NAME); | ||
828 | createEReference(componentDefinitionEClass, COMPONENT_DEFINITION__INPUT_EVENTS); | ||
829 | createEReference(componentDefinitionEClass, COMPONENT_DEFINITION__OUTPUT_EVENTS); | ||
830 | createEReference(componentDefinitionEClass, COMPONENT_DEFINITION__EVENT_DEFINITIONS); | ||
831 | |||
832 | eventDeclarationEClass = createEClass(EVENT_DECLARATION); | ||
833 | createEAttribute(eventDeclarationEClass, EVENT_DECLARATION__NAME); | ||
834 | |||
835 | inputEventEClass = createEClass(INPUT_EVENT); | ||
836 | createEAttribute(inputEventEClass, INPUT_EVENT__MULTIPLE); | ||
837 | |||
838 | eventDefinitionEClass = createEClass(EVENT_DEFINITION); | ||
839 | |||
840 | basicEventDefinitionEClass = createEClass(BASIC_EVENT_DEFINITION); | ||
841 | createEAttribute(basicEventDefinitionEClass, BASIC_EVENT_DEFINITION__RATE); | ||
842 | |||
843 | gateDefinitionEClass = createEClass(GATE_DEFINITION); | ||
844 | createEReference(gateDefinitionEClass, GATE_DEFINITION__INPUT_EVENTS); | ||
845 | |||
846 | andGateEClass = createEClass(AND_GATE); | ||
847 | |||
848 | orGateEClass = createEClass(OR_GATE); | ||
849 | |||
850 | transformationDefinitionEClass = createEClass(TRANSFORMATION_DEFINITION); | ||
851 | createEAttribute(transformationDefinitionEClass, TRANSFORMATION_DEFINITION__NAME); | ||
852 | createEReference(transformationDefinitionEClass, TRANSFORMATION_DEFINITION__MAPPING_DEFINITIONS); | ||
853 | |||
854 | mappingDefinitionEClass = createEClass(MAPPING_DEFINITION); | ||
855 | createEAttribute(mappingDefinitionEClass, MAPPING_DEFINITION__TOP_LEVEL); | ||
856 | createEReference(mappingDefinitionEClass, MAPPING_DEFINITION__PATTERN); | ||
857 | createEReference(mappingDefinitionEClass, MAPPING_DEFINITION__PARAMETERS); | ||
858 | createEReference(mappingDefinitionEClass, MAPPING_DEFINITION__COMPONENT_INSTANCE); | ||
859 | createEReference(mappingDefinitionEClass, MAPPING_DEFINITION__LOOKUP_DEFINITIONS); | ||
860 | createEReference(mappingDefinitionEClass, MAPPING_DEFINITION__ASSIGNMENTS); | ||
861 | |||
862 | mappingParameterEClass = createEClass(MAPPING_PARAMETER); | ||
863 | createEAttribute(mappingParameterEClass, MAPPING_PARAMETER__NAME); | ||
864 | |||
865 | lookupDefinitionEClass = createEClass(LOOKUP_DEFINITION); | ||
866 | createEReference(lookupDefinitionEClass, LOOKUP_DEFINITION__MAPPING); | ||
867 | createEReference(lookupDefinitionEClass, LOOKUP_DEFINITION__ARGUMENTS); | ||
868 | |||
869 | variableEClass = createEClass(VARIABLE); | ||
870 | createEAttribute(variableEClass, VARIABLE__NAME); | ||
871 | |||
872 | assignmentEClass = createEClass(ASSIGNMENT); | ||
873 | createEReference(assignmentEClass, ASSIGNMENT__INPUT); | ||
874 | createEAttribute(assignmentEClass, ASSIGNMENT__MULTIPLE); | ||
875 | createEReference(assignmentEClass, ASSIGNMENT__OUTPUT); | ||
876 | |||
877 | eventReferenceEClass = createEClass(EVENT_REFERENCE); | ||
878 | createEReference(eventReferenceEClass, EVENT_REFERENCE__COMPONENT); | ||
879 | createEReference(eventReferenceEClass, EVENT_REFERENCE__EVENT); | ||
880 | |||
881 | componentInstanceEClass = createEClass(COMPONENT_INSTANCE); | ||
882 | createEReference(componentInstanceEClass, COMPONENT_INSTANCE__COMPONENT_TYPE); | ||
883 | } | ||
884 | |||
885 | /** | ||
886 | * <!-- begin-user-doc --> | ||
887 | * <!-- end-user-doc --> | ||
888 | * @generated | ||
889 | */ | ||
890 | private boolean isInitialized = false; | ||
891 | |||
892 | /** | ||
893 | * Complete the initialization of the package and its meta-model. This | ||
894 | * method is guarded to have no affect on any invocation but its first. | ||
895 | * <!-- begin-user-doc --> | ||
896 | * <!-- end-user-doc --> | ||
897 | * @generated | ||
898 | */ | ||
899 | public void initializePackageContents() | ||
900 | { | ||
901 | if (isInitialized) return; | ||
902 | isInitialized = true; | ||
903 | |||
904 | // Initialize package | ||
905 | setName(eNAME); | ||
906 | setNsPrefix(eNS_PREFIX); | ||
907 | setNsURI(eNS_URI); | ||
908 | |||
909 | // Obtain other dependent packages | ||
910 | EcorePackage theEcorePackage = (EcorePackage)EPackage.Registry.INSTANCE.getEPackage(EcorePackage.eNS_URI); | ||
911 | PatternLanguagePackage thePatternLanguagePackage = (PatternLanguagePackage)EPackage.Registry.INSTANCE.getEPackage(PatternLanguagePackage.eNS_URI); | ||
912 | |||
913 | // Create type parameters | ||
914 | |||
915 | // Set bounds for type parameters | ||
916 | |||
917 | // Add supertypes to classes | ||
918 | inputEventEClass.getESuperTypes().add(this.getEventDeclaration()); | ||
919 | eventDefinitionEClass.getESuperTypes().add(this.getEventDeclaration()); | ||
920 | basicEventDefinitionEClass.getESuperTypes().add(this.getEventDefinition()); | ||
921 | gateDefinitionEClass.getESuperTypes().add(this.getEventDefinition()); | ||
922 | andGateEClass.getESuperTypes().add(this.getGateDefinition()); | ||
923 | orGateEClass.getESuperTypes().add(this.getGateDefinition()); | ||
924 | lookupDefinitionEClass.getESuperTypes().add(this.getVariable()); | ||
925 | componentInstanceEClass.getESuperTypes().add(this.getVariable()); | ||
926 | |||
927 | // Initialize classes and features; add operations and parameters | ||
928 | initEClass(cftModelEClass, CftModel.class, "CftModel", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
929 | initEAttribute(getCftModel_PackageName(), theEcorePackage.getEString(), "packageName", null, 0, 1, CftModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
930 | initEReference(getCftModel_Imports(), this.getImportDeclaration(), null, "imports", null, 0, -1, CftModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
931 | initEReference(getCftModel_ComponentDefinitions(), this.getComponentDefinition(), null, "componentDefinitions", null, 0, -1, CftModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
932 | initEReference(getCftModel_TransformationDefinitions(), this.getTransformationDefinition(), null, "transformationDefinitions", null, 0, -1, CftModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
933 | |||
934 | initEClass(importDeclarationEClass, ImportDeclaration.class, "ImportDeclaration", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
935 | initEAttribute(getImportDeclaration_ImportedNamespace(), theEcorePackage.getEString(), "importedNamespace", null, 0, 1, ImportDeclaration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
936 | |||
937 | initEClass(componentDefinitionEClass, ComponentDefinition.class, "ComponentDefinition", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
938 | initEAttribute(getComponentDefinition_Name(), theEcorePackage.getEString(), "name", null, 0, 1, ComponentDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
939 | 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); | ||
940 | 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); | ||
941 | 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); | ||
942 | |||
943 | initEClass(eventDeclarationEClass, EventDeclaration.class, "EventDeclaration", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
944 | initEAttribute(getEventDeclaration_Name(), theEcorePackage.getEString(), "name", null, 0, 1, EventDeclaration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
945 | |||
946 | initEClass(inputEventEClass, InputEvent.class, "InputEvent", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
947 | initEAttribute(getInputEvent_Multiple(), theEcorePackage.getEBoolean(), "multiple", null, 0, 1, InputEvent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
948 | |||
949 | initEClass(eventDefinitionEClass, EventDefinition.class, "EventDefinition", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
950 | |||
951 | initEClass(basicEventDefinitionEClass, BasicEventDefinition.class, "BasicEventDefinition", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
952 | initEAttribute(getBasicEventDefinition_Rate(), theEcorePackage.getEDouble(), "rate", null, 0, 1, BasicEventDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
953 | |||
954 | initEClass(gateDefinitionEClass, GateDefinition.class, "GateDefinition", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
955 | initEReference(getGateDefinition_InputEvents(), this.getEventDeclaration(), null, "inputEvents", null, 0, -1, GateDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
956 | |||
957 | initEClass(andGateEClass, AndGate.class, "AndGate", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
958 | |||
959 | initEClass(orGateEClass, OrGate.class, "OrGate", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
960 | |||
961 | initEClass(transformationDefinitionEClass, TransformationDefinition.class, "TransformationDefinition", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
962 | initEAttribute(getTransformationDefinition_Name(), theEcorePackage.getEString(), "name", null, 0, 1, TransformationDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
963 | initEReference(getTransformationDefinition_MappingDefinitions(), this.getMappingDefinition(), null, "mappingDefinitions", null, 0, -1, TransformationDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
964 | |||
965 | initEClass(mappingDefinitionEClass, MappingDefinition.class, "MappingDefinition", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
966 | initEAttribute(getMappingDefinition_TopLevel(), theEcorePackage.getEBoolean(), "topLevel", null, 0, 1, MappingDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
967 | initEReference(getMappingDefinition_Pattern(), thePatternLanguagePackage.getPattern(), null, "pattern", null, 0, 1, MappingDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
968 | initEReference(getMappingDefinition_Parameters(), this.getMappingParameter(), null, "parameters", null, 0, -1, MappingDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
969 | initEReference(getMappingDefinition_ComponentInstance(), this.getComponentInstance(), null, "componentInstance", null, 0, 1, MappingDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
970 | initEReference(getMappingDefinition_LookupDefinitions(), this.getLookupDefinition(), null, "lookupDefinitions", null, 0, -1, MappingDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
971 | initEReference(getMappingDefinition_Assignments(), this.getAssignment(), null, "assignments", null, 0, -1, MappingDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
972 | |||
973 | initEClass(mappingParameterEClass, MappingParameter.class, "MappingParameter", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
974 | initEAttribute(getMappingParameter_Name(), theEcorePackage.getEString(), "name", null, 0, 1, MappingParameter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
975 | |||
976 | initEClass(lookupDefinitionEClass, LookupDefinition.class, "LookupDefinition", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
977 | initEReference(getLookupDefinition_Mapping(), this.getMappingDefinition(), null, "mapping", null, 0, 1, LookupDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
978 | initEReference(getLookupDefinition_Arguments(), this.getMappingParameter(), null, "arguments", null, 0, -1, LookupDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
979 | |||
980 | initEClass(variableEClass, Variable.class, "Variable", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
981 | initEAttribute(getVariable_Name(), theEcorePackage.getEString(), "name", null, 0, 1, Variable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
982 | |||
983 | initEClass(assignmentEClass, Assignment.class, "Assignment", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
984 | initEReference(getAssignment_Input(), this.getEventReference(), null, "input", null, 0, 1, Assignment.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
985 | initEAttribute(getAssignment_Multiple(), theEcorePackage.getEBoolean(), "multiple", null, 0, 1, Assignment.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
986 | initEReference(getAssignment_Output(), this.getEventReference(), null, "output", null, 0, 1, Assignment.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
987 | |||
988 | initEClass(eventReferenceEClass, EventReference.class, "EventReference", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
989 | initEReference(getEventReference_Component(), this.getVariable(), null, "component", null, 0, 1, EventReference.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
990 | initEReference(getEventReference_Event(), this.getEventDeclaration(), null, "event", null, 0, 1, EventReference.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
991 | |||
992 | initEClass(componentInstanceEClass, ComponentInstance.class, "ComponentInstance", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
993 | initEReference(getComponentInstance_ComponentType(), this.getComponentDefinition(), null, "componentType", null, 0, 1, ComponentInstance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
994 | |||
995 | // Create resource | ||
996 | createResource(eNS_URI); | ||
997 | } | ||
998 | |||
999 | } //CftLanguagePackageImpl | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/CftModelImpl.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/CftModelImpl.java new file mode 100644 index 00000000..b51f54ab --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/CftModelImpl.java | |||
@@ -0,0 +1,324 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl; | ||
5 | |||
6 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage; | ||
7 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftModel; | ||
8 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ComponentDefinition; | ||
9 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ImportDeclaration; | ||
10 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.TransformationDefinition; | ||
11 | |||
12 | import java.util.Collection; | ||
13 | |||
14 | import org.eclipse.emf.common.notify.Notification; | ||
15 | import org.eclipse.emf.common.notify.NotificationChain; | ||
16 | |||
17 | import org.eclipse.emf.common.util.EList; | ||
18 | |||
19 | import org.eclipse.emf.ecore.EClass; | ||
20 | import org.eclipse.emf.ecore.InternalEObject; | ||
21 | |||
22 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
23 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; | ||
24 | |||
25 | import org.eclipse.emf.ecore.util.EObjectContainmentEList; | ||
26 | import org.eclipse.emf.ecore.util.InternalEList; | ||
27 | |||
28 | /** | ||
29 | * <!-- begin-user-doc --> | ||
30 | * An implementation of the model object '<em><b>Cft Model</b></em>'. | ||
31 | * <!-- end-user-doc --> | ||
32 | * <p> | ||
33 | * The following features are implemented: | ||
34 | * </p> | ||
35 | * <ul> | ||
36 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.CftModelImpl#getPackageName <em>Package Name</em>}</li> | ||
37 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.CftModelImpl#getImports <em>Imports</em>}</li> | ||
38 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.CftModelImpl#getComponentDefinitions <em>Component Definitions</em>}</li> | ||
39 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.CftModelImpl#getTransformationDefinitions <em>Transformation Definitions</em>}</li> | ||
40 | * </ul> | ||
41 | * | ||
42 | * @generated | ||
43 | */ | ||
44 | public class CftModelImpl extends MinimalEObjectImpl.Container implements CftModel | ||
45 | { | ||
46 | /** | ||
47 | * The default value of the '{@link #getPackageName() <em>Package Name</em>}' attribute. | ||
48 | * <!-- begin-user-doc --> | ||
49 | * <!-- end-user-doc --> | ||
50 | * @see #getPackageName() | ||
51 | * @generated | ||
52 | * @ordered | ||
53 | */ | ||
54 | protected static final String PACKAGE_NAME_EDEFAULT = null; | ||
55 | |||
56 | /** | ||
57 | * The cached value of the '{@link #getPackageName() <em>Package Name</em>}' attribute. | ||
58 | * <!-- begin-user-doc --> | ||
59 | * <!-- end-user-doc --> | ||
60 | * @see #getPackageName() | ||
61 | * @generated | ||
62 | * @ordered | ||
63 | */ | ||
64 | protected String packageName = PACKAGE_NAME_EDEFAULT; | ||
65 | |||
66 | /** | ||
67 | * The cached value of the '{@link #getImports() <em>Imports</em>}' containment reference list. | ||
68 | * <!-- begin-user-doc --> | ||
69 | * <!-- end-user-doc --> | ||
70 | * @see #getImports() | ||
71 | * @generated | ||
72 | * @ordered | ||
73 | */ | ||
74 | protected EList<ImportDeclaration> imports; | ||
75 | |||
76 | /** | ||
77 | * The cached value of the '{@link #getComponentDefinitions() <em>Component Definitions</em>}' containment reference list. | ||
78 | * <!-- begin-user-doc --> | ||
79 | * <!-- end-user-doc --> | ||
80 | * @see #getComponentDefinitions() | ||
81 | * @generated | ||
82 | * @ordered | ||
83 | */ | ||
84 | protected EList<ComponentDefinition> componentDefinitions; | ||
85 | |||
86 | /** | ||
87 | * The cached value of the '{@link #getTransformationDefinitions() <em>Transformation Definitions</em>}' containment reference list. | ||
88 | * <!-- begin-user-doc --> | ||
89 | * <!-- end-user-doc --> | ||
90 | * @see #getTransformationDefinitions() | ||
91 | * @generated | ||
92 | * @ordered | ||
93 | */ | ||
94 | protected EList<TransformationDefinition> transformationDefinitions; | ||
95 | |||
96 | /** | ||
97 | * <!-- begin-user-doc --> | ||
98 | * <!-- end-user-doc --> | ||
99 | * @generated | ||
100 | */ | ||
101 | protected CftModelImpl() | ||
102 | { | ||
103 | super(); | ||
104 | } | ||
105 | |||
106 | /** | ||
107 | * <!-- begin-user-doc --> | ||
108 | * <!-- end-user-doc --> | ||
109 | * @generated | ||
110 | */ | ||
111 | @Override | ||
112 | protected EClass eStaticClass() | ||
113 | { | ||
114 | return CftLanguagePackage.Literals.CFT_MODEL; | ||
115 | } | ||
116 | |||
117 | /** | ||
118 | * <!-- begin-user-doc --> | ||
119 | * <!-- end-user-doc --> | ||
120 | * @generated | ||
121 | */ | ||
122 | @Override | ||
123 | public String getPackageName() | ||
124 | { | ||
125 | return packageName; | ||
126 | } | ||
127 | |||
128 | /** | ||
129 | * <!-- begin-user-doc --> | ||
130 | * <!-- end-user-doc --> | ||
131 | * @generated | ||
132 | */ | ||
133 | @Override | ||
134 | public void setPackageName(String newPackageName) | ||
135 | { | ||
136 | String oldPackageName = packageName; | ||
137 | packageName = newPackageName; | ||
138 | if (eNotificationRequired()) | ||
139 | eNotify(new ENotificationImpl(this, Notification.SET, CftLanguagePackage.CFT_MODEL__PACKAGE_NAME, oldPackageName, packageName)); | ||
140 | } | ||
141 | |||
142 | /** | ||
143 | * <!-- begin-user-doc --> | ||
144 | * <!-- end-user-doc --> | ||
145 | * @generated | ||
146 | */ | ||
147 | @Override | ||
148 | public EList<ImportDeclaration> getImports() | ||
149 | { | ||
150 | if (imports == null) | ||
151 | { | ||
152 | imports = new EObjectContainmentEList<ImportDeclaration>(ImportDeclaration.class, this, CftLanguagePackage.CFT_MODEL__IMPORTS); | ||
153 | } | ||
154 | return imports; | ||
155 | } | ||
156 | |||
157 | /** | ||
158 | * <!-- begin-user-doc --> | ||
159 | * <!-- end-user-doc --> | ||
160 | * @generated | ||
161 | */ | ||
162 | @Override | ||
163 | public EList<ComponentDefinition> getComponentDefinitions() | ||
164 | { | ||
165 | if (componentDefinitions == null) | ||
166 | { | ||
167 | componentDefinitions = new EObjectContainmentEList<ComponentDefinition>(ComponentDefinition.class, this, CftLanguagePackage.CFT_MODEL__COMPONENT_DEFINITIONS); | ||
168 | } | ||
169 | return componentDefinitions; | ||
170 | } | ||
171 | |||
172 | /** | ||
173 | * <!-- begin-user-doc --> | ||
174 | * <!-- end-user-doc --> | ||
175 | * @generated | ||
176 | */ | ||
177 | @Override | ||
178 | public EList<TransformationDefinition> getTransformationDefinitions() | ||
179 | { | ||
180 | if (transformationDefinitions == null) | ||
181 | { | ||
182 | transformationDefinitions = new EObjectContainmentEList<TransformationDefinition>(TransformationDefinition.class, this, CftLanguagePackage.CFT_MODEL__TRANSFORMATION_DEFINITIONS); | ||
183 | } | ||
184 | return transformationDefinitions; | ||
185 | } | ||
186 | |||
187 | /** | ||
188 | * <!-- begin-user-doc --> | ||
189 | * <!-- end-user-doc --> | ||
190 | * @generated | ||
191 | */ | ||
192 | @Override | ||
193 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) | ||
194 | { | ||
195 | switch (featureID) | ||
196 | { | ||
197 | case CftLanguagePackage.CFT_MODEL__IMPORTS: | ||
198 | return ((InternalEList<?>)getImports()).basicRemove(otherEnd, msgs); | ||
199 | case CftLanguagePackage.CFT_MODEL__COMPONENT_DEFINITIONS: | ||
200 | return ((InternalEList<?>)getComponentDefinitions()).basicRemove(otherEnd, msgs); | ||
201 | case CftLanguagePackage.CFT_MODEL__TRANSFORMATION_DEFINITIONS: | ||
202 | return ((InternalEList<?>)getTransformationDefinitions()).basicRemove(otherEnd, msgs); | ||
203 | } | ||
204 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
205 | } | ||
206 | |||
207 | /** | ||
208 | * <!-- begin-user-doc --> | ||
209 | * <!-- end-user-doc --> | ||
210 | * @generated | ||
211 | */ | ||
212 | @Override | ||
213 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
214 | { | ||
215 | switch (featureID) | ||
216 | { | ||
217 | case CftLanguagePackage.CFT_MODEL__PACKAGE_NAME: | ||
218 | return getPackageName(); | ||
219 | case CftLanguagePackage.CFT_MODEL__IMPORTS: | ||
220 | return getImports(); | ||
221 | case CftLanguagePackage.CFT_MODEL__COMPONENT_DEFINITIONS: | ||
222 | return getComponentDefinitions(); | ||
223 | case CftLanguagePackage.CFT_MODEL__TRANSFORMATION_DEFINITIONS: | ||
224 | return getTransformationDefinitions(); | ||
225 | } | ||
226 | return super.eGet(featureID, resolve, coreType); | ||
227 | } | ||
228 | |||
229 | /** | ||
230 | * <!-- begin-user-doc --> | ||
231 | * <!-- end-user-doc --> | ||
232 | * @generated | ||
233 | */ | ||
234 | @SuppressWarnings("unchecked") | ||
235 | @Override | ||
236 | public void eSet(int featureID, Object newValue) | ||
237 | { | ||
238 | switch (featureID) | ||
239 | { | ||
240 | case CftLanguagePackage.CFT_MODEL__PACKAGE_NAME: | ||
241 | setPackageName((String)newValue); | ||
242 | return; | ||
243 | case CftLanguagePackage.CFT_MODEL__IMPORTS: | ||
244 | getImports().clear(); | ||
245 | getImports().addAll((Collection<? extends ImportDeclaration>)newValue); | ||
246 | return; | ||
247 | case CftLanguagePackage.CFT_MODEL__COMPONENT_DEFINITIONS: | ||
248 | getComponentDefinitions().clear(); | ||
249 | getComponentDefinitions().addAll((Collection<? extends ComponentDefinition>)newValue); | ||
250 | return; | ||
251 | case CftLanguagePackage.CFT_MODEL__TRANSFORMATION_DEFINITIONS: | ||
252 | getTransformationDefinitions().clear(); | ||
253 | getTransformationDefinitions().addAll((Collection<? extends TransformationDefinition>)newValue); | ||
254 | return; | ||
255 | } | ||
256 | super.eSet(featureID, newValue); | ||
257 | } | ||
258 | |||
259 | /** | ||
260 | * <!-- begin-user-doc --> | ||
261 | * <!-- end-user-doc --> | ||
262 | * @generated | ||
263 | */ | ||
264 | @Override | ||
265 | public void eUnset(int featureID) | ||
266 | { | ||
267 | switch (featureID) | ||
268 | { | ||
269 | case CftLanguagePackage.CFT_MODEL__PACKAGE_NAME: | ||
270 | setPackageName(PACKAGE_NAME_EDEFAULT); | ||
271 | return; | ||
272 | case CftLanguagePackage.CFT_MODEL__IMPORTS: | ||
273 | getImports().clear(); | ||
274 | return; | ||
275 | case CftLanguagePackage.CFT_MODEL__COMPONENT_DEFINITIONS: | ||
276 | getComponentDefinitions().clear(); | ||
277 | return; | ||
278 | case CftLanguagePackage.CFT_MODEL__TRANSFORMATION_DEFINITIONS: | ||
279 | getTransformationDefinitions().clear(); | ||
280 | return; | ||
281 | } | ||
282 | super.eUnset(featureID); | ||
283 | } | ||
284 | |||
285 | /** | ||
286 | * <!-- begin-user-doc --> | ||
287 | * <!-- end-user-doc --> | ||
288 | * @generated | ||
289 | */ | ||
290 | @Override | ||
291 | public boolean eIsSet(int featureID) | ||
292 | { | ||
293 | switch (featureID) | ||
294 | { | ||
295 | case CftLanguagePackage.CFT_MODEL__PACKAGE_NAME: | ||
296 | return PACKAGE_NAME_EDEFAULT == null ? packageName != null : !PACKAGE_NAME_EDEFAULT.equals(packageName); | ||
297 | case CftLanguagePackage.CFT_MODEL__IMPORTS: | ||
298 | return imports != null && !imports.isEmpty(); | ||
299 | case CftLanguagePackage.CFT_MODEL__COMPONENT_DEFINITIONS: | ||
300 | return componentDefinitions != null && !componentDefinitions.isEmpty(); | ||
301 | case CftLanguagePackage.CFT_MODEL__TRANSFORMATION_DEFINITIONS: | ||
302 | return transformationDefinitions != null && !transformationDefinitions.isEmpty(); | ||
303 | } | ||
304 | return super.eIsSet(featureID); | ||
305 | } | ||
306 | |||
307 | /** | ||
308 | * <!-- begin-user-doc --> | ||
309 | * <!-- end-user-doc --> | ||
310 | * @generated | ||
311 | */ | ||
312 | @Override | ||
313 | public String toString() | ||
314 | { | ||
315 | if (eIsProxy()) return super.toString(); | ||
316 | |||
317 | StringBuilder result = new StringBuilder(super.toString()); | ||
318 | result.append(" (packageName: "); | ||
319 | result.append(packageName); | ||
320 | result.append(')'); | ||
321 | return result.toString(); | ||
322 | } | ||
323 | |||
324 | } //CftModelImpl | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/ComponentDefinitionImpl.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/ComponentDefinitionImpl.java new file mode 100644 index 00000000..4633d839 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/ComponentDefinitionImpl.java | |||
@@ -0,0 +1,323 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl; | ||
5 | |||
6 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage; | ||
7 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ComponentDefinition; | ||
8 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.EventDeclaration; | ||
9 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.EventDefinition; | ||
10 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.InputEvent; | ||
11 | |||
12 | import java.util.Collection; | ||
13 | |||
14 | import org.eclipse.emf.common.notify.Notification; | ||
15 | import org.eclipse.emf.common.notify.NotificationChain; | ||
16 | |||
17 | import org.eclipse.emf.common.util.EList; | ||
18 | |||
19 | import org.eclipse.emf.ecore.EClass; | ||
20 | import org.eclipse.emf.ecore.InternalEObject; | ||
21 | |||
22 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
23 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; | ||
24 | |||
25 | import org.eclipse.emf.ecore.util.EObjectContainmentEList; | ||
26 | import org.eclipse.emf.ecore.util.EObjectResolvingEList; | ||
27 | import org.eclipse.emf.ecore.util.InternalEList; | ||
28 | |||
29 | /** | ||
30 | * <!-- begin-user-doc --> | ||
31 | * An implementation of the model object '<em><b>Component Definition</b></em>'. | ||
32 | * <!-- end-user-doc --> | ||
33 | * <p> | ||
34 | * The following features are implemented: | ||
35 | * </p> | ||
36 | * <ul> | ||
37 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.ComponentDefinitionImpl#getName <em>Name</em>}</li> | ||
38 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.ComponentDefinitionImpl#getInputEvents <em>Input Events</em>}</li> | ||
39 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.ComponentDefinitionImpl#getOutputEvents <em>Output Events</em>}</li> | ||
40 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.ComponentDefinitionImpl#getEventDefinitions <em>Event Definitions</em>}</li> | ||
41 | * </ul> | ||
42 | * | ||
43 | * @generated | ||
44 | */ | ||
45 | public class ComponentDefinitionImpl extends MinimalEObjectImpl.Container implements ComponentDefinition | ||
46 | { | ||
47 | /** | ||
48 | * The default value of the '{@link #getName() <em>Name</em>}' attribute. | ||
49 | * <!-- begin-user-doc --> | ||
50 | * <!-- end-user-doc --> | ||
51 | * @see #getName() | ||
52 | * @generated | ||
53 | * @ordered | ||
54 | */ | ||
55 | protected static final String NAME_EDEFAULT = null; | ||
56 | |||
57 | /** | ||
58 | * The cached value of the '{@link #getName() <em>Name</em>}' attribute. | ||
59 | * <!-- begin-user-doc --> | ||
60 | * <!-- end-user-doc --> | ||
61 | * @see #getName() | ||
62 | * @generated | ||
63 | * @ordered | ||
64 | */ | ||
65 | protected String name = NAME_EDEFAULT; | ||
66 | |||
67 | /** | ||
68 | * The cached value of the '{@link #getInputEvents() <em>Input Events</em>}' containment reference list. | ||
69 | * <!-- begin-user-doc --> | ||
70 | * <!-- end-user-doc --> | ||
71 | * @see #getInputEvents() | ||
72 | * @generated | ||
73 | * @ordered | ||
74 | */ | ||
75 | protected EList<InputEvent> inputEvents; | ||
76 | |||
77 | /** | ||
78 | * The cached value of the '{@link #getOutputEvents() <em>Output Events</em>}' reference list. | ||
79 | * <!-- begin-user-doc --> | ||
80 | * <!-- end-user-doc --> | ||
81 | * @see #getOutputEvents() | ||
82 | * @generated | ||
83 | * @ordered | ||
84 | */ | ||
85 | protected EList<EventDeclaration> outputEvents; | ||
86 | |||
87 | /** | ||
88 | * The cached value of the '{@link #getEventDefinitions() <em>Event Definitions</em>}' containment reference list. | ||
89 | * <!-- begin-user-doc --> | ||
90 | * <!-- end-user-doc --> | ||
91 | * @see #getEventDefinitions() | ||
92 | * @generated | ||
93 | * @ordered | ||
94 | */ | ||
95 | protected EList<EventDefinition> eventDefinitions; | ||
96 | |||
97 | /** | ||
98 | * <!-- begin-user-doc --> | ||
99 | * <!-- end-user-doc --> | ||
100 | * @generated | ||
101 | */ | ||
102 | protected ComponentDefinitionImpl() | ||
103 | { | ||
104 | super(); | ||
105 | } | ||
106 | |||
107 | /** | ||
108 | * <!-- begin-user-doc --> | ||
109 | * <!-- end-user-doc --> | ||
110 | * @generated | ||
111 | */ | ||
112 | @Override | ||
113 | protected EClass eStaticClass() | ||
114 | { | ||
115 | return CftLanguagePackage.Literals.COMPONENT_DEFINITION; | ||
116 | } | ||
117 | |||
118 | /** | ||
119 | * <!-- begin-user-doc --> | ||
120 | * <!-- end-user-doc --> | ||
121 | * @generated | ||
122 | */ | ||
123 | @Override | ||
124 | public String getName() | ||
125 | { | ||
126 | return name; | ||
127 | } | ||
128 | |||
129 | /** | ||
130 | * <!-- begin-user-doc --> | ||
131 | * <!-- end-user-doc --> | ||
132 | * @generated | ||
133 | */ | ||
134 | @Override | ||
135 | public void setName(String newName) | ||
136 | { | ||
137 | String oldName = name; | ||
138 | name = newName; | ||
139 | if (eNotificationRequired()) | ||
140 | eNotify(new ENotificationImpl(this, Notification.SET, CftLanguagePackage.COMPONENT_DEFINITION__NAME, oldName, name)); | ||
141 | } | ||
142 | |||
143 | /** | ||
144 | * <!-- begin-user-doc --> | ||
145 | * <!-- end-user-doc --> | ||
146 | * @generated | ||
147 | */ | ||
148 | @Override | ||
149 | public EList<InputEvent> getInputEvents() | ||
150 | { | ||
151 | if (inputEvents == null) | ||
152 | { | ||
153 | inputEvents = new EObjectContainmentEList<InputEvent>(InputEvent.class, this, CftLanguagePackage.COMPONENT_DEFINITION__INPUT_EVENTS); | ||
154 | } | ||
155 | return inputEvents; | ||
156 | } | ||
157 | |||
158 | /** | ||
159 | * <!-- begin-user-doc --> | ||
160 | * <!-- end-user-doc --> | ||
161 | * @generated | ||
162 | */ | ||
163 | @Override | ||
164 | public EList<EventDeclaration> getOutputEvents() | ||
165 | { | ||
166 | if (outputEvents == null) | ||
167 | { | ||
168 | outputEvents = new EObjectResolvingEList<EventDeclaration>(EventDeclaration.class, this, CftLanguagePackage.COMPONENT_DEFINITION__OUTPUT_EVENTS); | ||
169 | } | ||
170 | return outputEvents; | ||
171 | } | ||
172 | |||
173 | /** | ||
174 | * <!-- begin-user-doc --> | ||
175 | * <!-- end-user-doc --> | ||
176 | * @generated | ||
177 | */ | ||
178 | @Override | ||
179 | public EList<EventDefinition> getEventDefinitions() | ||
180 | { | ||
181 | if (eventDefinitions == null) | ||
182 | { | ||
183 | eventDefinitions = new EObjectContainmentEList<EventDefinition>(EventDefinition.class, this, CftLanguagePackage.COMPONENT_DEFINITION__EVENT_DEFINITIONS); | ||
184 | } | ||
185 | return eventDefinitions; | ||
186 | } | ||
187 | |||
188 | /** | ||
189 | * <!-- begin-user-doc --> | ||
190 | * <!-- end-user-doc --> | ||
191 | * @generated | ||
192 | */ | ||
193 | @Override | ||
194 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) | ||
195 | { | ||
196 | switch (featureID) | ||
197 | { | ||
198 | case CftLanguagePackage.COMPONENT_DEFINITION__INPUT_EVENTS: | ||
199 | return ((InternalEList<?>)getInputEvents()).basicRemove(otherEnd, msgs); | ||
200 | case CftLanguagePackage.COMPONENT_DEFINITION__EVENT_DEFINITIONS: | ||
201 | return ((InternalEList<?>)getEventDefinitions()).basicRemove(otherEnd, msgs); | ||
202 | } | ||
203 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
204 | } | ||
205 | |||
206 | /** | ||
207 | * <!-- begin-user-doc --> | ||
208 | * <!-- end-user-doc --> | ||
209 | * @generated | ||
210 | */ | ||
211 | @Override | ||
212 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
213 | { | ||
214 | switch (featureID) | ||
215 | { | ||
216 | case CftLanguagePackage.COMPONENT_DEFINITION__NAME: | ||
217 | return getName(); | ||
218 | case CftLanguagePackage.COMPONENT_DEFINITION__INPUT_EVENTS: | ||
219 | return getInputEvents(); | ||
220 | case CftLanguagePackage.COMPONENT_DEFINITION__OUTPUT_EVENTS: | ||
221 | return getOutputEvents(); | ||
222 | case CftLanguagePackage.COMPONENT_DEFINITION__EVENT_DEFINITIONS: | ||
223 | return getEventDefinitions(); | ||
224 | } | ||
225 | return super.eGet(featureID, resolve, coreType); | ||
226 | } | ||
227 | |||
228 | /** | ||
229 | * <!-- begin-user-doc --> | ||
230 | * <!-- end-user-doc --> | ||
231 | * @generated | ||
232 | */ | ||
233 | @SuppressWarnings("unchecked") | ||
234 | @Override | ||
235 | public void eSet(int featureID, Object newValue) | ||
236 | { | ||
237 | switch (featureID) | ||
238 | { | ||
239 | case CftLanguagePackage.COMPONENT_DEFINITION__NAME: | ||
240 | setName((String)newValue); | ||
241 | return; | ||
242 | case CftLanguagePackage.COMPONENT_DEFINITION__INPUT_EVENTS: | ||
243 | getInputEvents().clear(); | ||
244 | getInputEvents().addAll((Collection<? extends InputEvent>)newValue); | ||
245 | return; | ||
246 | case CftLanguagePackage.COMPONENT_DEFINITION__OUTPUT_EVENTS: | ||
247 | getOutputEvents().clear(); | ||
248 | getOutputEvents().addAll((Collection<? extends EventDeclaration>)newValue); | ||
249 | return; | ||
250 | case CftLanguagePackage.COMPONENT_DEFINITION__EVENT_DEFINITIONS: | ||
251 | getEventDefinitions().clear(); | ||
252 | getEventDefinitions().addAll((Collection<? extends EventDefinition>)newValue); | ||
253 | return; | ||
254 | } | ||
255 | super.eSet(featureID, newValue); | ||
256 | } | ||
257 | |||
258 | /** | ||
259 | * <!-- begin-user-doc --> | ||
260 | * <!-- end-user-doc --> | ||
261 | * @generated | ||
262 | */ | ||
263 | @Override | ||
264 | public void eUnset(int featureID) | ||
265 | { | ||
266 | switch (featureID) | ||
267 | { | ||
268 | case CftLanguagePackage.COMPONENT_DEFINITION__NAME: | ||
269 | setName(NAME_EDEFAULT); | ||
270 | return; | ||
271 | case CftLanguagePackage.COMPONENT_DEFINITION__INPUT_EVENTS: | ||
272 | getInputEvents().clear(); | ||
273 | return; | ||
274 | case CftLanguagePackage.COMPONENT_DEFINITION__OUTPUT_EVENTS: | ||
275 | getOutputEvents().clear(); | ||
276 | return; | ||
277 | case CftLanguagePackage.COMPONENT_DEFINITION__EVENT_DEFINITIONS: | ||
278 | getEventDefinitions().clear(); | ||
279 | return; | ||
280 | } | ||
281 | super.eUnset(featureID); | ||
282 | } | ||
283 | |||
284 | /** | ||
285 | * <!-- begin-user-doc --> | ||
286 | * <!-- end-user-doc --> | ||
287 | * @generated | ||
288 | */ | ||
289 | @Override | ||
290 | public boolean eIsSet(int featureID) | ||
291 | { | ||
292 | switch (featureID) | ||
293 | { | ||
294 | case CftLanguagePackage.COMPONENT_DEFINITION__NAME: | ||
295 | return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); | ||
296 | case CftLanguagePackage.COMPONENT_DEFINITION__INPUT_EVENTS: | ||
297 | return inputEvents != null && !inputEvents.isEmpty(); | ||
298 | case CftLanguagePackage.COMPONENT_DEFINITION__OUTPUT_EVENTS: | ||
299 | return outputEvents != null && !outputEvents.isEmpty(); | ||
300 | case CftLanguagePackage.COMPONENT_DEFINITION__EVENT_DEFINITIONS: | ||
301 | return eventDefinitions != null && !eventDefinitions.isEmpty(); | ||
302 | } | ||
303 | return super.eIsSet(featureID); | ||
304 | } | ||
305 | |||
306 | /** | ||
307 | * <!-- begin-user-doc --> | ||
308 | * <!-- end-user-doc --> | ||
309 | * @generated | ||
310 | */ | ||
311 | @Override | ||
312 | public String toString() | ||
313 | { | ||
314 | if (eIsProxy()) return super.toString(); | ||
315 | |||
316 | StringBuilder result = new StringBuilder(super.toString()); | ||
317 | result.append(" (name: "); | ||
318 | result.append(name); | ||
319 | result.append(')'); | ||
320 | return result.toString(); | ||
321 | } | ||
322 | |||
323 | } //ComponentDefinitionImpl | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/ComponentInstanceImpl.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/ComponentInstanceImpl.java new file mode 100644 index 00000000..5966e55c --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/ComponentInstanceImpl.java | |||
@@ -0,0 +1,175 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl; | ||
5 | |||
6 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage; | ||
7 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ComponentDefinition; | ||
8 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ComponentInstance; | ||
9 | |||
10 | import org.eclipse.emf.common.notify.Notification; | ||
11 | |||
12 | import org.eclipse.emf.ecore.EClass; | ||
13 | import org.eclipse.emf.ecore.InternalEObject; | ||
14 | |||
15 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
16 | |||
17 | /** | ||
18 | * <!-- begin-user-doc --> | ||
19 | * An implementation of the model object '<em><b>Component Instance</b></em>'. | ||
20 | * <!-- end-user-doc --> | ||
21 | * <p> | ||
22 | * The following features are implemented: | ||
23 | * </p> | ||
24 | * <ul> | ||
25 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.ComponentInstanceImpl#getComponentType <em>Component Type</em>}</li> | ||
26 | * </ul> | ||
27 | * | ||
28 | * @generated | ||
29 | */ | ||
30 | public class ComponentInstanceImpl extends VariableImpl implements ComponentInstance | ||
31 | { | ||
32 | /** | ||
33 | * The cached value of the '{@link #getComponentType() <em>Component Type</em>}' reference. | ||
34 | * <!-- begin-user-doc --> | ||
35 | * <!-- end-user-doc --> | ||
36 | * @see #getComponentType() | ||
37 | * @generated | ||
38 | * @ordered | ||
39 | */ | ||
40 | protected ComponentDefinition componentType; | ||
41 | |||
42 | /** | ||
43 | * <!-- begin-user-doc --> | ||
44 | * <!-- end-user-doc --> | ||
45 | * @generated | ||
46 | */ | ||
47 | protected ComponentInstanceImpl() | ||
48 | { | ||
49 | super(); | ||
50 | } | ||
51 | |||
52 | /** | ||
53 | * <!-- begin-user-doc --> | ||
54 | * <!-- end-user-doc --> | ||
55 | * @generated | ||
56 | */ | ||
57 | @Override | ||
58 | protected EClass eStaticClass() | ||
59 | { | ||
60 | return CftLanguagePackage.Literals.COMPONENT_INSTANCE; | ||
61 | } | ||
62 | |||
63 | /** | ||
64 | * <!-- begin-user-doc --> | ||
65 | * <!-- end-user-doc --> | ||
66 | * @generated | ||
67 | */ | ||
68 | @Override | ||
69 | public ComponentDefinition getComponentType() | ||
70 | { | ||
71 | if (componentType != null && componentType.eIsProxy()) | ||
72 | { | ||
73 | InternalEObject oldComponentType = (InternalEObject)componentType; | ||
74 | componentType = (ComponentDefinition)eResolveProxy(oldComponentType); | ||
75 | if (componentType != oldComponentType) | ||
76 | { | ||
77 | if (eNotificationRequired()) | ||
78 | eNotify(new ENotificationImpl(this, Notification.RESOLVE, CftLanguagePackage.COMPONENT_INSTANCE__COMPONENT_TYPE, oldComponentType, componentType)); | ||
79 | } | ||
80 | } | ||
81 | return componentType; | ||
82 | } | ||
83 | |||
84 | /** | ||
85 | * <!-- begin-user-doc --> | ||
86 | * <!-- end-user-doc --> | ||
87 | * @generated | ||
88 | */ | ||
89 | public ComponentDefinition basicGetComponentType() | ||
90 | { | ||
91 | return componentType; | ||
92 | } | ||
93 | |||
94 | /** | ||
95 | * <!-- begin-user-doc --> | ||
96 | * <!-- end-user-doc --> | ||
97 | * @generated | ||
98 | */ | ||
99 | @Override | ||
100 | public void setComponentType(ComponentDefinition newComponentType) | ||
101 | { | ||
102 | ComponentDefinition oldComponentType = componentType; | ||
103 | componentType = newComponentType; | ||
104 | if (eNotificationRequired()) | ||
105 | eNotify(new ENotificationImpl(this, Notification.SET, CftLanguagePackage.COMPONENT_INSTANCE__COMPONENT_TYPE, oldComponentType, componentType)); | ||
106 | } | ||
107 | |||
108 | /** | ||
109 | * <!-- begin-user-doc --> | ||
110 | * <!-- end-user-doc --> | ||
111 | * @generated | ||
112 | */ | ||
113 | @Override | ||
114 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
115 | { | ||
116 | switch (featureID) | ||
117 | { | ||
118 | case CftLanguagePackage.COMPONENT_INSTANCE__COMPONENT_TYPE: | ||
119 | if (resolve) return getComponentType(); | ||
120 | return basicGetComponentType(); | ||
121 | } | ||
122 | return super.eGet(featureID, resolve, coreType); | ||
123 | } | ||
124 | |||
125 | /** | ||
126 | * <!-- begin-user-doc --> | ||
127 | * <!-- end-user-doc --> | ||
128 | * @generated | ||
129 | */ | ||
130 | @Override | ||
131 | public void eSet(int featureID, Object newValue) | ||
132 | { | ||
133 | switch (featureID) | ||
134 | { | ||
135 | case CftLanguagePackage.COMPONENT_INSTANCE__COMPONENT_TYPE: | ||
136 | setComponentType((ComponentDefinition)newValue); | ||
137 | return; | ||
138 | } | ||
139 | super.eSet(featureID, newValue); | ||
140 | } | ||
141 | |||
142 | /** | ||
143 | * <!-- begin-user-doc --> | ||
144 | * <!-- end-user-doc --> | ||
145 | * @generated | ||
146 | */ | ||
147 | @Override | ||
148 | public void eUnset(int featureID) | ||
149 | { | ||
150 | switch (featureID) | ||
151 | { | ||
152 | case CftLanguagePackage.COMPONENT_INSTANCE__COMPONENT_TYPE: | ||
153 | setComponentType((ComponentDefinition)null); | ||
154 | return; | ||
155 | } | ||
156 | super.eUnset(featureID); | ||
157 | } | ||
158 | |||
159 | /** | ||
160 | * <!-- begin-user-doc --> | ||
161 | * <!-- end-user-doc --> | ||
162 | * @generated | ||
163 | */ | ||
164 | @Override | ||
165 | public boolean eIsSet(int featureID) | ||
166 | { | ||
167 | switch (featureID) | ||
168 | { | ||
169 | case CftLanguagePackage.COMPONENT_INSTANCE__COMPONENT_TYPE: | ||
170 | return componentType != null; | ||
171 | } | ||
172 | return super.eIsSet(featureID); | ||
173 | } | ||
174 | |||
175 | } //ComponentInstanceImpl | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/EventDeclarationImpl.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/EventDeclarationImpl.java new file mode 100644 index 00000000..c9964c20 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/EventDeclarationImpl.java | |||
@@ -0,0 +1,180 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl; | ||
5 | |||
6 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage; | ||
7 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.EventDeclaration; | ||
8 | |||
9 | import org.eclipse.emf.common.notify.Notification; | ||
10 | |||
11 | import org.eclipse.emf.ecore.EClass; | ||
12 | |||
13 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
14 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; | ||
15 | |||
16 | /** | ||
17 | * <!-- begin-user-doc --> | ||
18 | * An implementation of the model object '<em><b>Event Declaration</b></em>'. | ||
19 | * <!-- end-user-doc --> | ||
20 | * <p> | ||
21 | * The following features are implemented: | ||
22 | * </p> | ||
23 | * <ul> | ||
24 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.EventDeclarationImpl#getName <em>Name</em>}</li> | ||
25 | * </ul> | ||
26 | * | ||
27 | * @generated | ||
28 | */ | ||
29 | public class EventDeclarationImpl extends MinimalEObjectImpl.Container implements EventDeclaration | ||
30 | { | ||
31 | /** | ||
32 | * The default value of the '{@link #getName() <em>Name</em>}' attribute. | ||
33 | * <!-- begin-user-doc --> | ||
34 | * <!-- end-user-doc --> | ||
35 | * @see #getName() | ||
36 | * @generated | ||
37 | * @ordered | ||
38 | */ | ||
39 | protected static final String NAME_EDEFAULT = null; | ||
40 | |||
41 | /** | ||
42 | * The cached value of the '{@link #getName() <em>Name</em>}' attribute. | ||
43 | * <!-- begin-user-doc --> | ||
44 | * <!-- end-user-doc --> | ||
45 | * @see #getName() | ||
46 | * @generated | ||
47 | * @ordered | ||
48 | */ | ||
49 | protected String name = NAME_EDEFAULT; | ||
50 | |||
51 | /** | ||
52 | * <!-- begin-user-doc --> | ||
53 | * <!-- end-user-doc --> | ||
54 | * @generated | ||
55 | */ | ||
56 | protected EventDeclarationImpl() | ||
57 | { | ||
58 | super(); | ||
59 | } | ||
60 | |||
61 | /** | ||
62 | * <!-- begin-user-doc --> | ||
63 | * <!-- end-user-doc --> | ||
64 | * @generated | ||
65 | */ | ||
66 | @Override | ||
67 | protected EClass eStaticClass() | ||
68 | { | ||
69 | return CftLanguagePackage.Literals.EVENT_DECLARATION; | ||
70 | } | ||
71 | |||
72 | /** | ||
73 | * <!-- begin-user-doc --> | ||
74 | * <!-- end-user-doc --> | ||
75 | * @generated | ||
76 | */ | ||
77 | @Override | ||
78 | public String getName() | ||
79 | { | ||
80 | return name; | ||
81 | } | ||
82 | |||
83 | /** | ||
84 | * <!-- begin-user-doc --> | ||
85 | * <!-- end-user-doc --> | ||
86 | * @generated | ||
87 | */ | ||
88 | @Override | ||
89 | public void setName(String newName) | ||
90 | { | ||
91 | String oldName = name; | ||
92 | name = newName; | ||
93 | if (eNotificationRequired()) | ||
94 | eNotify(new ENotificationImpl(this, Notification.SET, CftLanguagePackage.EVENT_DECLARATION__NAME, oldName, name)); | ||
95 | } | ||
96 | |||
97 | /** | ||
98 | * <!-- begin-user-doc --> | ||
99 | * <!-- end-user-doc --> | ||
100 | * @generated | ||
101 | */ | ||
102 | @Override | ||
103 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
104 | { | ||
105 | switch (featureID) | ||
106 | { | ||
107 | case CftLanguagePackage.EVENT_DECLARATION__NAME: | ||
108 | return getName(); | ||
109 | } | ||
110 | return super.eGet(featureID, resolve, coreType); | ||
111 | } | ||
112 | |||
113 | /** | ||
114 | * <!-- begin-user-doc --> | ||
115 | * <!-- end-user-doc --> | ||
116 | * @generated | ||
117 | */ | ||
118 | @Override | ||
119 | public void eSet(int featureID, Object newValue) | ||
120 | { | ||
121 | switch (featureID) | ||
122 | { | ||
123 | case CftLanguagePackage.EVENT_DECLARATION__NAME: | ||
124 | setName((String)newValue); | ||
125 | return; | ||
126 | } | ||
127 | super.eSet(featureID, newValue); | ||
128 | } | ||
129 | |||
130 | /** | ||
131 | * <!-- begin-user-doc --> | ||
132 | * <!-- end-user-doc --> | ||
133 | * @generated | ||
134 | */ | ||
135 | @Override | ||
136 | public void eUnset(int featureID) | ||
137 | { | ||
138 | switch (featureID) | ||
139 | { | ||
140 | case CftLanguagePackage.EVENT_DECLARATION__NAME: | ||
141 | setName(NAME_EDEFAULT); | ||
142 | return; | ||
143 | } | ||
144 | super.eUnset(featureID); | ||
145 | } | ||
146 | |||
147 | /** | ||
148 | * <!-- begin-user-doc --> | ||
149 | * <!-- end-user-doc --> | ||
150 | * @generated | ||
151 | */ | ||
152 | @Override | ||
153 | public boolean eIsSet(int featureID) | ||
154 | { | ||
155 | switch (featureID) | ||
156 | { | ||
157 | case CftLanguagePackage.EVENT_DECLARATION__NAME: | ||
158 | return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); | ||
159 | } | ||
160 | return super.eIsSet(featureID); | ||
161 | } | ||
162 | |||
163 | /** | ||
164 | * <!-- begin-user-doc --> | ||
165 | * <!-- end-user-doc --> | ||
166 | * @generated | ||
167 | */ | ||
168 | @Override | ||
169 | public String toString() | ||
170 | { | ||
171 | if (eIsProxy()) return super.toString(); | ||
172 | |||
173 | StringBuilder result = new StringBuilder(super.toString()); | ||
174 | result.append(" (name: "); | ||
175 | result.append(name); | ||
176 | result.append(')'); | ||
177 | return result.toString(); | ||
178 | } | ||
179 | |||
180 | } //EventDeclarationImpl | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/EventDefinitionImpl.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/EventDefinitionImpl.java new file mode 100644 index 00000000..0c03504b --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/EventDefinitionImpl.java | |||
@@ -0,0 +1,41 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl; | ||
5 | |||
6 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage; | ||
7 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.EventDefinition; | ||
8 | |||
9 | import org.eclipse.emf.ecore.EClass; | ||
10 | |||
11 | /** | ||
12 | * <!-- begin-user-doc --> | ||
13 | * An implementation of the model object '<em><b>Event Definition</b></em>'. | ||
14 | * <!-- end-user-doc --> | ||
15 | * | ||
16 | * @generated | ||
17 | */ | ||
18 | public class EventDefinitionImpl extends EventDeclarationImpl implements EventDefinition | ||
19 | { | ||
20 | /** | ||
21 | * <!-- begin-user-doc --> | ||
22 | * <!-- end-user-doc --> | ||
23 | * @generated | ||
24 | */ | ||
25 | protected EventDefinitionImpl() | ||
26 | { | ||
27 | super(); | ||
28 | } | ||
29 | |||
30 | /** | ||
31 | * <!-- begin-user-doc --> | ||
32 | * <!-- end-user-doc --> | ||
33 | * @generated | ||
34 | */ | ||
35 | @Override | ||
36 | protected EClass eStaticClass() | ||
37 | { | ||
38 | return CftLanguagePackage.Literals.EVENT_DEFINITION; | ||
39 | } | ||
40 | |||
41 | } //EventDefinitionImpl | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/EventReferenceImpl.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/EventReferenceImpl.java new file mode 100644 index 00000000..f10ae8a2 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/EventReferenceImpl.java | |||
@@ -0,0 +1,244 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl; | ||
5 | |||
6 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage; | ||
7 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.EventDeclaration; | ||
8 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.EventReference; | ||
9 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.Variable; | ||
10 | |||
11 | import org.eclipse.emf.common.notify.Notification; | ||
12 | |||
13 | import org.eclipse.emf.ecore.EClass; | ||
14 | import org.eclipse.emf.ecore.InternalEObject; | ||
15 | |||
16 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
17 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; | ||
18 | |||
19 | /** | ||
20 | * <!-- begin-user-doc --> | ||
21 | * An implementation of the model object '<em><b>Event Reference</b></em>'. | ||
22 | * <!-- end-user-doc --> | ||
23 | * <p> | ||
24 | * The following features are implemented: | ||
25 | * </p> | ||
26 | * <ul> | ||
27 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.EventReferenceImpl#getComponent <em>Component</em>}</li> | ||
28 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.EventReferenceImpl#getEvent <em>Event</em>}</li> | ||
29 | * </ul> | ||
30 | * | ||
31 | * @generated | ||
32 | */ | ||
33 | public class EventReferenceImpl extends MinimalEObjectImpl.Container implements EventReference | ||
34 | { | ||
35 | /** | ||
36 | * The cached value of the '{@link #getComponent() <em>Component</em>}' reference. | ||
37 | * <!-- begin-user-doc --> | ||
38 | * <!-- end-user-doc --> | ||
39 | * @see #getComponent() | ||
40 | * @generated | ||
41 | * @ordered | ||
42 | */ | ||
43 | protected Variable component; | ||
44 | |||
45 | /** | ||
46 | * The cached value of the '{@link #getEvent() <em>Event</em>}' reference. | ||
47 | * <!-- begin-user-doc --> | ||
48 | * <!-- end-user-doc --> | ||
49 | * @see #getEvent() | ||
50 | * @generated | ||
51 | * @ordered | ||
52 | */ | ||
53 | protected EventDeclaration event; | ||
54 | |||
55 | /** | ||
56 | * <!-- begin-user-doc --> | ||
57 | * <!-- end-user-doc --> | ||
58 | * @generated | ||
59 | */ | ||
60 | protected EventReferenceImpl() | ||
61 | { | ||
62 | super(); | ||
63 | } | ||
64 | |||
65 | /** | ||
66 | * <!-- begin-user-doc --> | ||
67 | * <!-- end-user-doc --> | ||
68 | * @generated | ||
69 | */ | ||
70 | @Override | ||
71 | protected EClass eStaticClass() | ||
72 | { | ||
73 | return CftLanguagePackage.Literals.EVENT_REFERENCE; | ||
74 | } | ||
75 | |||
76 | /** | ||
77 | * <!-- begin-user-doc --> | ||
78 | * <!-- end-user-doc --> | ||
79 | * @generated | ||
80 | */ | ||
81 | @Override | ||
82 | public Variable getComponent() | ||
83 | { | ||
84 | if (component != null && component.eIsProxy()) | ||
85 | { | ||
86 | InternalEObject oldComponent = (InternalEObject)component; | ||
87 | component = (Variable)eResolveProxy(oldComponent); | ||
88 | if (component != oldComponent) | ||
89 | { | ||
90 | if (eNotificationRequired()) | ||
91 | eNotify(new ENotificationImpl(this, Notification.RESOLVE, CftLanguagePackage.EVENT_REFERENCE__COMPONENT, oldComponent, component)); | ||
92 | } | ||
93 | } | ||
94 | return component; | ||
95 | } | ||
96 | |||
97 | /** | ||
98 | * <!-- begin-user-doc --> | ||
99 | * <!-- end-user-doc --> | ||
100 | * @generated | ||
101 | */ | ||
102 | public Variable basicGetComponent() | ||
103 | { | ||
104 | return component; | ||
105 | } | ||
106 | |||
107 | /** | ||
108 | * <!-- begin-user-doc --> | ||
109 | * <!-- end-user-doc --> | ||
110 | * @generated | ||
111 | */ | ||
112 | @Override | ||
113 | public void setComponent(Variable newComponent) | ||
114 | { | ||
115 | Variable oldComponent = component; | ||
116 | component = newComponent; | ||
117 | if (eNotificationRequired()) | ||
118 | eNotify(new ENotificationImpl(this, Notification.SET, CftLanguagePackage.EVENT_REFERENCE__COMPONENT, oldComponent, component)); | ||
119 | } | ||
120 | |||
121 | /** | ||
122 | * <!-- begin-user-doc --> | ||
123 | * <!-- end-user-doc --> | ||
124 | * @generated | ||
125 | */ | ||
126 | @Override | ||
127 | public EventDeclaration getEvent() | ||
128 | { | ||
129 | if (event != null && event.eIsProxy()) | ||
130 | { | ||
131 | InternalEObject oldEvent = (InternalEObject)event; | ||
132 | event = (EventDeclaration)eResolveProxy(oldEvent); | ||
133 | if (event != oldEvent) | ||
134 | { | ||
135 | if (eNotificationRequired()) | ||
136 | eNotify(new ENotificationImpl(this, Notification.RESOLVE, CftLanguagePackage.EVENT_REFERENCE__EVENT, oldEvent, event)); | ||
137 | } | ||
138 | } | ||
139 | return event; | ||
140 | } | ||
141 | |||
142 | /** | ||
143 | * <!-- begin-user-doc --> | ||
144 | * <!-- end-user-doc --> | ||
145 | * @generated | ||
146 | */ | ||
147 | public EventDeclaration basicGetEvent() | ||
148 | { | ||
149 | return event; | ||
150 | } | ||
151 | |||
152 | /** | ||
153 | * <!-- begin-user-doc --> | ||
154 | * <!-- end-user-doc --> | ||
155 | * @generated | ||
156 | */ | ||
157 | @Override | ||
158 | public void setEvent(EventDeclaration newEvent) | ||
159 | { | ||
160 | EventDeclaration oldEvent = event; | ||
161 | event = newEvent; | ||
162 | if (eNotificationRequired()) | ||
163 | eNotify(new ENotificationImpl(this, Notification.SET, CftLanguagePackage.EVENT_REFERENCE__EVENT, oldEvent, event)); | ||
164 | } | ||
165 | |||
166 | /** | ||
167 | * <!-- begin-user-doc --> | ||
168 | * <!-- end-user-doc --> | ||
169 | * @generated | ||
170 | */ | ||
171 | @Override | ||
172 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
173 | { | ||
174 | switch (featureID) | ||
175 | { | ||
176 | case CftLanguagePackage.EVENT_REFERENCE__COMPONENT: | ||
177 | if (resolve) return getComponent(); | ||
178 | return basicGetComponent(); | ||
179 | case CftLanguagePackage.EVENT_REFERENCE__EVENT: | ||
180 | if (resolve) return getEvent(); | ||
181 | return basicGetEvent(); | ||
182 | } | ||
183 | return super.eGet(featureID, resolve, coreType); | ||
184 | } | ||
185 | |||
186 | /** | ||
187 | * <!-- begin-user-doc --> | ||
188 | * <!-- end-user-doc --> | ||
189 | * @generated | ||
190 | */ | ||
191 | @Override | ||
192 | public void eSet(int featureID, Object newValue) | ||
193 | { | ||
194 | switch (featureID) | ||
195 | { | ||
196 | case CftLanguagePackage.EVENT_REFERENCE__COMPONENT: | ||
197 | setComponent((Variable)newValue); | ||
198 | return; | ||
199 | case CftLanguagePackage.EVENT_REFERENCE__EVENT: | ||
200 | setEvent((EventDeclaration)newValue); | ||
201 | return; | ||
202 | } | ||
203 | super.eSet(featureID, newValue); | ||
204 | } | ||
205 | |||
206 | /** | ||
207 | * <!-- begin-user-doc --> | ||
208 | * <!-- end-user-doc --> | ||
209 | * @generated | ||
210 | */ | ||
211 | @Override | ||
212 | public void eUnset(int featureID) | ||
213 | { | ||
214 | switch (featureID) | ||
215 | { | ||
216 | case CftLanguagePackage.EVENT_REFERENCE__COMPONENT: | ||
217 | setComponent((Variable)null); | ||
218 | return; | ||
219 | case CftLanguagePackage.EVENT_REFERENCE__EVENT: | ||
220 | setEvent((EventDeclaration)null); | ||
221 | return; | ||
222 | } | ||
223 | super.eUnset(featureID); | ||
224 | } | ||
225 | |||
226 | /** | ||
227 | * <!-- begin-user-doc --> | ||
228 | * <!-- end-user-doc --> | ||
229 | * @generated | ||
230 | */ | ||
231 | @Override | ||
232 | public boolean eIsSet(int featureID) | ||
233 | { | ||
234 | switch (featureID) | ||
235 | { | ||
236 | case CftLanguagePackage.EVENT_REFERENCE__COMPONENT: | ||
237 | return component != null; | ||
238 | case CftLanguagePackage.EVENT_REFERENCE__EVENT: | ||
239 | return event != null; | ||
240 | } | ||
241 | return super.eIsSet(featureID); | ||
242 | } | ||
243 | |||
244 | } //EventReferenceImpl | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/GateDefinitionImpl.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/GateDefinitionImpl.java new file mode 100644 index 00000000..76b12fc2 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/GateDefinitionImpl.java | |||
@@ -0,0 +1,147 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl; | ||
5 | |||
6 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage; | ||
7 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.EventDeclaration; | ||
8 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.GateDefinition; | ||
9 | |||
10 | import java.util.Collection; | ||
11 | |||
12 | import org.eclipse.emf.common.util.EList; | ||
13 | |||
14 | import org.eclipse.emf.ecore.EClass; | ||
15 | |||
16 | import org.eclipse.emf.ecore.util.EObjectResolvingEList; | ||
17 | |||
18 | /** | ||
19 | * <!-- begin-user-doc --> | ||
20 | * An implementation of the model object '<em><b>Gate Definition</b></em>'. | ||
21 | * <!-- end-user-doc --> | ||
22 | * <p> | ||
23 | * The following features are implemented: | ||
24 | * </p> | ||
25 | * <ul> | ||
26 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.GateDefinitionImpl#getInputEvents <em>Input Events</em>}</li> | ||
27 | * </ul> | ||
28 | * | ||
29 | * @generated | ||
30 | */ | ||
31 | public class GateDefinitionImpl extends EventDefinitionImpl implements GateDefinition | ||
32 | { | ||
33 | /** | ||
34 | * The cached value of the '{@link #getInputEvents() <em>Input Events</em>}' reference list. | ||
35 | * <!-- begin-user-doc --> | ||
36 | * <!-- end-user-doc --> | ||
37 | * @see #getInputEvents() | ||
38 | * @generated | ||
39 | * @ordered | ||
40 | */ | ||
41 | protected EList<EventDeclaration> inputEvents; | ||
42 | |||
43 | /** | ||
44 | * <!-- begin-user-doc --> | ||
45 | * <!-- end-user-doc --> | ||
46 | * @generated | ||
47 | */ | ||
48 | protected GateDefinitionImpl() | ||
49 | { | ||
50 | super(); | ||
51 | } | ||
52 | |||
53 | /** | ||
54 | * <!-- begin-user-doc --> | ||
55 | * <!-- end-user-doc --> | ||
56 | * @generated | ||
57 | */ | ||
58 | @Override | ||
59 | protected EClass eStaticClass() | ||
60 | { | ||
61 | return CftLanguagePackage.Literals.GATE_DEFINITION; | ||
62 | } | ||
63 | |||
64 | /** | ||
65 | * <!-- begin-user-doc --> | ||
66 | * <!-- end-user-doc --> | ||
67 | * @generated | ||
68 | */ | ||
69 | @Override | ||
70 | public EList<EventDeclaration> getInputEvents() | ||
71 | { | ||
72 | if (inputEvents == null) | ||
73 | { | ||
74 | inputEvents = new EObjectResolvingEList<EventDeclaration>(EventDeclaration.class, this, CftLanguagePackage.GATE_DEFINITION__INPUT_EVENTS); | ||
75 | } | ||
76 | return inputEvents; | ||
77 | } | ||
78 | |||
79 | /** | ||
80 | * <!-- begin-user-doc --> | ||
81 | * <!-- end-user-doc --> | ||
82 | * @generated | ||
83 | */ | ||
84 | @Override | ||
85 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
86 | { | ||
87 | switch (featureID) | ||
88 | { | ||
89 | case CftLanguagePackage.GATE_DEFINITION__INPUT_EVENTS: | ||
90 | return getInputEvents(); | ||
91 | } | ||
92 | return super.eGet(featureID, resolve, coreType); | ||
93 | } | ||
94 | |||
95 | /** | ||
96 | * <!-- begin-user-doc --> | ||
97 | * <!-- end-user-doc --> | ||
98 | * @generated | ||
99 | */ | ||
100 | @SuppressWarnings("unchecked") | ||
101 | @Override | ||
102 | public void eSet(int featureID, Object newValue) | ||
103 | { | ||
104 | switch (featureID) | ||
105 | { | ||
106 | case CftLanguagePackage.GATE_DEFINITION__INPUT_EVENTS: | ||
107 | getInputEvents().clear(); | ||
108 | getInputEvents().addAll((Collection<? extends EventDeclaration>)newValue); | ||
109 | return; | ||
110 | } | ||
111 | super.eSet(featureID, newValue); | ||
112 | } | ||
113 | |||
114 | /** | ||
115 | * <!-- begin-user-doc --> | ||
116 | * <!-- end-user-doc --> | ||
117 | * @generated | ||
118 | */ | ||
119 | @Override | ||
120 | public void eUnset(int featureID) | ||
121 | { | ||
122 | switch (featureID) | ||
123 | { | ||
124 | case CftLanguagePackage.GATE_DEFINITION__INPUT_EVENTS: | ||
125 | getInputEvents().clear(); | ||
126 | return; | ||
127 | } | ||
128 | super.eUnset(featureID); | ||
129 | } | ||
130 | |||
131 | /** | ||
132 | * <!-- begin-user-doc --> | ||
133 | * <!-- end-user-doc --> | ||
134 | * @generated | ||
135 | */ | ||
136 | @Override | ||
137 | public boolean eIsSet(int featureID) | ||
138 | { | ||
139 | switch (featureID) | ||
140 | { | ||
141 | case CftLanguagePackage.GATE_DEFINITION__INPUT_EVENTS: | ||
142 | return inputEvents != null && !inputEvents.isEmpty(); | ||
143 | } | ||
144 | return super.eIsSet(featureID); | ||
145 | } | ||
146 | |||
147 | } //GateDefinitionImpl | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/ImportDeclarationImpl.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/ImportDeclarationImpl.java new file mode 100644 index 00000000..f4e45535 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/ImportDeclarationImpl.java | |||
@@ -0,0 +1,180 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl; | ||
5 | |||
6 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage; | ||
7 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ImportDeclaration; | ||
8 | |||
9 | import org.eclipse.emf.common.notify.Notification; | ||
10 | |||
11 | import org.eclipse.emf.ecore.EClass; | ||
12 | |||
13 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
14 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; | ||
15 | |||
16 | /** | ||
17 | * <!-- begin-user-doc --> | ||
18 | * An implementation of the model object '<em><b>Import Declaration</b></em>'. | ||
19 | * <!-- end-user-doc --> | ||
20 | * <p> | ||
21 | * The following features are implemented: | ||
22 | * </p> | ||
23 | * <ul> | ||
24 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.ImportDeclarationImpl#getImportedNamespace <em>Imported Namespace</em>}</li> | ||
25 | * </ul> | ||
26 | * | ||
27 | * @generated | ||
28 | */ | ||
29 | public class ImportDeclarationImpl extends MinimalEObjectImpl.Container implements ImportDeclaration | ||
30 | { | ||
31 | /** | ||
32 | * The default value of the '{@link #getImportedNamespace() <em>Imported Namespace</em>}' attribute. | ||
33 | * <!-- begin-user-doc --> | ||
34 | * <!-- end-user-doc --> | ||
35 | * @see #getImportedNamespace() | ||
36 | * @generated | ||
37 | * @ordered | ||
38 | */ | ||
39 | protected static final String IMPORTED_NAMESPACE_EDEFAULT = null; | ||
40 | |||
41 | /** | ||
42 | * The cached value of the '{@link #getImportedNamespace() <em>Imported Namespace</em>}' attribute. | ||
43 | * <!-- begin-user-doc --> | ||
44 | * <!-- end-user-doc --> | ||
45 | * @see #getImportedNamespace() | ||
46 | * @generated | ||
47 | * @ordered | ||
48 | */ | ||
49 | protected String importedNamespace = IMPORTED_NAMESPACE_EDEFAULT; | ||
50 | |||
51 | /** | ||
52 | * <!-- begin-user-doc --> | ||
53 | * <!-- end-user-doc --> | ||
54 | * @generated | ||
55 | */ | ||
56 | protected ImportDeclarationImpl() | ||
57 | { | ||
58 | super(); | ||
59 | } | ||
60 | |||
61 | /** | ||
62 | * <!-- begin-user-doc --> | ||
63 | * <!-- end-user-doc --> | ||
64 | * @generated | ||
65 | */ | ||
66 | @Override | ||
67 | protected EClass eStaticClass() | ||
68 | { | ||
69 | return CftLanguagePackage.Literals.IMPORT_DECLARATION; | ||
70 | } | ||
71 | |||
72 | /** | ||
73 | * <!-- begin-user-doc --> | ||
74 | * <!-- end-user-doc --> | ||
75 | * @generated | ||
76 | */ | ||
77 | @Override | ||
78 | public String getImportedNamespace() | ||
79 | { | ||
80 | return importedNamespace; | ||
81 | } | ||
82 | |||
83 | /** | ||
84 | * <!-- begin-user-doc --> | ||
85 | * <!-- end-user-doc --> | ||
86 | * @generated | ||
87 | */ | ||
88 | @Override | ||
89 | public void setImportedNamespace(String newImportedNamespace) | ||
90 | { | ||
91 | String oldImportedNamespace = importedNamespace; | ||
92 | importedNamespace = newImportedNamespace; | ||
93 | if (eNotificationRequired()) | ||
94 | eNotify(new ENotificationImpl(this, Notification.SET, CftLanguagePackage.IMPORT_DECLARATION__IMPORTED_NAMESPACE, oldImportedNamespace, importedNamespace)); | ||
95 | } | ||
96 | |||
97 | /** | ||
98 | * <!-- begin-user-doc --> | ||
99 | * <!-- end-user-doc --> | ||
100 | * @generated | ||
101 | */ | ||
102 | @Override | ||
103 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
104 | { | ||
105 | switch (featureID) | ||
106 | { | ||
107 | case CftLanguagePackage.IMPORT_DECLARATION__IMPORTED_NAMESPACE: | ||
108 | return getImportedNamespace(); | ||
109 | } | ||
110 | return super.eGet(featureID, resolve, coreType); | ||
111 | } | ||
112 | |||
113 | /** | ||
114 | * <!-- begin-user-doc --> | ||
115 | * <!-- end-user-doc --> | ||
116 | * @generated | ||
117 | */ | ||
118 | @Override | ||
119 | public void eSet(int featureID, Object newValue) | ||
120 | { | ||
121 | switch (featureID) | ||
122 | { | ||
123 | case CftLanguagePackage.IMPORT_DECLARATION__IMPORTED_NAMESPACE: | ||
124 | setImportedNamespace((String)newValue); | ||
125 | return; | ||
126 | } | ||
127 | super.eSet(featureID, newValue); | ||
128 | } | ||
129 | |||
130 | /** | ||
131 | * <!-- begin-user-doc --> | ||
132 | * <!-- end-user-doc --> | ||
133 | * @generated | ||
134 | */ | ||
135 | @Override | ||
136 | public void eUnset(int featureID) | ||
137 | { | ||
138 | switch (featureID) | ||
139 | { | ||
140 | case CftLanguagePackage.IMPORT_DECLARATION__IMPORTED_NAMESPACE: | ||
141 | setImportedNamespace(IMPORTED_NAMESPACE_EDEFAULT); | ||
142 | return; | ||
143 | } | ||
144 | super.eUnset(featureID); | ||
145 | } | ||
146 | |||
147 | /** | ||
148 | * <!-- begin-user-doc --> | ||
149 | * <!-- end-user-doc --> | ||
150 | * @generated | ||
151 | */ | ||
152 | @Override | ||
153 | public boolean eIsSet(int featureID) | ||
154 | { | ||
155 | switch (featureID) | ||
156 | { | ||
157 | case CftLanguagePackage.IMPORT_DECLARATION__IMPORTED_NAMESPACE: | ||
158 | return IMPORTED_NAMESPACE_EDEFAULT == null ? importedNamespace != null : !IMPORTED_NAMESPACE_EDEFAULT.equals(importedNamespace); | ||
159 | } | ||
160 | return super.eIsSet(featureID); | ||
161 | } | ||
162 | |||
163 | /** | ||
164 | * <!-- begin-user-doc --> | ||
165 | * <!-- end-user-doc --> | ||
166 | * @generated | ||
167 | */ | ||
168 | @Override | ||
169 | public String toString() | ||
170 | { | ||
171 | if (eIsProxy()) return super.toString(); | ||
172 | |||
173 | StringBuilder result = new StringBuilder(super.toString()); | ||
174 | result.append(" (importedNamespace: "); | ||
175 | result.append(importedNamespace); | ||
176 | result.append(')'); | ||
177 | return result.toString(); | ||
178 | } | ||
179 | |||
180 | } //ImportDeclarationImpl | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/InputEventImpl.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/InputEventImpl.java new file mode 100644 index 00000000..edb03bdc --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/InputEventImpl.java | |||
@@ -0,0 +1,179 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl; | ||
5 | |||
6 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage; | ||
7 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.InputEvent; | ||
8 | |||
9 | import org.eclipse.emf.common.notify.Notification; | ||
10 | |||
11 | import org.eclipse.emf.ecore.EClass; | ||
12 | |||
13 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
14 | |||
15 | /** | ||
16 | * <!-- begin-user-doc --> | ||
17 | * An implementation of the model object '<em><b>Input Event</b></em>'. | ||
18 | * <!-- end-user-doc --> | ||
19 | * <p> | ||
20 | * The following features are implemented: | ||
21 | * </p> | ||
22 | * <ul> | ||
23 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.InputEventImpl#isMultiple <em>Multiple</em>}</li> | ||
24 | * </ul> | ||
25 | * | ||
26 | * @generated | ||
27 | */ | ||
28 | public class InputEventImpl extends EventDeclarationImpl implements InputEvent | ||
29 | { | ||
30 | /** | ||
31 | * The default value of the '{@link #isMultiple() <em>Multiple</em>}' attribute. | ||
32 | * <!-- begin-user-doc --> | ||
33 | * <!-- end-user-doc --> | ||
34 | * @see #isMultiple() | ||
35 | * @generated | ||
36 | * @ordered | ||
37 | */ | ||
38 | protected static final boolean MULTIPLE_EDEFAULT = false; | ||
39 | |||
40 | /** | ||
41 | * The cached value of the '{@link #isMultiple() <em>Multiple</em>}' attribute. | ||
42 | * <!-- begin-user-doc --> | ||
43 | * <!-- end-user-doc --> | ||
44 | * @see #isMultiple() | ||
45 | * @generated | ||
46 | * @ordered | ||
47 | */ | ||
48 | protected boolean multiple = MULTIPLE_EDEFAULT; | ||
49 | |||
50 | /** | ||
51 | * <!-- begin-user-doc --> | ||
52 | * <!-- end-user-doc --> | ||
53 | * @generated | ||
54 | */ | ||
55 | protected InputEventImpl() | ||
56 | { | ||
57 | super(); | ||
58 | } | ||
59 | |||
60 | /** | ||
61 | * <!-- begin-user-doc --> | ||
62 | * <!-- end-user-doc --> | ||
63 | * @generated | ||
64 | */ | ||
65 | @Override | ||
66 | protected EClass eStaticClass() | ||
67 | { | ||
68 | return CftLanguagePackage.Literals.INPUT_EVENT; | ||
69 | } | ||
70 | |||
71 | /** | ||
72 | * <!-- begin-user-doc --> | ||
73 | * <!-- end-user-doc --> | ||
74 | * @generated | ||
75 | */ | ||
76 | @Override | ||
77 | public boolean isMultiple() | ||
78 | { | ||
79 | return multiple; | ||
80 | } | ||
81 | |||
82 | /** | ||
83 | * <!-- begin-user-doc --> | ||
84 | * <!-- end-user-doc --> | ||
85 | * @generated | ||
86 | */ | ||
87 | @Override | ||
88 | public void setMultiple(boolean newMultiple) | ||
89 | { | ||
90 | boolean oldMultiple = multiple; | ||
91 | multiple = newMultiple; | ||
92 | if (eNotificationRequired()) | ||
93 | eNotify(new ENotificationImpl(this, Notification.SET, CftLanguagePackage.INPUT_EVENT__MULTIPLE, oldMultiple, multiple)); | ||
94 | } | ||
95 | |||
96 | /** | ||
97 | * <!-- begin-user-doc --> | ||
98 | * <!-- end-user-doc --> | ||
99 | * @generated | ||
100 | */ | ||
101 | @Override | ||
102 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
103 | { | ||
104 | switch (featureID) | ||
105 | { | ||
106 | case CftLanguagePackage.INPUT_EVENT__MULTIPLE: | ||
107 | return isMultiple(); | ||
108 | } | ||
109 | return super.eGet(featureID, resolve, coreType); | ||
110 | } | ||
111 | |||
112 | /** | ||
113 | * <!-- begin-user-doc --> | ||
114 | * <!-- end-user-doc --> | ||
115 | * @generated | ||
116 | */ | ||
117 | @Override | ||
118 | public void eSet(int featureID, Object newValue) | ||
119 | { | ||
120 | switch (featureID) | ||
121 | { | ||
122 | case CftLanguagePackage.INPUT_EVENT__MULTIPLE: | ||
123 | setMultiple((Boolean)newValue); | ||
124 | return; | ||
125 | } | ||
126 | super.eSet(featureID, newValue); | ||
127 | } | ||
128 | |||
129 | /** | ||
130 | * <!-- begin-user-doc --> | ||
131 | * <!-- end-user-doc --> | ||
132 | * @generated | ||
133 | */ | ||
134 | @Override | ||
135 | public void eUnset(int featureID) | ||
136 | { | ||
137 | switch (featureID) | ||
138 | { | ||
139 | case CftLanguagePackage.INPUT_EVENT__MULTIPLE: | ||
140 | setMultiple(MULTIPLE_EDEFAULT); | ||
141 | return; | ||
142 | } | ||
143 | super.eUnset(featureID); | ||
144 | } | ||
145 | |||
146 | /** | ||
147 | * <!-- begin-user-doc --> | ||
148 | * <!-- end-user-doc --> | ||
149 | * @generated | ||
150 | */ | ||
151 | @Override | ||
152 | public boolean eIsSet(int featureID) | ||
153 | { | ||
154 | switch (featureID) | ||
155 | { | ||
156 | case CftLanguagePackage.INPUT_EVENT__MULTIPLE: | ||
157 | return multiple != MULTIPLE_EDEFAULT; | ||
158 | } | ||
159 | return super.eIsSet(featureID); | ||
160 | } | ||
161 | |||
162 | /** | ||
163 | * <!-- begin-user-doc --> | ||
164 | * <!-- end-user-doc --> | ||
165 | * @generated | ||
166 | */ | ||
167 | @Override | ||
168 | public String toString() | ||
169 | { | ||
170 | if (eIsProxy()) return super.toString(); | ||
171 | |||
172 | StringBuilder result = new StringBuilder(super.toString()); | ||
173 | result.append(" (multiple: "); | ||
174 | result.append(multiple); | ||
175 | result.append(')'); | ||
176 | return result.toString(); | ||
177 | } | ||
178 | |||
179 | } //InputEventImpl | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/LookupDefinitionImpl.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/LookupDefinitionImpl.java new file mode 100644 index 00000000..f4877855 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/LookupDefinitionImpl.java | |||
@@ -0,0 +1,220 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl; | ||
5 | |||
6 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage; | ||
7 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.LookupDefinition; | ||
8 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.MappingDefinition; | ||
9 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.MappingParameter; | ||
10 | |||
11 | import java.util.Collection; | ||
12 | |||
13 | import org.eclipse.emf.common.notify.Notification; | ||
14 | |||
15 | import org.eclipse.emf.common.util.EList; | ||
16 | |||
17 | import org.eclipse.emf.ecore.EClass; | ||
18 | import org.eclipse.emf.ecore.InternalEObject; | ||
19 | |||
20 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
21 | |||
22 | import org.eclipse.emf.ecore.util.EObjectResolvingEList; | ||
23 | |||
24 | /** | ||
25 | * <!-- begin-user-doc --> | ||
26 | * An implementation of the model object '<em><b>Lookup Definition</b></em>'. | ||
27 | * <!-- end-user-doc --> | ||
28 | * <p> | ||
29 | * The following features are implemented: | ||
30 | * </p> | ||
31 | * <ul> | ||
32 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.LookupDefinitionImpl#getMapping <em>Mapping</em>}</li> | ||
33 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.LookupDefinitionImpl#getArguments <em>Arguments</em>}</li> | ||
34 | * </ul> | ||
35 | * | ||
36 | * @generated | ||
37 | */ | ||
38 | public class LookupDefinitionImpl extends VariableImpl implements LookupDefinition | ||
39 | { | ||
40 | /** | ||
41 | * The cached value of the '{@link #getMapping() <em>Mapping</em>}' reference. | ||
42 | * <!-- begin-user-doc --> | ||
43 | * <!-- end-user-doc --> | ||
44 | * @see #getMapping() | ||
45 | * @generated | ||
46 | * @ordered | ||
47 | */ | ||
48 | protected MappingDefinition mapping; | ||
49 | |||
50 | /** | ||
51 | * The cached value of the '{@link #getArguments() <em>Arguments</em>}' reference list. | ||
52 | * <!-- begin-user-doc --> | ||
53 | * <!-- end-user-doc --> | ||
54 | * @see #getArguments() | ||
55 | * @generated | ||
56 | * @ordered | ||
57 | */ | ||
58 | protected EList<MappingParameter> arguments; | ||
59 | |||
60 | /** | ||
61 | * <!-- begin-user-doc --> | ||
62 | * <!-- end-user-doc --> | ||
63 | * @generated | ||
64 | */ | ||
65 | protected LookupDefinitionImpl() | ||
66 | { | ||
67 | super(); | ||
68 | } | ||
69 | |||
70 | /** | ||
71 | * <!-- begin-user-doc --> | ||
72 | * <!-- end-user-doc --> | ||
73 | * @generated | ||
74 | */ | ||
75 | @Override | ||
76 | protected EClass eStaticClass() | ||
77 | { | ||
78 | return CftLanguagePackage.Literals.LOOKUP_DEFINITION; | ||
79 | } | ||
80 | |||
81 | /** | ||
82 | * <!-- begin-user-doc --> | ||
83 | * <!-- end-user-doc --> | ||
84 | * @generated | ||
85 | */ | ||
86 | @Override | ||
87 | public MappingDefinition getMapping() | ||
88 | { | ||
89 | if (mapping != null && mapping.eIsProxy()) | ||
90 | { | ||
91 | InternalEObject oldMapping = (InternalEObject)mapping; | ||
92 | mapping = (MappingDefinition)eResolveProxy(oldMapping); | ||
93 | if (mapping != oldMapping) | ||
94 | { | ||
95 | if (eNotificationRequired()) | ||
96 | eNotify(new ENotificationImpl(this, Notification.RESOLVE, CftLanguagePackage.LOOKUP_DEFINITION__MAPPING, oldMapping, mapping)); | ||
97 | } | ||
98 | } | ||
99 | return mapping; | ||
100 | } | ||
101 | |||
102 | /** | ||
103 | * <!-- begin-user-doc --> | ||
104 | * <!-- end-user-doc --> | ||
105 | * @generated | ||
106 | */ | ||
107 | public MappingDefinition basicGetMapping() | ||
108 | { | ||
109 | return mapping; | ||
110 | } | ||
111 | |||
112 | /** | ||
113 | * <!-- begin-user-doc --> | ||
114 | * <!-- end-user-doc --> | ||
115 | * @generated | ||
116 | */ | ||
117 | @Override | ||
118 | public void setMapping(MappingDefinition newMapping) | ||
119 | { | ||
120 | MappingDefinition oldMapping = mapping; | ||
121 | mapping = newMapping; | ||
122 | if (eNotificationRequired()) | ||
123 | eNotify(new ENotificationImpl(this, Notification.SET, CftLanguagePackage.LOOKUP_DEFINITION__MAPPING, oldMapping, mapping)); | ||
124 | } | ||
125 | |||
126 | /** | ||
127 | * <!-- begin-user-doc --> | ||
128 | * <!-- end-user-doc --> | ||
129 | * @generated | ||
130 | */ | ||
131 | @Override | ||
132 | public EList<MappingParameter> getArguments() | ||
133 | { | ||
134 | if (arguments == null) | ||
135 | { | ||
136 | arguments = new EObjectResolvingEList<MappingParameter>(MappingParameter.class, this, CftLanguagePackage.LOOKUP_DEFINITION__ARGUMENTS); | ||
137 | } | ||
138 | return arguments; | ||
139 | } | ||
140 | |||
141 | /** | ||
142 | * <!-- begin-user-doc --> | ||
143 | * <!-- end-user-doc --> | ||
144 | * @generated | ||
145 | */ | ||
146 | @Override | ||
147 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
148 | { | ||
149 | switch (featureID) | ||
150 | { | ||
151 | case CftLanguagePackage.LOOKUP_DEFINITION__MAPPING: | ||
152 | if (resolve) return getMapping(); | ||
153 | return basicGetMapping(); | ||
154 | case CftLanguagePackage.LOOKUP_DEFINITION__ARGUMENTS: | ||
155 | return getArguments(); | ||
156 | } | ||
157 | return super.eGet(featureID, resolve, coreType); | ||
158 | } | ||
159 | |||
160 | /** | ||
161 | * <!-- begin-user-doc --> | ||
162 | * <!-- end-user-doc --> | ||
163 | * @generated | ||
164 | */ | ||
165 | @SuppressWarnings("unchecked") | ||
166 | @Override | ||
167 | public void eSet(int featureID, Object newValue) | ||
168 | { | ||
169 | switch (featureID) | ||
170 | { | ||
171 | case CftLanguagePackage.LOOKUP_DEFINITION__MAPPING: | ||
172 | setMapping((MappingDefinition)newValue); | ||
173 | return; | ||
174 | case CftLanguagePackage.LOOKUP_DEFINITION__ARGUMENTS: | ||
175 | getArguments().clear(); | ||
176 | getArguments().addAll((Collection<? extends MappingParameter>)newValue); | ||
177 | return; | ||
178 | } | ||
179 | super.eSet(featureID, newValue); | ||
180 | } | ||
181 | |||
182 | /** | ||
183 | * <!-- begin-user-doc --> | ||
184 | * <!-- end-user-doc --> | ||
185 | * @generated | ||
186 | */ | ||
187 | @Override | ||
188 | public void eUnset(int featureID) | ||
189 | { | ||
190 | switch (featureID) | ||
191 | { | ||
192 | case CftLanguagePackage.LOOKUP_DEFINITION__MAPPING: | ||
193 | setMapping((MappingDefinition)null); | ||
194 | return; | ||
195 | case CftLanguagePackage.LOOKUP_DEFINITION__ARGUMENTS: | ||
196 | getArguments().clear(); | ||
197 | return; | ||
198 | } | ||
199 | super.eUnset(featureID); | ||
200 | } | ||
201 | |||
202 | /** | ||
203 | * <!-- begin-user-doc --> | ||
204 | * <!-- end-user-doc --> | ||
205 | * @generated | ||
206 | */ | ||
207 | @Override | ||
208 | public boolean eIsSet(int featureID) | ||
209 | { | ||
210 | switch (featureID) | ||
211 | { | ||
212 | case CftLanguagePackage.LOOKUP_DEFINITION__MAPPING: | ||
213 | return mapping != null; | ||
214 | case CftLanguagePackage.LOOKUP_DEFINITION__ARGUMENTS: | ||
215 | return arguments != null && !arguments.isEmpty(); | ||
216 | } | ||
217 | return super.eIsSet(featureID); | ||
218 | } | ||
219 | |||
220 | } //LookupDefinitionImpl | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/MappingDefinitionImpl.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/MappingDefinitionImpl.java new file mode 100644 index 00000000..d92dd935 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/MappingDefinitionImpl.java | |||
@@ -0,0 +1,467 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl; | ||
5 | |||
6 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.Assignment; | ||
7 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage; | ||
8 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ComponentInstance; | ||
9 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.LookupDefinition; | ||
10 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.MappingDefinition; | ||
11 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.MappingParameter; | ||
12 | |||
13 | import java.util.Collection; | ||
14 | |||
15 | import org.eclipse.emf.common.notify.Notification; | ||
16 | import org.eclipse.emf.common.notify.NotificationChain; | ||
17 | |||
18 | import org.eclipse.emf.common.util.EList; | ||
19 | |||
20 | import org.eclipse.emf.ecore.EClass; | ||
21 | import org.eclipse.emf.ecore.InternalEObject; | ||
22 | |||
23 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
24 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; | ||
25 | |||
26 | import org.eclipse.emf.ecore.util.EObjectContainmentEList; | ||
27 | import org.eclipse.emf.ecore.util.InternalEList; | ||
28 | |||
29 | import org.eclipse.viatra.query.patternlanguage.emf.vql.Pattern; | ||
30 | |||
31 | /** | ||
32 | * <!-- begin-user-doc --> | ||
33 | * An implementation of the model object '<em><b>Mapping Definition</b></em>'. | ||
34 | * <!-- end-user-doc --> | ||
35 | * <p> | ||
36 | * The following features are implemented: | ||
37 | * </p> | ||
38 | * <ul> | ||
39 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.MappingDefinitionImpl#isTopLevel <em>Top Level</em>}</li> | ||
40 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.MappingDefinitionImpl#getPattern <em>Pattern</em>}</li> | ||
41 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.MappingDefinitionImpl#getParameters <em>Parameters</em>}</li> | ||
42 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.MappingDefinitionImpl#getComponentInstance <em>Component Instance</em>}</li> | ||
43 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.MappingDefinitionImpl#getLookupDefinitions <em>Lookup Definitions</em>}</li> | ||
44 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.MappingDefinitionImpl#getAssignments <em>Assignments</em>}</li> | ||
45 | * </ul> | ||
46 | * | ||
47 | * @generated | ||
48 | */ | ||
49 | public class MappingDefinitionImpl extends MinimalEObjectImpl.Container implements MappingDefinition | ||
50 | { | ||
51 | /** | ||
52 | * The default value of the '{@link #isTopLevel() <em>Top Level</em>}' attribute. | ||
53 | * <!-- begin-user-doc --> | ||
54 | * <!-- end-user-doc --> | ||
55 | * @see #isTopLevel() | ||
56 | * @generated | ||
57 | * @ordered | ||
58 | */ | ||
59 | protected static final boolean TOP_LEVEL_EDEFAULT = false; | ||
60 | |||
61 | /** | ||
62 | * The cached value of the '{@link #isTopLevel() <em>Top Level</em>}' attribute. | ||
63 | * <!-- begin-user-doc --> | ||
64 | * <!-- end-user-doc --> | ||
65 | * @see #isTopLevel() | ||
66 | * @generated | ||
67 | * @ordered | ||
68 | */ | ||
69 | protected boolean topLevel = TOP_LEVEL_EDEFAULT; | ||
70 | |||
71 | /** | ||
72 | * The cached value of the '{@link #getPattern() <em>Pattern</em>}' reference. | ||
73 | * <!-- begin-user-doc --> | ||
74 | * <!-- end-user-doc --> | ||
75 | * @see #getPattern() | ||
76 | * @generated | ||
77 | * @ordered | ||
78 | */ | ||
79 | protected Pattern pattern; | ||
80 | |||
81 | /** | ||
82 | * The cached value of the '{@link #getParameters() <em>Parameters</em>}' containment reference list. | ||
83 | * <!-- begin-user-doc --> | ||
84 | * <!-- end-user-doc --> | ||
85 | * @see #getParameters() | ||
86 | * @generated | ||
87 | * @ordered | ||
88 | */ | ||
89 | protected EList<MappingParameter> parameters; | ||
90 | |||
91 | /** | ||
92 | * The cached value of the '{@link #getComponentInstance() <em>Component Instance</em>}' containment reference. | ||
93 | * <!-- begin-user-doc --> | ||
94 | * <!-- end-user-doc --> | ||
95 | * @see #getComponentInstance() | ||
96 | * @generated | ||
97 | * @ordered | ||
98 | */ | ||
99 | protected ComponentInstance componentInstance; | ||
100 | |||
101 | /** | ||
102 | * The cached value of the '{@link #getLookupDefinitions() <em>Lookup Definitions</em>}' containment reference list. | ||
103 | * <!-- begin-user-doc --> | ||
104 | * <!-- end-user-doc --> | ||
105 | * @see #getLookupDefinitions() | ||
106 | * @generated | ||
107 | * @ordered | ||
108 | */ | ||
109 | protected EList<LookupDefinition> lookupDefinitions; | ||
110 | |||
111 | /** | ||
112 | * The cached value of the '{@link #getAssignments() <em>Assignments</em>}' containment reference list. | ||
113 | * <!-- begin-user-doc --> | ||
114 | * <!-- end-user-doc --> | ||
115 | * @see #getAssignments() | ||
116 | * @generated | ||
117 | * @ordered | ||
118 | */ | ||
119 | protected EList<Assignment> assignments; | ||
120 | |||
121 | /** | ||
122 | * <!-- begin-user-doc --> | ||
123 | * <!-- end-user-doc --> | ||
124 | * @generated | ||
125 | */ | ||
126 | protected MappingDefinitionImpl() | ||
127 | { | ||
128 | super(); | ||
129 | } | ||
130 | |||
131 | /** | ||
132 | * <!-- begin-user-doc --> | ||
133 | * <!-- end-user-doc --> | ||
134 | * @generated | ||
135 | */ | ||
136 | @Override | ||
137 | protected EClass eStaticClass() | ||
138 | { | ||
139 | return CftLanguagePackage.Literals.MAPPING_DEFINITION; | ||
140 | } | ||
141 | |||
142 | /** | ||
143 | * <!-- begin-user-doc --> | ||
144 | * <!-- end-user-doc --> | ||
145 | * @generated | ||
146 | */ | ||
147 | @Override | ||
148 | public boolean isTopLevel() | ||
149 | { | ||
150 | return topLevel; | ||
151 | } | ||
152 | |||
153 | /** | ||
154 | * <!-- begin-user-doc --> | ||
155 | * <!-- end-user-doc --> | ||
156 | * @generated | ||
157 | */ | ||
158 | @Override | ||
159 | public void setTopLevel(boolean newTopLevel) | ||
160 | { | ||
161 | boolean oldTopLevel = topLevel; | ||
162 | topLevel = newTopLevel; | ||
163 | if (eNotificationRequired()) | ||
164 | eNotify(new ENotificationImpl(this, Notification.SET, CftLanguagePackage.MAPPING_DEFINITION__TOP_LEVEL, oldTopLevel, topLevel)); | ||
165 | } | ||
166 | |||
167 | /** | ||
168 | * <!-- begin-user-doc --> | ||
169 | * <!-- end-user-doc --> | ||
170 | * @generated | ||
171 | */ | ||
172 | @Override | ||
173 | public Pattern getPattern() | ||
174 | { | ||
175 | if (pattern != null && pattern.eIsProxy()) | ||
176 | { | ||
177 | InternalEObject oldPattern = (InternalEObject)pattern; | ||
178 | pattern = (Pattern)eResolveProxy(oldPattern); | ||
179 | if (pattern != oldPattern) | ||
180 | { | ||
181 | if (eNotificationRequired()) | ||
182 | eNotify(new ENotificationImpl(this, Notification.RESOLVE, CftLanguagePackage.MAPPING_DEFINITION__PATTERN, oldPattern, pattern)); | ||
183 | } | ||
184 | } | ||
185 | return pattern; | ||
186 | } | ||
187 | |||
188 | /** | ||
189 | * <!-- begin-user-doc --> | ||
190 | * <!-- end-user-doc --> | ||
191 | * @generated | ||
192 | */ | ||
193 | public Pattern basicGetPattern() | ||
194 | { | ||
195 | return pattern; | ||
196 | } | ||
197 | |||
198 | /** | ||
199 | * <!-- begin-user-doc --> | ||
200 | * <!-- end-user-doc --> | ||
201 | * @generated | ||
202 | */ | ||
203 | @Override | ||
204 | public void setPattern(Pattern newPattern) | ||
205 | { | ||
206 | Pattern oldPattern = pattern; | ||
207 | pattern = newPattern; | ||
208 | if (eNotificationRequired()) | ||
209 | eNotify(new ENotificationImpl(this, Notification.SET, CftLanguagePackage.MAPPING_DEFINITION__PATTERN, oldPattern, pattern)); | ||
210 | } | ||
211 | |||
212 | /** | ||
213 | * <!-- begin-user-doc --> | ||
214 | * <!-- end-user-doc --> | ||
215 | * @generated | ||
216 | */ | ||
217 | @Override | ||
218 | public EList<MappingParameter> getParameters() | ||
219 | { | ||
220 | if (parameters == null) | ||
221 | { | ||
222 | parameters = new EObjectContainmentEList<MappingParameter>(MappingParameter.class, this, CftLanguagePackage.MAPPING_DEFINITION__PARAMETERS); | ||
223 | } | ||
224 | return parameters; | ||
225 | } | ||
226 | |||
227 | /** | ||
228 | * <!-- begin-user-doc --> | ||
229 | * <!-- end-user-doc --> | ||
230 | * @generated | ||
231 | */ | ||
232 | @Override | ||
233 | public ComponentInstance getComponentInstance() | ||
234 | { | ||
235 | return componentInstance; | ||
236 | } | ||
237 | |||
238 | /** | ||
239 | * <!-- begin-user-doc --> | ||
240 | * <!-- end-user-doc --> | ||
241 | * @generated | ||
242 | */ | ||
243 | public NotificationChain basicSetComponentInstance(ComponentInstance newComponentInstance, NotificationChain msgs) | ||
244 | { | ||
245 | ComponentInstance oldComponentInstance = componentInstance; | ||
246 | componentInstance = newComponentInstance; | ||
247 | if (eNotificationRequired()) | ||
248 | { | ||
249 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, CftLanguagePackage.MAPPING_DEFINITION__COMPONENT_INSTANCE, oldComponentInstance, newComponentInstance); | ||
250 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
251 | } | ||
252 | return msgs; | ||
253 | } | ||
254 | |||
255 | /** | ||
256 | * <!-- begin-user-doc --> | ||
257 | * <!-- end-user-doc --> | ||
258 | * @generated | ||
259 | */ | ||
260 | @Override | ||
261 | public void setComponentInstance(ComponentInstance newComponentInstance) | ||
262 | { | ||
263 | if (newComponentInstance != componentInstance) | ||
264 | { | ||
265 | NotificationChain msgs = null; | ||
266 | if (componentInstance != null) | ||
267 | msgs = ((InternalEObject)componentInstance).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - CftLanguagePackage.MAPPING_DEFINITION__COMPONENT_INSTANCE, null, msgs); | ||
268 | if (newComponentInstance != null) | ||
269 | msgs = ((InternalEObject)newComponentInstance).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - CftLanguagePackage.MAPPING_DEFINITION__COMPONENT_INSTANCE, null, msgs); | ||
270 | msgs = basicSetComponentInstance(newComponentInstance, msgs); | ||
271 | if (msgs != null) msgs.dispatch(); | ||
272 | } | ||
273 | else if (eNotificationRequired()) | ||
274 | eNotify(new ENotificationImpl(this, Notification.SET, CftLanguagePackage.MAPPING_DEFINITION__COMPONENT_INSTANCE, newComponentInstance, newComponentInstance)); | ||
275 | } | ||
276 | |||
277 | /** | ||
278 | * <!-- begin-user-doc --> | ||
279 | * <!-- end-user-doc --> | ||
280 | * @generated | ||
281 | */ | ||
282 | @Override | ||
283 | public EList<LookupDefinition> getLookupDefinitions() | ||
284 | { | ||
285 | if (lookupDefinitions == null) | ||
286 | { | ||
287 | lookupDefinitions = new EObjectContainmentEList<LookupDefinition>(LookupDefinition.class, this, CftLanguagePackage.MAPPING_DEFINITION__LOOKUP_DEFINITIONS); | ||
288 | } | ||
289 | return lookupDefinitions; | ||
290 | } | ||
291 | |||
292 | /** | ||
293 | * <!-- begin-user-doc --> | ||
294 | * <!-- end-user-doc --> | ||
295 | * @generated | ||
296 | */ | ||
297 | @Override | ||
298 | public EList<Assignment> getAssignments() | ||
299 | { | ||
300 | if (assignments == null) | ||
301 | { | ||
302 | assignments = new EObjectContainmentEList<Assignment>(Assignment.class, this, CftLanguagePackage.MAPPING_DEFINITION__ASSIGNMENTS); | ||
303 | } | ||
304 | return assignments; | ||
305 | } | ||
306 | |||
307 | /** | ||
308 | * <!-- begin-user-doc --> | ||
309 | * <!-- end-user-doc --> | ||
310 | * @generated | ||
311 | */ | ||
312 | @Override | ||
313 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) | ||
314 | { | ||
315 | switch (featureID) | ||
316 | { | ||
317 | case CftLanguagePackage.MAPPING_DEFINITION__PARAMETERS: | ||
318 | return ((InternalEList<?>)getParameters()).basicRemove(otherEnd, msgs); | ||
319 | case CftLanguagePackage.MAPPING_DEFINITION__COMPONENT_INSTANCE: | ||
320 | return basicSetComponentInstance(null, msgs); | ||
321 | case CftLanguagePackage.MAPPING_DEFINITION__LOOKUP_DEFINITIONS: | ||
322 | return ((InternalEList<?>)getLookupDefinitions()).basicRemove(otherEnd, msgs); | ||
323 | case CftLanguagePackage.MAPPING_DEFINITION__ASSIGNMENTS: | ||
324 | return ((InternalEList<?>)getAssignments()).basicRemove(otherEnd, msgs); | ||
325 | } | ||
326 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
327 | } | ||
328 | |||
329 | /** | ||
330 | * <!-- begin-user-doc --> | ||
331 | * <!-- end-user-doc --> | ||
332 | * @generated | ||
333 | */ | ||
334 | @Override | ||
335 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
336 | { | ||
337 | switch (featureID) | ||
338 | { | ||
339 | case CftLanguagePackage.MAPPING_DEFINITION__TOP_LEVEL: | ||
340 | return isTopLevel(); | ||
341 | case CftLanguagePackage.MAPPING_DEFINITION__PATTERN: | ||
342 | if (resolve) return getPattern(); | ||
343 | return basicGetPattern(); | ||
344 | case CftLanguagePackage.MAPPING_DEFINITION__PARAMETERS: | ||
345 | return getParameters(); | ||
346 | case CftLanguagePackage.MAPPING_DEFINITION__COMPONENT_INSTANCE: | ||
347 | return getComponentInstance(); | ||
348 | case CftLanguagePackage.MAPPING_DEFINITION__LOOKUP_DEFINITIONS: | ||
349 | return getLookupDefinitions(); | ||
350 | case CftLanguagePackage.MAPPING_DEFINITION__ASSIGNMENTS: | ||
351 | return getAssignments(); | ||
352 | } | ||
353 | return super.eGet(featureID, resolve, coreType); | ||
354 | } | ||
355 | |||
356 | /** | ||
357 | * <!-- begin-user-doc --> | ||
358 | * <!-- end-user-doc --> | ||
359 | * @generated | ||
360 | */ | ||
361 | @SuppressWarnings("unchecked") | ||
362 | @Override | ||
363 | public void eSet(int featureID, Object newValue) | ||
364 | { | ||
365 | switch (featureID) | ||
366 | { | ||
367 | case CftLanguagePackage.MAPPING_DEFINITION__TOP_LEVEL: | ||
368 | setTopLevel((Boolean)newValue); | ||
369 | return; | ||
370 | case CftLanguagePackage.MAPPING_DEFINITION__PATTERN: | ||
371 | setPattern((Pattern)newValue); | ||
372 | return; | ||
373 | case CftLanguagePackage.MAPPING_DEFINITION__PARAMETERS: | ||
374 | getParameters().clear(); | ||
375 | getParameters().addAll((Collection<? extends MappingParameter>)newValue); | ||
376 | return; | ||
377 | case CftLanguagePackage.MAPPING_DEFINITION__COMPONENT_INSTANCE: | ||
378 | setComponentInstance((ComponentInstance)newValue); | ||
379 | return; | ||
380 | case CftLanguagePackage.MAPPING_DEFINITION__LOOKUP_DEFINITIONS: | ||
381 | getLookupDefinitions().clear(); | ||
382 | getLookupDefinitions().addAll((Collection<? extends LookupDefinition>)newValue); | ||
383 | return; | ||
384 | case CftLanguagePackage.MAPPING_DEFINITION__ASSIGNMENTS: | ||
385 | getAssignments().clear(); | ||
386 | getAssignments().addAll((Collection<? extends Assignment>)newValue); | ||
387 | return; | ||
388 | } | ||
389 | super.eSet(featureID, newValue); | ||
390 | } | ||
391 | |||
392 | /** | ||
393 | * <!-- begin-user-doc --> | ||
394 | * <!-- end-user-doc --> | ||
395 | * @generated | ||
396 | */ | ||
397 | @Override | ||
398 | public void eUnset(int featureID) | ||
399 | { | ||
400 | switch (featureID) | ||
401 | { | ||
402 | case CftLanguagePackage.MAPPING_DEFINITION__TOP_LEVEL: | ||
403 | setTopLevel(TOP_LEVEL_EDEFAULT); | ||
404 | return; | ||
405 | case CftLanguagePackage.MAPPING_DEFINITION__PATTERN: | ||
406 | setPattern((Pattern)null); | ||
407 | return; | ||
408 | case CftLanguagePackage.MAPPING_DEFINITION__PARAMETERS: | ||
409 | getParameters().clear(); | ||
410 | return; | ||
411 | case CftLanguagePackage.MAPPING_DEFINITION__COMPONENT_INSTANCE: | ||
412 | setComponentInstance((ComponentInstance)null); | ||
413 | return; | ||
414 | case CftLanguagePackage.MAPPING_DEFINITION__LOOKUP_DEFINITIONS: | ||
415 | getLookupDefinitions().clear(); | ||
416 | return; | ||
417 | case CftLanguagePackage.MAPPING_DEFINITION__ASSIGNMENTS: | ||
418 | getAssignments().clear(); | ||
419 | return; | ||
420 | } | ||
421 | super.eUnset(featureID); | ||
422 | } | ||
423 | |||
424 | /** | ||
425 | * <!-- begin-user-doc --> | ||
426 | * <!-- end-user-doc --> | ||
427 | * @generated | ||
428 | */ | ||
429 | @Override | ||
430 | public boolean eIsSet(int featureID) | ||
431 | { | ||
432 | switch (featureID) | ||
433 | { | ||
434 | case CftLanguagePackage.MAPPING_DEFINITION__TOP_LEVEL: | ||
435 | return topLevel != TOP_LEVEL_EDEFAULT; | ||
436 | case CftLanguagePackage.MAPPING_DEFINITION__PATTERN: | ||
437 | return pattern != null; | ||
438 | case CftLanguagePackage.MAPPING_DEFINITION__PARAMETERS: | ||
439 | return parameters != null && !parameters.isEmpty(); | ||
440 | case CftLanguagePackage.MAPPING_DEFINITION__COMPONENT_INSTANCE: | ||
441 | return componentInstance != null; | ||
442 | case CftLanguagePackage.MAPPING_DEFINITION__LOOKUP_DEFINITIONS: | ||
443 | return lookupDefinitions != null && !lookupDefinitions.isEmpty(); | ||
444 | case CftLanguagePackage.MAPPING_DEFINITION__ASSIGNMENTS: | ||
445 | return assignments != null && !assignments.isEmpty(); | ||
446 | } | ||
447 | return super.eIsSet(featureID); | ||
448 | } | ||
449 | |||
450 | /** | ||
451 | * <!-- begin-user-doc --> | ||
452 | * <!-- end-user-doc --> | ||
453 | * @generated | ||
454 | */ | ||
455 | @Override | ||
456 | public String toString() | ||
457 | { | ||
458 | if (eIsProxy()) return super.toString(); | ||
459 | |||
460 | StringBuilder result = new StringBuilder(super.toString()); | ||
461 | result.append(" (topLevel: "); | ||
462 | result.append(topLevel); | ||
463 | result.append(')'); | ||
464 | return result.toString(); | ||
465 | } | ||
466 | |||
467 | } //MappingDefinitionImpl | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/MappingParameterImpl.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/MappingParameterImpl.java new file mode 100644 index 00000000..9d0ee701 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/MappingParameterImpl.java | |||
@@ -0,0 +1,180 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl; | ||
5 | |||
6 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage; | ||
7 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.MappingParameter; | ||
8 | |||
9 | import org.eclipse.emf.common.notify.Notification; | ||
10 | |||
11 | import org.eclipse.emf.ecore.EClass; | ||
12 | |||
13 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
14 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; | ||
15 | |||
16 | /** | ||
17 | * <!-- begin-user-doc --> | ||
18 | * An implementation of the model object '<em><b>Mapping Parameter</b></em>'. | ||
19 | * <!-- end-user-doc --> | ||
20 | * <p> | ||
21 | * The following features are implemented: | ||
22 | * </p> | ||
23 | * <ul> | ||
24 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.MappingParameterImpl#getName <em>Name</em>}</li> | ||
25 | * </ul> | ||
26 | * | ||
27 | * @generated | ||
28 | */ | ||
29 | public class MappingParameterImpl extends MinimalEObjectImpl.Container implements MappingParameter | ||
30 | { | ||
31 | /** | ||
32 | * The default value of the '{@link #getName() <em>Name</em>}' attribute. | ||
33 | * <!-- begin-user-doc --> | ||
34 | * <!-- end-user-doc --> | ||
35 | * @see #getName() | ||
36 | * @generated | ||
37 | * @ordered | ||
38 | */ | ||
39 | protected static final String NAME_EDEFAULT = null; | ||
40 | |||
41 | /** | ||
42 | * The cached value of the '{@link #getName() <em>Name</em>}' attribute. | ||
43 | * <!-- begin-user-doc --> | ||
44 | * <!-- end-user-doc --> | ||
45 | * @see #getName() | ||
46 | * @generated | ||
47 | * @ordered | ||
48 | */ | ||
49 | protected String name = NAME_EDEFAULT; | ||
50 | |||
51 | /** | ||
52 | * <!-- begin-user-doc --> | ||
53 | * <!-- end-user-doc --> | ||
54 | * @generated | ||
55 | */ | ||
56 | protected MappingParameterImpl() | ||
57 | { | ||
58 | super(); | ||
59 | } | ||
60 | |||
61 | /** | ||
62 | * <!-- begin-user-doc --> | ||
63 | * <!-- end-user-doc --> | ||
64 | * @generated | ||
65 | */ | ||
66 | @Override | ||
67 | protected EClass eStaticClass() | ||
68 | { | ||
69 | return CftLanguagePackage.Literals.MAPPING_PARAMETER; | ||
70 | } | ||
71 | |||
72 | /** | ||
73 | * <!-- begin-user-doc --> | ||
74 | * <!-- end-user-doc --> | ||
75 | * @generated | ||
76 | */ | ||
77 | @Override | ||
78 | public String getName() | ||
79 | { | ||
80 | return name; | ||
81 | } | ||
82 | |||
83 | /** | ||
84 | * <!-- begin-user-doc --> | ||
85 | * <!-- end-user-doc --> | ||
86 | * @generated | ||
87 | */ | ||
88 | @Override | ||
89 | public void setName(String newName) | ||
90 | { | ||
91 | String oldName = name; | ||
92 | name = newName; | ||
93 | if (eNotificationRequired()) | ||
94 | eNotify(new ENotificationImpl(this, Notification.SET, CftLanguagePackage.MAPPING_PARAMETER__NAME, oldName, name)); | ||
95 | } | ||
96 | |||
97 | /** | ||
98 | * <!-- begin-user-doc --> | ||
99 | * <!-- end-user-doc --> | ||
100 | * @generated | ||
101 | */ | ||
102 | @Override | ||
103 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
104 | { | ||
105 | switch (featureID) | ||
106 | { | ||
107 | case CftLanguagePackage.MAPPING_PARAMETER__NAME: | ||
108 | return getName(); | ||
109 | } | ||
110 | return super.eGet(featureID, resolve, coreType); | ||
111 | } | ||
112 | |||
113 | /** | ||
114 | * <!-- begin-user-doc --> | ||
115 | * <!-- end-user-doc --> | ||
116 | * @generated | ||
117 | */ | ||
118 | @Override | ||
119 | public void eSet(int featureID, Object newValue) | ||
120 | { | ||
121 | switch (featureID) | ||
122 | { | ||
123 | case CftLanguagePackage.MAPPING_PARAMETER__NAME: | ||
124 | setName((String)newValue); | ||
125 | return; | ||
126 | } | ||
127 | super.eSet(featureID, newValue); | ||
128 | } | ||
129 | |||
130 | /** | ||
131 | * <!-- begin-user-doc --> | ||
132 | * <!-- end-user-doc --> | ||
133 | * @generated | ||
134 | */ | ||
135 | @Override | ||
136 | public void eUnset(int featureID) | ||
137 | { | ||
138 | switch (featureID) | ||
139 | { | ||
140 | case CftLanguagePackage.MAPPING_PARAMETER__NAME: | ||
141 | setName(NAME_EDEFAULT); | ||
142 | return; | ||
143 | } | ||
144 | super.eUnset(featureID); | ||
145 | } | ||
146 | |||
147 | /** | ||
148 | * <!-- begin-user-doc --> | ||
149 | * <!-- end-user-doc --> | ||
150 | * @generated | ||
151 | */ | ||
152 | @Override | ||
153 | public boolean eIsSet(int featureID) | ||
154 | { | ||
155 | switch (featureID) | ||
156 | { | ||
157 | case CftLanguagePackage.MAPPING_PARAMETER__NAME: | ||
158 | return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); | ||
159 | } | ||
160 | return super.eIsSet(featureID); | ||
161 | } | ||
162 | |||
163 | /** | ||
164 | * <!-- begin-user-doc --> | ||
165 | * <!-- end-user-doc --> | ||
166 | * @generated | ||
167 | */ | ||
168 | @Override | ||
169 | public String toString() | ||
170 | { | ||
171 | if (eIsProxy()) return super.toString(); | ||
172 | |||
173 | StringBuilder result = new StringBuilder(super.toString()); | ||
174 | result.append(" (name: "); | ||
175 | result.append(name); | ||
176 | result.append(')'); | ||
177 | return result.toString(); | ||
178 | } | ||
179 | |||
180 | } //MappingParameterImpl | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/OrGateImpl.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/OrGateImpl.java new file mode 100644 index 00000000..eaaf1686 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/OrGateImpl.java | |||
@@ -0,0 +1,41 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl; | ||
5 | |||
6 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage; | ||
7 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.OrGate; | ||
8 | |||
9 | import org.eclipse.emf.ecore.EClass; | ||
10 | |||
11 | /** | ||
12 | * <!-- begin-user-doc --> | ||
13 | * An implementation of the model object '<em><b>Or Gate</b></em>'. | ||
14 | * <!-- end-user-doc --> | ||
15 | * | ||
16 | * @generated | ||
17 | */ | ||
18 | public class OrGateImpl extends GateDefinitionImpl implements OrGate | ||
19 | { | ||
20 | /** | ||
21 | * <!-- begin-user-doc --> | ||
22 | * <!-- end-user-doc --> | ||
23 | * @generated | ||
24 | */ | ||
25 | protected OrGateImpl() | ||
26 | { | ||
27 | super(); | ||
28 | } | ||
29 | |||
30 | /** | ||
31 | * <!-- begin-user-doc --> | ||
32 | * <!-- end-user-doc --> | ||
33 | * @generated | ||
34 | */ | ||
35 | @Override | ||
36 | protected EClass eStaticClass() | ||
37 | { | ||
38 | return CftLanguagePackage.Literals.OR_GATE; | ||
39 | } | ||
40 | |||
41 | } //OrGateImpl | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/TransformationDefinitionImpl.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/TransformationDefinitionImpl.java new file mode 100644 index 00000000..89e89b0f --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/TransformationDefinitionImpl.java | |||
@@ -0,0 +1,244 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl; | ||
5 | |||
6 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage; | ||
7 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.MappingDefinition; | ||
8 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.TransformationDefinition; | ||
9 | |||
10 | import java.util.Collection; | ||
11 | |||
12 | import org.eclipse.emf.common.notify.Notification; | ||
13 | import org.eclipse.emf.common.notify.NotificationChain; | ||
14 | |||
15 | import org.eclipse.emf.common.util.EList; | ||
16 | |||
17 | import org.eclipse.emf.ecore.EClass; | ||
18 | import org.eclipse.emf.ecore.InternalEObject; | ||
19 | |||
20 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
21 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; | ||
22 | |||
23 | import org.eclipse.emf.ecore.util.EObjectContainmentEList; | ||
24 | import org.eclipse.emf.ecore.util.InternalEList; | ||
25 | |||
26 | /** | ||
27 | * <!-- begin-user-doc --> | ||
28 | * An implementation of the model object '<em><b>Transformation Definition</b></em>'. | ||
29 | * <!-- end-user-doc --> | ||
30 | * <p> | ||
31 | * The following features are implemented: | ||
32 | * </p> | ||
33 | * <ul> | ||
34 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.TransformationDefinitionImpl#getName <em>Name</em>}</li> | ||
35 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.TransformationDefinitionImpl#getMappingDefinitions <em>Mapping Definitions</em>}</li> | ||
36 | * </ul> | ||
37 | * | ||
38 | * @generated | ||
39 | */ | ||
40 | public class TransformationDefinitionImpl extends MinimalEObjectImpl.Container implements TransformationDefinition | ||
41 | { | ||
42 | /** | ||
43 | * The default value of the '{@link #getName() <em>Name</em>}' attribute. | ||
44 | * <!-- begin-user-doc --> | ||
45 | * <!-- end-user-doc --> | ||
46 | * @see #getName() | ||
47 | * @generated | ||
48 | * @ordered | ||
49 | */ | ||
50 | protected static final String NAME_EDEFAULT = null; | ||
51 | |||
52 | /** | ||
53 | * The cached value of the '{@link #getName() <em>Name</em>}' attribute. | ||
54 | * <!-- begin-user-doc --> | ||
55 | * <!-- end-user-doc --> | ||
56 | * @see #getName() | ||
57 | * @generated | ||
58 | * @ordered | ||
59 | */ | ||
60 | protected String name = NAME_EDEFAULT; | ||
61 | |||
62 | /** | ||
63 | * The cached value of the '{@link #getMappingDefinitions() <em>Mapping Definitions</em>}' containment reference list. | ||
64 | * <!-- begin-user-doc --> | ||
65 | * <!-- end-user-doc --> | ||
66 | * @see #getMappingDefinitions() | ||
67 | * @generated | ||
68 | * @ordered | ||
69 | */ | ||
70 | protected EList<MappingDefinition> mappingDefinitions; | ||
71 | |||
72 | /** | ||
73 | * <!-- begin-user-doc --> | ||
74 | * <!-- end-user-doc --> | ||
75 | * @generated | ||
76 | */ | ||
77 | protected TransformationDefinitionImpl() | ||
78 | { | ||
79 | super(); | ||
80 | } | ||
81 | |||
82 | /** | ||
83 | * <!-- begin-user-doc --> | ||
84 | * <!-- end-user-doc --> | ||
85 | * @generated | ||
86 | */ | ||
87 | @Override | ||
88 | protected EClass eStaticClass() | ||
89 | { | ||
90 | return CftLanguagePackage.Literals.TRANSFORMATION_DEFINITION; | ||
91 | } | ||
92 | |||
93 | /** | ||
94 | * <!-- begin-user-doc --> | ||
95 | * <!-- end-user-doc --> | ||
96 | * @generated | ||
97 | */ | ||
98 | @Override | ||
99 | public String getName() | ||
100 | { | ||
101 | return name; | ||
102 | } | ||
103 | |||
104 | /** | ||
105 | * <!-- begin-user-doc --> | ||
106 | * <!-- end-user-doc --> | ||
107 | * @generated | ||
108 | */ | ||
109 | @Override | ||
110 | public void setName(String newName) | ||
111 | { | ||
112 | String oldName = name; | ||
113 | name = newName; | ||
114 | if (eNotificationRequired()) | ||
115 | eNotify(new ENotificationImpl(this, Notification.SET, CftLanguagePackage.TRANSFORMATION_DEFINITION__NAME, oldName, name)); | ||
116 | } | ||
117 | |||
118 | /** | ||
119 | * <!-- begin-user-doc --> | ||
120 | * <!-- end-user-doc --> | ||
121 | * @generated | ||
122 | */ | ||
123 | @Override | ||
124 | public EList<MappingDefinition> getMappingDefinitions() | ||
125 | { | ||
126 | if (mappingDefinitions == null) | ||
127 | { | ||
128 | mappingDefinitions = new EObjectContainmentEList<MappingDefinition>(MappingDefinition.class, this, CftLanguagePackage.TRANSFORMATION_DEFINITION__MAPPING_DEFINITIONS); | ||
129 | } | ||
130 | return mappingDefinitions; | ||
131 | } | ||
132 | |||
133 | /** | ||
134 | * <!-- begin-user-doc --> | ||
135 | * <!-- end-user-doc --> | ||
136 | * @generated | ||
137 | */ | ||
138 | @Override | ||
139 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) | ||
140 | { | ||
141 | switch (featureID) | ||
142 | { | ||
143 | case CftLanguagePackage.TRANSFORMATION_DEFINITION__MAPPING_DEFINITIONS: | ||
144 | return ((InternalEList<?>)getMappingDefinitions()).basicRemove(otherEnd, msgs); | ||
145 | } | ||
146 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
147 | } | ||
148 | |||
149 | /** | ||
150 | * <!-- begin-user-doc --> | ||
151 | * <!-- end-user-doc --> | ||
152 | * @generated | ||
153 | */ | ||
154 | @Override | ||
155 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
156 | { | ||
157 | switch (featureID) | ||
158 | { | ||
159 | case CftLanguagePackage.TRANSFORMATION_DEFINITION__NAME: | ||
160 | return getName(); | ||
161 | case CftLanguagePackage.TRANSFORMATION_DEFINITION__MAPPING_DEFINITIONS: | ||
162 | return getMappingDefinitions(); | ||
163 | } | ||
164 | return super.eGet(featureID, resolve, coreType); | ||
165 | } | ||
166 | |||
167 | /** | ||
168 | * <!-- begin-user-doc --> | ||
169 | * <!-- end-user-doc --> | ||
170 | * @generated | ||
171 | */ | ||
172 | @SuppressWarnings("unchecked") | ||
173 | @Override | ||
174 | public void eSet(int featureID, Object newValue) | ||
175 | { | ||
176 | switch (featureID) | ||
177 | { | ||
178 | case CftLanguagePackage.TRANSFORMATION_DEFINITION__NAME: | ||
179 | setName((String)newValue); | ||
180 | return; | ||
181 | case CftLanguagePackage.TRANSFORMATION_DEFINITION__MAPPING_DEFINITIONS: | ||
182 | getMappingDefinitions().clear(); | ||
183 | getMappingDefinitions().addAll((Collection<? extends MappingDefinition>)newValue); | ||
184 | return; | ||
185 | } | ||
186 | super.eSet(featureID, newValue); | ||
187 | } | ||
188 | |||
189 | /** | ||
190 | * <!-- begin-user-doc --> | ||
191 | * <!-- end-user-doc --> | ||
192 | * @generated | ||
193 | */ | ||
194 | @Override | ||
195 | public void eUnset(int featureID) | ||
196 | { | ||
197 | switch (featureID) | ||
198 | { | ||
199 | case CftLanguagePackage.TRANSFORMATION_DEFINITION__NAME: | ||
200 | setName(NAME_EDEFAULT); | ||
201 | return; | ||
202 | case CftLanguagePackage.TRANSFORMATION_DEFINITION__MAPPING_DEFINITIONS: | ||
203 | getMappingDefinitions().clear(); | ||
204 | return; | ||
205 | } | ||
206 | super.eUnset(featureID); | ||
207 | } | ||
208 | |||
209 | /** | ||
210 | * <!-- begin-user-doc --> | ||
211 | * <!-- end-user-doc --> | ||
212 | * @generated | ||
213 | */ | ||
214 | @Override | ||
215 | public boolean eIsSet(int featureID) | ||
216 | { | ||
217 | switch (featureID) | ||
218 | { | ||
219 | case CftLanguagePackage.TRANSFORMATION_DEFINITION__NAME: | ||
220 | return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); | ||
221 | case CftLanguagePackage.TRANSFORMATION_DEFINITION__MAPPING_DEFINITIONS: | ||
222 | return mappingDefinitions != null && !mappingDefinitions.isEmpty(); | ||
223 | } | ||
224 | return super.eIsSet(featureID); | ||
225 | } | ||
226 | |||
227 | /** | ||
228 | * <!-- begin-user-doc --> | ||
229 | * <!-- end-user-doc --> | ||
230 | * @generated | ||
231 | */ | ||
232 | @Override | ||
233 | public String toString() | ||
234 | { | ||
235 | if (eIsProxy()) return super.toString(); | ||
236 | |||
237 | StringBuilder result = new StringBuilder(super.toString()); | ||
238 | result.append(" (name: "); | ||
239 | result.append(name); | ||
240 | result.append(')'); | ||
241 | return result.toString(); | ||
242 | } | ||
243 | |||
244 | } //TransformationDefinitionImpl | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/VariableImpl.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/VariableImpl.java new file mode 100644 index 00000000..3c7d1ccb --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/VariableImpl.java | |||
@@ -0,0 +1,180 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl; | ||
5 | |||
6 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage; | ||
7 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.Variable; | ||
8 | |||
9 | import org.eclipse.emf.common.notify.Notification; | ||
10 | |||
11 | import org.eclipse.emf.ecore.EClass; | ||
12 | |||
13 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
14 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; | ||
15 | |||
16 | /** | ||
17 | * <!-- begin-user-doc --> | ||
18 | * An implementation of the model object '<em><b>Variable</b></em>'. | ||
19 | * <!-- end-user-doc --> | ||
20 | * <p> | ||
21 | * The following features are implemented: | ||
22 | * </p> | ||
23 | * <ul> | ||
24 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.VariableImpl#getName <em>Name</em>}</li> | ||
25 | * </ul> | ||
26 | * | ||
27 | * @generated | ||
28 | */ | ||
29 | public class VariableImpl extends MinimalEObjectImpl.Container implements Variable | ||
30 | { | ||
31 | /** | ||
32 | * The default value of the '{@link #getName() <em>Name</em>}' attribute. | ||
33 | * <!-- begin-user-doc --> | ||
34 | * <!-- end-user-doc --> | ||
35 | * @see #getName() | ||
36 | * @generated | ||
37 | * @ordered | ||
38 | */ | ||
39 | protected static final String NAME_EDEFAULT = null; | ||
40 | |||
41 | /** | ||
42 | * The cached value of the '{@link #getName() <em>Name</em>}' attribute. | ||
43 | * <!-- begin-user-doc --> | ||
44 | * <!-- end-user-doc --> | ||
45 | * @see #getName() | ||
46 | * @generated | ||
47 | * @ordered | ||
48 | */ | ||
49 | protected String name = NAME_EDEFAULT; | ||
50 | |||
51 | /** | ||
52 | * <!-- begin-user-doc --> | ||
53 | * <!-- end-user-doc --> | ||
54 | * @generated | ||
55 | */ | ||
56 | protected VariableImpl() | ||
57 | { | ||
58 | super(); | ||
59 | } | ||
60 | |||
61 | /** | ||
62 | * <!-- begin-user-doc --> | ||
63 | * <!-- end-user-doc --> | ||
64 | * @generated | ||
65 | */ | ||
66 | @Override | ||
67 | protected EClass eStaticClass() | ||
68 | { | ||
69 | return CftLanguagePackage.Literals.VARIABLE; | ||
70 | } | ||
71 | |||
72 | /** | ||
73 | * <!-- begin-user-doc --> | ||
74 | * <!-- end-user-doc --> | ||
75 | * @generated | ||
76 | */ | ||
77 | @Override | ||
78 | public String getName() | ||
79 | { | ||
80 | return name; | ||
81 | } | ||
82 | |||
83 | /** | ||
84 | * <!-- begin-user-doc --> | ||
85 | * <!-- end-user-doc --> | ||
86 | * @generated | ||
87 | */ | ||
88 | @Override | ||
89 | public void setName(String newName) | ||
90 | { | ||
91 | String oldName = name; | ||
92 | name = newName; | ||
93 | if (eNotificationRequired()) | ||
94 | eNotify(new ENotificationImpl(this, Notification.SET, CftLanguagePackage.VARIABLE__NAME, oldName, name)); | ||
95 | } | ||
96 | |||
97 | /** | ||
98 | * <!-- begin-user-doc --> | ||
99 | * <!-- end-user-doc --> | ||
100 | * @generated | ||
101 | */ | ||
102 | @Override | ||
103 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
104 | { | ||
105 | switch (featureID) | ||
106 | { | ||
107 | case CftLanguagePackage.VARIABLE__NAME: | ||
108 | return getName(); | ||
109 | } | ||
110 | return super.eGet(featureID, resolve, coreType); | ||
111 | } | ||
112 | |||
113 | /** | ||
114 | * <!-- begin-user-doc --> | ||
115 | * <!-- end-user-doc --> | ||
116 | * @generated | ||
117 | */ | ||
118 | @Override | ||
119 | public void eSet(int featureID, Object newValue) | ||
120 | { | ||
121 | switch (featureID) | ||
122 | { | ||
123 | case CftLanguagePackage.VARIABLE__NAME: | ||
124 | setName((String)newValue); | ||
125 | return; | ||
126 | } | ||
127 | super.eSet(featureID, newValue); | ||
128 | } | ||
129 | |||
130 | /** | ||
131 | * <!-- begin-user-doc --> | ||
132 | * <!-- end-user-doc --> | ||
133 | * @generated | ||
134 | */ | ||
135 | @Override | ||
136 | public void eUnset(int featureID) | ||
137 | { | ||
138 | switch (featureID) | ||
139 | { | ||
140 | case CftLanguagePackage.VARIABLE__NAME: | ||
141 | setName(NAME_EDEFAULT); | ||
142 | return; | ||
143 | } | ||
144 | super.eUnset(featureID); | ||
145 | } | ||
146 | |||
147 | /** | ||
148 | * <!-- begin-user-doc --> | ||
149 | * <!-- end-user-doc --> | ||
150 | * @generated | ||
151 | */ | ||
152 | @Override | ||
153 | public boolean eIsSet(int featureID) | ||
154 | { | ||
155 | switch (featureID) | ||
156 | { | ||
157 | case CftLanguagePackage.VARIABLE__NAME: | ||
158 | return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); | ||
159 | } | ||
160 | return super.eIsSet(featureID); | ||
161 | } | ||
162 | |||
163 | /** | ||
164 | * <!-- begin-user-doc --> | ||
165 | * <!-- end-user-doc --> | ||
166 | * @generated | ||
167 | */ | ||
168 | @Override | ||
169 | public String toString() | ||
170 | { | ||
171 | if (eIsProxy()) return super.toString(); | ||
172 | |||
173 | StringBuilder result = new StringBuilder(super.toString()); | ||
174 | result.append(" (name: "); | ||
175 | result.append(name); | ||
176 | result.append(')'); | ||
177 | return result.toString(); | ||
178 | } | ||
179 | |||
180 | } //VariableImpl | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/util/CftLanguageAdapterFactory.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/util/CftLanguageAdapterFactory.java new file mode 100644 index 00000000..035b1191 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/util/CftLanguageAdapterFactory.java | |||
@@ -0,0 +1,473 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.util; | ||
5 | |||
6 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.*; | ||
7 | |||
8 | import org.eclipse.emf.common.notify.Adapter; | ||
9 | import org.eclipse.emf.common.notify.Notifier; | ||
10 | |||
11 | import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl; | ||
12 | |||
13 | import org.eclipse.emf.ecore.EObject; | ||
14 | |||
15 | /** | ||
16 | * <!-- begin-user-doc --> | ||
17 | * The <b>Adapter Factory</b> for the model. | ||
18 | * It provides an adapter <code>createXXX</code> method for each class of the model. | ||
19 | * <!-- end-user-doc --> | ||
20 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage | ||
21 | * @generated | ||
22 | */ | ||
23 | public class CftLanguageAdapterFactory extends AdapterFactoryImpl | ||
24 | { | ||
25 | /** | ||
26 | * The cached model package. | ||
27 | * <!-- begin-user-doc --> | ||
28 | * <!-- end-user-doc --> | ||
29 | * @generated | ||
30 | */ | ||
31 | protected static CftLanguagePackage modelPackage; | ||
32 | |||
33 | /** | ||
34 | * Creates an instance of the adapter factory. | ||
35 | * <!-- begin-user-doc --> | ||
36 | * <!-- end-user-doc --> | ||
37 | * @generated | ||
38 | */ | ||
39 | public CftLanguageAdapterFactory() | ||
40 | { | ||
41 | if (modelPackage == null) | ||
42 | { | ||
43 | modelPackage = CftLanguagePackage.eINSTANCE; | ||
44 | } | ||
45 | } | ||
46 | |||
47 | /** | ||
48 | * Returns whether this factory is applicable for the type of the object. | ||
49 | * <!-- begin-user-doc --> | ||
50 | * This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model. | ||
51 | * <!-- end-user-doc --> | ||
52 | * @return whether this factory is applicable for the type of the object. | ||
53 | * @generated | ||
54 | */ | ||
55 | @Override | ||
56 | public boolean isFactoryForType(Object object) | ||
57 | { | ||
58 | if (object == modelPackage) | ||
59 | { | ||
60 | return true; | ||
61 | } | ||
62 | if (object instanceof EObject) | ||
63 | { | ||
64 | return ((EObject)object).eClass().getEPackage() == modelPackage; | ||
65 | } | ||
66 | return false; | ||
67 | } | ||
68 | |||
69 | /** | ||
70 | * The switch that delegates to the <code>createXXX</code> methods. | ||
71 | * <!-- begin-user-doc --> | ||
72 | * <!-- end-user-doc --> | ||
73 | * @generated | ||
74 | */ | ||
75 | protected CftLanguageSwitch<Adapter> modelSwitch = | ||
76 | new CftLanguageSwitch<Adapter>() | ||
77 | { | ||
78 | @Override | ||
79 | public Adapter caseCftModel(CftModel object) | ||
80 | { | ||
81 | return createCftModelAdapter(); | ||
82 | } | ||
83 | @Override | ||
84 | public Adapter caseImportDeclaration(ImportDeclaration object) | ||
85 | { | ||
86 | return createImportDeclarationAdapter(); | ||
87 | } | ||
88 | @Override | ||
89 | public Adapter caseComponentDefinition(ComponentDefinition object) | ||
90 | { | ||
91 | return createComponentDefinitionAdapter(); | ||
92 | } | ||
93 | @Override | ||
94 | public Adapter caseEventDeclaration(EventDeclaration object) | ||
95 | { | ||
96 | return createEventDeclarationAdapter(); | ||
97 | } | ||
98 | @Override | ||
99 | public Adapter caseInputEvent(InputEvent object) | ||
100 | { | ||
101 | return createInputEventAdapter(); | ||
102 | } | ||
103 | @Override | ||
104 | public Adapter caseEventDefinition(EventDefinition object) | ||
105 | { | ||
106 | return createEventDefinitionAdapter(); | ||
107 | } | ||
108 | @Override | ||
109 | public Adapter caseBasicEventDefinition(BasicEventDefinition object) | ||
110 | { | ||
111 | return createBasicEventDefinitionAdapter(); | ||
112 | } | ||
113 | @Override | ||
114 | public Adapter caseGateDefinition(GateDefinition object) | ||
115 | { | ||
116 | return createGateDefinitionAdapter(); | ||
117 | } | ||
118 | @Override | ||
119 | public Adapter caseAndGate(AndGate object) | ||
120 | { | ||
121 | return createAndGateAdapter(); | ||
122 | } | ||
123 | @Override | ||
124 | public Adapter caseOrGate(OrGate object) | ||
125 | { | ||
126 | return createOrGateAdapter(); | ||
127 | } | ||
128 | @Override | ||
129 | public Adapter caseTransformationDefinition(TransformationDefinition object) | ||
130 | { | ||
131 | return createTransformationDefinitionAdapter(); | ||
132 | } | ||
133 | @Override | ||
134 | public Adapter caseMappingDefinition(MappingDefinition object) | ||
135 | { | ||
136 | return createMappingDefinitionAdapter(); | ||
137 | } | ||
138 | @Override | ||
139 | public Adapter caseMappingParameter(MappingParameter object) | ||
140 | { | ||
141 | return createMappingParameterAdapter(); | ||
142 | } | ||
143 | @Override | ||
144 | public Adapter caseLookupDefinition(LookupDefinition object) | ||
145 | { | ||
146 | return createLookupDefinitionAdapter(); | ||
147 | } | ||
148 | @Override | ||
149 | public Adapter caseVariable(Variable object) | ||
150 | { | ||
151 | return createVariableAdapter(); | ||
152 | } | ||
153 | @Override | ||
154 | public Adapter caseAssignment(Assignment object) | ||
155 | { | ||
156 | return createAssignmentAdapter(); | ||
157 | } | ||
158 | @Override | ||
159 | public Adapter caseEventReference(EventReference object) | ||
160 | { | ||
161 | return createEventReferenceAdapter(); | ||
162 | } | ||
163 | @Override | ||
164 | public Adapter caseComponentInstance(ComponentInstance object) | ||
165 | { | ||
166 | return createComponentInstanceAdapter(); | ||
167 | } | ||
168 | @Override | ||
169 | public Adapter defaultCase(EObject object) | ||
170 | { | ||
171 | return createEObjectAdapter(); | ||
172 | } | ||
173 | }; | ||
174 | |||
175 | /** | ||
176 | * Creates an adapter for the <code>target</code>. | ||
177 | * <!-- begin-user-doc --> | ||
178 | * <!-- end-user-doc --> | ||
179 | * @param target the object to adapt. | ||
180 | * @return the adapter for the <code>target</code>. | ||
181 | * @generated | ||
182 | */ | ||
183 | @Override | ||
184 | public Adapter createAdapter(Notifier target) | ||
185 | { | ||
186 | return modelSwitch.doSwitch((EObject)target); | ||
187 | } | ||
188 | |||
189 | |||
190 | /** | ||
191 | * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftModel <em>Cft Model</em>}'. | ||
192 | * <!-- begin-user-doc --> | ||
193 | * This default implementation returns null so that we can easily ignore cases; | ||
194 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
195 | * <!-- end-user-doc --> | ||
196 | * @return the new adapter. | ||
197 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftModel | ||
198 | * @generated | ||
199 | */ | ||
200 | public Adapter createCftModelAdapter() | ||
201 | { | ||
202 | return null; | ||
203 | } | ||
204 | |||
205 | /** | ||
206 | * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ImportDeclaration <em>Import Declaration</em>}'. | ||
207 | * <!-- begin-user-doc --> | ||
208 | * This default implementation returns null so that we can easily ignore cases; | ||
209 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
210 | * <!-- end-user-doc --> | ||
211 | * @return the new adapter. | ||
212 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ImportDeclaration | ||
213 | * @generated | ||
214 | */ | ||
215 | public Adapter createImportDeclarationAdapter() | ||
216 | { | ||
217 | return null; | ||
218 | } | ||
219 | |||
220 | /** | ||
221 | * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ComponentDefinition <em>Component Definition</em>}'. | ||
222 | * <!-- begin-user-doc --> | ||
223 | * This default implementation returns null so that we can easily ignore cases; | ||
224 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
225 | * <!-- end-user-doc --> | ||
226 | * @return the new adapter. | ||
227 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ComponentDefinition | ||
228 | * @generated | ||
229 | */ | ||
230 | public Adapter createComponentDefinitionAdapter() | ||
231 | { | ||
232 | return null; | ||
233 | } | ||
234 | |||
235 | /** | ||
236 | * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.EventDeclaration <em>Event Declaration</em>}'. | ||
237 | * <!-- begin-user-doc --> | ||
238 | * This default implementation returns null so that we can easily ignore cases; | ||
239 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
240 | * <!-- end-user-doc --> | ||
241 | * @return the new adapter. | ||
242 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.EventDeclaration | ||
243 | * @generated | ||
244 | */ | ||
245 | public Adapter createEventDeclarationAdapter() | ||
246 | { | ||
247 | return null; | ||
248 | } | ||
249 | |||
250 | /** | ||
251 | * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.InputEvent <em>Input Event</em>}'. | ||
252 | * <!-- begin-user-doc --> | ||
253 | * This default implementation returns null so that we can easily ignore cases; | ||
254 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
255 | * <!-- end-user-doc --> | ||
256 | * @return the new adapter. | ||
257 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.InputEvent | ||
258 | * @generated | ||
259 | */ | ||
260 | public Adapter createInputEventAdapter() | ||
261 | { | ||
262 | return null; | ||
263 | } | ||
264 | |||
265 | /** | ||
266 | * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.EventDefinition <em>Event Definition</em>}'. | ||
267 | * <!-- begin-user-doc --> | ||
268 | * This default implementation returns null so that we can easily ignore cases; | ||
269 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
270 | * <!-- end-user-doc --> | ||
271 | * @return the new adapter. | ||
272 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.EventDefinition | ||
273 | * @generated | ||
274 | */ | ||
275 | public Adapter createEventDefinitionAdapter() | ||
276 | { | ||
277 | return null; | ||
278 | } | ||
279 | |||
280 | /** | ||
281 | * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.BasicEventDefinition <em>Basic Event Definition</em>}'. | ||
282 | * <!-- begin-user-doc --> | ||
283 | * This default implementation returns null so that we can easily ignore cases; | ||
284 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
285 | * <!-- end-user-doc --> | ||
286 | * @return the new adapter. | ||
287 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.BasicEventDefinition | ||
288 | * @generated | ||
289 | */ | ||
290 | public Adapter createBasicEventDefinitionAdapter() | ||
291 | { | ||
292 | return null; | ||
293 | } | ||
294 | |||
295 | /** | ||
296 | * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.GateDefinition <em>Gate Definition</em>}'. | ||
297 | * <!-- begin-user-doc --> | ||
298 | * This default implementation returns null so that we can easily ignore cases; | ||
299 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
300 | * <!-- end-user-doc --> | ||
301 | * @return the new adapter. | ||
302 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.GateDefinition | ||
303 | * @generated | ||
304 | */ | ||
305 | public Adapter createGateDefinitionAdapter() | ||
306 | { | ||
307 | return null; | ||
308 | } | ||
309 | |||
310 | /** | ||
311 | * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.AndGate <em>And Gate</em>}'. | ||
312 | * <!-- begin-user-doc --> | ||
313 | * This default implementation returns null so that we can easily ignore cases; | ||
314 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
315 | * <!-- end-user-doc --> | ||
316 | * @return the new adapter. | ||
317 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.AndGate | ||
318 | * @generated | ||
319 | */ | ||
320 | public Adapter createAndGateAdapter() | ||
321 | { | ||
322 | return null; | ||
323 | } | ||
324 | |||
325 | /** | ||
326 | * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.OrGate <em>Or Gate</em>}'. | ||
327 | * <!-- begin-user-doc --> | ||
328 | * This default implementation returns null so that we can easily ignore cases; | ||
329 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
330 | * <!-- end-user-doc --> | ||
331 | * @return the new adapter. | ||
332 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.OrGate | ||
333 | * @generated | ||
334 | */ | ||
335 | public Adapter createOrGateAdapter() | ||
336 | { | ||
337 | return null; | ||
338 | } | ||
339 | |||
340 | /** | ||
341 | * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.TransformationDefinition <em>Transformation Definition</em>}'. | ||
342 | * <!-- begin-user-doc --> | ||
343 | * This default implementation returns null so that we can easily ignore cases; | ||
344 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
345 | * <!-- end-user-doc --> | ||
346 | * @return the new adapter. | ||
347 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.TransformationDefinition | ||
348 | * @generated | ||
349 | */ | ||
350 | public Adapter createTransformationDefinitionAdapter() | ||
351 | { | ||
352 | return null; | ||
353 | } | ||
354 | |||
355 | /** | ||
356 | * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.MappingDefinition <em>Mapping Definition</em>}'. | ||
357 | * <!-- begin-user-doc --> | ||
358 | * This default implementation returns null so that we can easily ignore cases; | ||
359 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
360 | * <!-- end-user-doc --> | ||
361 | * @return the new adapter. | ||
362 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.MappingDefinition | ||
363 | * @generated | ||
364 | */ | ||
365 | public Adapter createMappingDefinitionAdapter() | ||
366 | { | ||
367 | return null; | ||
368 | } | ||
369 | |||
370 | /** | ||
371 | * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.MappingParameter <em>Mapping Parameter</em>}'. | ||
372 | * <!-- begin-user-doc --> | ||
373 | * This default implementation returns null so that we can easily ignore cases; | ||
374 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
375 | * <!-- end-user-doc --> | ||
376 | * @return the new adapter. | ||
377 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.MappingParameter | ||
378 | * @generated | ||
379 | */ | ||
380 | public Adapter createMappingParameterAdapter() | ||
381 | { | ||
382 | return null; | ||
383 | } | ||
384 | |||
385 | /** | ||
386 | * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.LookupDefinition <em>Lookup Definition</em>}'. | ||
387 | * <!-- begin-user-doc --> | ||
388 | * This default implementation returns null so that we can easily ignore cases; | ||
389 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
390 | * <!-- end-user-doc --> | ||
391 | * @return the new adapter. | ||
392 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.LookupDefinition | ||
393 | * @generated | ||
394 | */ | ||
395 | public Adapter createLookupDefinitionAdapter() | ||
396 | { | ||
397 | return null; | ||
398 | } | ||
399 | |||
400 | /** | ||
401 | * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.Variable <em>Variable</em>}'. | ||
402 | * <!-- begin-user-doc --> | ||
403 | * This default implementation returns null so that we can easily ignore cases; | ||
404 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
405 | * <!-- end-user-doc --> | ||
406 | * @return the new adapter. | ||
407 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.Variable | ||
408 | * @generated | ||
409 | */ | ||
410 | public Adapter createVariableAdapter() | ||
411 | { | ||
412 | return null; | ||
413 | } | ||
414 | |||
415 | /** | ||
416 | * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.Assignment <em>Assignment</em>}'. | ||
417 | * <!-- begin-user-doc --> | ||
418 | * This default implementation returns null so that we can easily ignore cases; | ||
419 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
420 | * <!-- end-user-doc --> | ||
421 | * @return the new adapter. | ||
422 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.Assignment | ||
423 | * @generated | ||
424 | */ | ||
425 | public Adapter createAssignmentAdapter() | ||
426 | { | ||
427 | return null; | ||
428 | } | ||
429 | |||
430 | /** | ||
431 | * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.EventReference <em>Event Reference</em>}'. | ||
432 | * <!-- begin-user-doc --> | ||
433 | * This default implementation returns null so that we can easily ignore cases; | ||
434 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
435 | * <!-- end-user-doc --> | ||
436 | * @return the new adapter. | ||
437 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.EventReference | ||
438 | * @generated | ||
439 | */ | ||
440 | public Adapter createEventReferenceAdapter() | ||
441 | { | ||
442 | return null; | ||
443 | } | ||
444 | |||
445 | /** | ||
446 | * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ComponentInstance <em>Component Instance</em>}'. | ||
447 | * <!-- begin-user-doc --> | ||
448 | * This default implementation returns null so that we can easily ignore cases; | ||
449 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
450 | * <!-- end-user-doc --> | ||
451 | * @return the new adapter. | ||
452 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ComponentInstance | ||
453 | * @generated | ||
454 | */ | ||
455 | public Adapter createComponentInstanceAdapter() | ||
456 | { | ||
457 | return null; | ||
458 | } | ||
459 | |||
460 | /** | ||
461 | * Creates a new adapter for the default case. | ||
462 | * <!-- begin-user-doc --> | ||
463 | * This default implementation returns null. | ||
464 | * <!-- end-user-doc --> | ||
465 | * @return the new adapter. | ||
466 | * @generated | ||
467 | */ | ||
468 | public Adapter createEObjectAdapter() | ||
469 | { | ||
470 | return null; | ||
471 | } | ||
472 | |||
473 | } //CftLanguageAdapterFactory | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/util/CftLanguageSwitch.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/util/CftLanguageSwitch.java new file mode 100644 index 00000000..29266601 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/util/CftLanguageSwitch.java | |||
@@ -0,0 +1,525 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.util; | ||
5 | |||
6 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.*; | ||
7 | |||
8 | import org.eclipse.emf.ecore.EObject; | ||
9 | import org.eclipse.emf.ecore.EPackage; | ||
10 | |||
11 | import org.eclipse.emf.ecore.util.Switch; | ||
12 | |||
13 | /** | ||
14 | * <!-- begin-user-doc --> | ||
15 | * The <b>Switch</b> for the model's inheritance hierarchy. | ||
16 | * It supports the call {@link #doSwitch(EObject) doSwitch(object)} | ||
17 | * to invoke the <code>caseXXX</code> method for each class of the model, | ||
18 | * starting with the actual class of the object | ||
19 | * and proceeding up the inheritance hierarchy | ||
20 | * until a non-null result is returned, | ||
21 | * which is the result of the switch. | ||
22 | * <!-- end-user-doc --> | ||
23 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage | ||
24 | * @generated | ||
25 | */ | ||
26 | public class CftLanguageSwitch<T> extends Switch<T> | ||
27 | { | ||
28 | /** | ||
29 | * The cached model package | ||
30 | * <!-- begin-user-doc --> | ||
31 | * <!-- end-user-doc --> | ||
32 | * @generated | ||
33 | */ | ||
34 | protected static CftLanguagePackage modelPackage; | ||
35 | |||
36 | /** | ||
37 | * Creates an instance of the switch. | ||
38 | * <!-- begin-user-doc --> | ||
39 | * <!-- end-user-doc --> | ||
40 | * @generated | ||
41 | */ | ||
42 | public CftLanguageSwitch() | ||
43 | { | ||
44 | if (modelPackage == null) | ||
45 | { | ||
46 | modelPackage = CftLanguagePackage.eINSTANCE; | ||
47 | } | ||
48 | } | ||
49 | |||
50 | /** | ||
51 | * Checks whether this is a switch for the given package. | ||
52 | * <!-- begin-user-doc --> | ||
53 | * <!-- end-user-doc --> | ||
54 | * @param ePackage the package in question. | ||
55 | * @return whether this is a switch for the given package. | ||
56 | * @generated | ||
57 | */ | ||
58 | @Override | ||
59 | protected boolean isSwitchFor(EPackage ePackage) | ||
60 | { | ||
61 | return ePackage == modelPackage; | ||
62 | } | ||
63 | |||
64 | /** | ||
65 | * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. | ||
66 | * <!-- begin-user-doc --> | ||
67 | * <!-- end-user-doc --> | ||
68 | * @return the first non-null result returned by a <code>caseXXX</code> call. | ||
69 | * @generated | ||
70 | */ | ||
71 | @Override | ||
72 | protected T doSwitch(int classifierID, EObject theEObject) | ||
73 | { | ||
74 | switch (classifierID) | ||
75 | { | ||
76 | case CftLanguagePackage.CFT_MODEL: | ||
77 | { | ||
78 | CftModel cftModel = (CftModel)theEObject; | ||
79 | T result = caseCftModel(cftModel); | ||
80 | if (result == null) result = defaultCase(theEObject); | ||
81 | return result; | ||
82 | } | ||
83 | case CftLanguagePackage.IMPORT_DECLARATION: | ||
84 | { | ||
85 | ImportDeclaration importDeclaration = (ImportDeclaration)theEObject; | ||
86 | T result = caseImportDeclaration(importDeclaration); | ||
87 | if (result == null) result = defaultCase(theEObject); | ||
88 | return result; | ||
89 | } | ||
90 | case CftLanguagePackage.COMPONENT_DEFINITION: | ||
91 | { | ||
92 | ComponentDefinition componentDefinition = (ComponentDefinition)theEObject; | ||
93 | T result = caseComponentDefinition(componentDefinition); | ||
94 | if (result == null) result = defaultCase(theEObject); | ||
95 | return result; | ||
96 | } | ||
97 | case CftLanguagePackage.EVENT_DECLARATION: | ||
98 | { | ||
99 | EventDeclaration eventDeclaration = (EventDeclaration)theEObject; | ||
100 | T result = caseEventDeclaration(eventDeclaration); | ||
101 | if (result == null) result = defaultCase(theEObject); | ||
102 | return result; | ||
103 | } | ||
104 | case CftLanguagePackage.INPUT_EVENT: | ||
105 | { | ||
106 | InputEvent inputEvent = (InputEvent)theEObject; | ||
107 | T result = caseInputEvent(inputEvent); | ||
108 | if (result == null) result = caseEventDeclaration(inputEvent); | ||
109 | if (result == null) result = defaultCase(theEObject); | ||
110 | return result; | ||
111 | } | ||
112 | case CftLanguagePackage.EVENT_DEFINITION: | ||
113 | { | ||
114 | EventDefinition eventDefinition = (EventDefinition)theEObject; | ||
115 | T result = caseEventDefinition(eventDefinition); | ||
116 | if (result == null) result = caseEventDeclaration(eventDefinition); | ||
117 | if (result == null) result = defaultCase(theEObject); | ||
118 | return result; | ||
119 | } | ||
120 | case CftLanguagePackage.BASIC_EVENT_DEFINITION: | ||
121 | { | ||
122 | BasicEventDefinition basicEventDefinition = (BasicEventDefinition)theEObject; | ||
123 | T result = caseBasicEventDefinition(basicEventDefinition); | ||
124 | if (result == null) result = caseEventDefinition(basicEventDefinition); | ||
125 | if (result == null) result = caseEventDeclaration(basicEventDefinition); | ||
126 | if (result == null) result = defaultCase(theEObject); | ||
127 | return result; | ||
128 | } | ||
129 | case CftLanguagePackage.GATE_DEFINITION: | ||
130 | { | ||
131 | GateDefinition gateDefinition = (GateDefinition)theEObject; | ||
132 | T result = caseGateDefinition(gateDefinition); | ||
133 | if (result == null) result = caseEventDefinition(gateDefinition); | ||
134 | if (result == null) result = caseEventDeclaration(gateDefinition); | ||
135 | if (result == null) result = defaultCase(theEObject); | ||
136 | return result; | ||
137 | } | ||
138 | case CftLanguagePackage.AND_GATE: | ||
139 | { | ||
140 | AndGate andGate = (AndGate)theEObject; | ||
141 | T result = caseAndGate(andGate); | ||
142 | if (result == null) result = caseGateDefinition(andGate); | ||
143 | if (result == null) result = caseEventDefinition(andGate); | ||
144 | if (result == null) result = caseEventDeclaration(andGate); | ||
145 | if (result == null) result = defaultCase(theEObject); | ||
146 | return result; | ||
147 | } | ||
148 | case CftLanguagePackage.OR_GATE: | ||
149 | { | ||
150 | OrGate orGate = (OrGate)theEObject; | ||
151 | T result = caseOrGate(orGate); | ||
152 | if (result == null) result = caseGateDefinition(orGate); | ||
153 | if (result == null) result = caseEventDefinition(orGate); | ||
154 | if (result == null) result = caseEventDeclaration(orGate); | ||
155 | if (result == null) result = defaultCase(theEObject); | ||
156 | return result; | ||
157 | } | ||
158 | case CftLanguagePackage.TRANSFORMATION_DEFINITION: | ||
159 | { | ||
160 | TransformationDefinition transformationDefinition = (TransformationDefinition)theEObject; | ||
161 | T result = caseTransformationDefinition(transformationDefinition); | ||
162 | if (result == null) result = defaultCase(theEObject); | ||
163 | return result; | ||
164 | } | ||
165 | case CftLanguagePackage.MAPPING_DEFINITION: | ||
166 | { | ||
167 | MappingDefinition mappingDefinition = (MappingDefinition)theEObject; | ||
168 | T result = caseMappingDefinition(mappingDefinition); | ||
169 | if (result == null) result = defaultCase(theEObject); | ||
170 | return result; | ||
171 | } | ||
172 | case CftLanguagePackage.MAPPING_PARAMETER: | ||
173 | { | ||
174 | MappingParameter mappingParameter = (MappingParameter)theEObject; | ||
175 | T result = caseMappingParameter(mappingParameter); | ||
176 | if (result == null) result = defaultCase(theEObject); | ||
177 | return result; | ||
178 | } | ||
179 | case CftLanguagePackage.LOOKUP_DEFINITION: | ||
180 | { | ||
181 | LookupDefinition lookupDefinition = (LookupDefinition)theEObject; | ||
182 | T result = caseLookupDefinition(lookupDefinition); | ||
183 | if (result == null) result = caseVariable(lookupDefinition); | ||
184 | if (result == null) result = defaultCase(theEObject); | ||
185 | return result; | ||
186 | } | ||
187 | case CftLanguagePackage.VARIABLE: | ||
188 | { | ||
189 | Variable variable = (Variable)theEObject; | ||
190 | T result = caseVariable(variable); | ||
191 | if (result == null) result = defaultCase(theEObject); | ||
192 | return result; | ||
193 | } | ||
194 | case CftLanguagePackage.ASSIGNMENT: | ||
195 | { | ||
196 | Assignment assignment = (Assignment)theEObject; | ||
197 | T result = caseAssignment(assignment); | ||
198 | if (result == null) result = defaultCase(theEObject); | ||
199 | return result; | ||
200 | } | ||
201 | case CftLanguagePackage.EVENT_REFERENCE: | ||
202 | { | ||
203 | EventReference eventReference = (EventReference)theEObject; | ||
204 | T result = caseEventReference(eventReference); | ||
205 | if (result == null) result = defaultCase(theEObject); | ||
206 | return result; | ||
207 | } | ||
208 | case CftLanguagePackage.COMPONENT_INSTANCE: | ||
209 | { | ||
210 | ComponentInstance componentInstance = (ComponentInstance)theEObject; | ||
211 | T result = caseComponentInstance(componentInstance); | ||
212 | if (result == null) result = caseVariable(componentInstance); | ||
213 | if (result == null) result = defaultCase(theEObject); | ||
214 | return result; | ||
215 | } | ||
216 | default: return defaultCase(theEObject); | ||
217 | } | ||
218 | } | ||
219 | |||
220 | /** | ||
221 | * Returns the result of interpreting the object as an instance of '<em>Cft Model</em>'. | ||
222 | * <!-- begin-user-doc --> | ||
223 | * This implementation returns null; | ||
224 | * returning a non-null result will terminate the switch. | ||
225 | * <!-- end-user-doc --> | ||
226 | * @param object the target of the switch. | ||
227 | * @return the result of interpreting the object as an instance of '<em>Cft Model</em>'. | ||
228 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
229 | * @generated | ||
230 | */ | ||
231 | public T caseCftModel(CftModel object) | ||
232 | { | ||
233 | return null; | ||
234 | } | ||
235 | |||
236 | /** | ||
237 | * Returns the result of interpreting the object as an instance of '<em>Import Declaration</em>'. | ||
238 | * <!-- begin-user-doc --> | ||
239 | * This implementation returns null; | ||
240 | * returning a non-null result will terminate the switch. | ||
241 | * <!-- end-user-doc --> | ||
242 | * @param object the target of the switch. | ||
243 | * @return the result of interpreting the object as an instance of '<em>Import Declaration</em>'. | ||
244 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
245 | * @generated | ||
246 | */ | ||
247 | public T caseImportDeclaration(ImportDeclaration object) | ||
248 | { | ||
249 | return null; | ||
250 | } | ||
251 | |||
252 | /** | ||
253 | * Returns the result of interpreting the object as an instance of '<em>Component Definition</em>'. | ||
254 | * <!-- begin-user-doc --> | ||
255 | * This implementation returns null; | ||
256 | * returning a non-null result will terminate the switch. | ||
257 | * <!-- end-user-doc --> | ||
258 | * @param object the target of the switch. | ||
259 | * @return the result of interpreting the object as an instance of '<em>Component Definition</em>'. | ||
260 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
261 | * @generated | ||
262 | */ | ||
263 | public T caseComponentDefinition(ComponentDefinition object) | ||
264 | { | ||
265 | return null; | ||
266 | } | ||
267 | |||
268 | /** | ||
269 | * Returns the result of interpreting the object as an instance of '<em>Event Declaration</em>'. | ||
270 | * <!-- begin-user-doc --> | ||
271 | * This implementation returns null; | ||
272 | * returning a non-null result will terminate the switch. | ||
273 | * <!-- end-user-doc --> | ||
274 | * @param object the target of the switch. | ||
275 | * @return the result of interpreting the object as an instance of '<em>Event Declaration</em>'. | ||
276 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
277 | * @generated | ||
278 | */ | ||
279 | public T caseEventDeclaration(EventDeclaration object) | ||
280 | { | ||
281 | return null; | ||
282 | } | ||
283 | |||
284 | /** | ||
285 | * Returns the result of interpreting the object as an instance of '<em>Input Event</em>'. | ||
286 | * <!-- begin-user-doc --> | ||
287 | * This implementation returns null; | ||
288 | * returning a non-null result will terminate the switch. | ||
289 | * <!-- end-user-doc --> | ||
290 | * @param object the target of the switch. | ||
291 | * @return the result of interpreting the object as an instance of '<em>Input Event</em>'. | ||
292 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
293 | * @generated | ||
294 | */ | ||
295 | public T caseInputEvent(InputEvent object) | ||
296 | { | ||
297 | return null; | ||
298 | } | ||
299 | |||
300 | /** | ||
301 | * Returns the result of interpreting the object as an instance of '<em>Event Definition</em>'. | ||
302 | * <!-- begin-user-doc --> | ||
303 | * This implementation returns null; | ||
304 | * returning a non-null result will terminate the switch. | ||
305 | * <!-- end-user-doc --> | ||
306 | * @param object the target of the switch. | ||
307 | * @return the result of interpreting the object as an instance of '<em>Event Definition</em>'. | ||
308 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
309 | * @generated | ||
310 | */ | ||
311 | public T caseEventDefinition(EventDefinition object) | ||
312 | { | ||
313 | return null; | ||
314 | } | ||
315 | |||
316 | /** | ||
317 | * Returns the result of interpreting the object as an instance of '<em>Basic Event Definition</em>'. | ||
318 | * <!-- begin-user-doc --> | ||
319 | * This implementation returns null; | ||
320 | * returning a non-null result will terminate the switch. | ||
321 | * <!-- end-user-doc --> | ||
322 | * @param object the target of the switch. | ||
323 | * @return the result of interpreting the object as an instance of '<em>Basic Event Definition</em>'. | ||
324 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
325 | * @generated | ||
326 | */ | ||
327 | public T caseBasicEventDefinition(BasicEventDefinition object) | ||
328 | { | ||
329 | return null; | ||
330 | } | ||
331 | |||
332 | /** | ||
333 | * Returns the result of interpreting the object as an instance of '<em>Gate Definition</em>'. | ||
334 | * <!-- begin-user-doc --> | ||
335 | * This implementation returns null; | ||
336 | * returning a non-null result will terminate the switch. | ||
337 | * <!-- end-user-doc --> | ||
338 | * @param object the target of the switch. | ||
339 | * @return the result of interpreting the object as an instance of '<em>Gate Definition</em>'. | ||
340 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
341 | * @generated | ||
342 | */ | ||
343 | public T caseGateDefinition(GateDefinition object) | ||
344 | { | ||
345 | return null; | ||
346 | } | ||
347 | |||
348 | /** | ||
349 | * Returns the result of interpreting the object as an instance of '<em>And Gate</em>'. | ||
350 | * <!-- begin-user-doc --> | ||
351 | * This implementation returns null; | ||
352 | * returning a non-null result will terminate the switch. | ||
353 | * <!-- end-user-doc --> | ||
354 | * @param object the target of the switch. | ||
355 | * @return the result of interpreting the object as an instance of '<em>And Gate</em>'. | ||
356 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
357 | * @generated | ||
358 | */ | ||
359 | public T caseAndGate(AndGate object) | ||
360 | { | ||
361 | return null; | ||
362 | } | ||
363 | |||
364 | /** | ||
365 | * Returns the result of interpreting the object as an instance of '<em>Or Gate</em>'. | ||
366 | * <!-- begin-user-doc --> | ||
367 | * This implementation returns null; | ||
368 | * returning a non-null result will terminate the switch. | ||
369 | * <!-- end-user-doc --> | ||
370 | * @param object the target of the switch. | ||
371 | * @return the result of interpreting the object as an instance of '<em>Or Gate</em>'. | ||
372 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
373 | * @generated | ||
374 | */ | ||
375 | public T caseOrGate(OrGate object) | ||
376 | { | ||
377 | return null; | ||
378 | } | ||
379 | |||
380 | /** | ||
381 | * Returns the result of interpreting the object as an instance of '<em>Transformation Definition</em>'. | ||
382 | * <!-- begin-user-doc --> | ||
383 | * This implementation returns null; | ||
384 | * returning a non-null result will terminate the switch. | ||
385 | * <!-- end-user-doc --> | ||
386 | * @param object the target of the switch. | ||
387 | * @return the result of interpreting the object as an instance of '<em>Transformation Definition</em>'. | ||
388 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
389 | * @generated | ||
390 | */ | ||
391 | public T caseTransformationDefinition(TransformationDefinition object) | ||
392 | { | ||
393 | return null; | ||
394 | } | ||
395 | |||
396 | /** | ||
397 | * Returns the result of interpreting the object as an instance of '<em>Mapping Definition</em>'. | ||
398 | * <!-- begin-user-doc --> | ||
399 | * This implementation returns null; | ||
400 | * returning a non-null result will terminate the switch. | ||
401 | * <!-- end-user-doc --> | ||
402 | * @param object the target of the switch. | ||
403 | * @return the result of interpreting the object as an instance of '<em>Mapping Definition</em>'. | ||
404 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
405 | * @generated | ||
406 | */ | ||
407 | public T caseMappingDefinition(MappingDefinition object) | ||
408 | { | ||
409 | return null; | ||
410 | } | ||
411 | |||
412 | /** | ||
413 | * Returns the result of interpreting the object as an instance of '<em>Mapping Parameter</em>'. | ||
414 | * <!-- begin-user-doc --> | ||
415 | * This implementation returns null; | ||
416 | * returning a non-null result will terminate the switch. | ||
417 | * <!-- end-user-doc --> | ||
418 | * @param object the target of the switch. | ||
419 | * @return the result of interpreting the object as an instance of '<em>Mapping Parameter</em>'. | ||
420 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
421 | * @generated | ||
422 | */ | ||
423 | public T caseMappingParameter(MappingParameter object) | ||
424 | { | ||
425 | return null; | ||
426 | } | ||
427 | |||
428 | /** | ||
429 | * Returns the result of interpreting the object as an instance of '<em>Lookup Definition</em>'. | ||
430 | * <!-- begin-user-doc --> | ||
431 | * This implementation returns null; | ||
432 | * returning a non-null result will terminate the switch. | ||
433 | * <!-- end-user-doc --> | ||
434 | * @param object the target of the switch. | ||
435 | * @return the result of interpreting the object as an instance of '<em>Lookup Definition</em>'. | ||
436 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
437 | * @generated | ||
438 | */ | ||
439 | public T caseLookupDefinition(LookupDefinition object) | ||
440 | { | ||
441 | return null; | ||
442 | } | ||
443 | |||
444 | /** | ||
445 | * Returns the result of interpreting the object as an instance of '<em>Variable</em>'. | ||
446 | * <!-- begin-user-doc --> | ||
447 | * This implementation returns null; | ||
448 | * returning a non-null result will terminate the switch. | ||
449 | * <!-- end-user-doc --> | ||
450 | * @param object the target of the switch. | ||
451 | * @return the result of interpreting the object as an instance of '<em>Variable</em>'. | ||
452 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
453 | * @generated | ||
454 | */ | ||
455 | public T caseVariable(Variable object) | ||
456 | { | ||
457 | return null; | ||
458 | } | ||
459 | |||
460 | /** | ||
461 | * Returns the result of interpreting the object as an instance of '<em>Assignment</em>'. | ||
462 | * <!-- begin-user-doc --> | ||
463 | * This implementation returns null; | ||
464 | * returning a non-null result will terminate the switch. | ||
465 | * <!-- end-user-doc --> | ||
466 | * @param object the target of the switch. | ||
467 | * @return the result of interpreting the object as an instance of '<em>Assignment</em>'. | ||
468 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
469 | * @generated | ||
470 | */ | ||
471 | public T caseAssignment(Assignment object) | ||
472 | { | ||
473 | return null; | ||
474 | } | ||
475 | |||
476 | /** | ||
477 | * Returns the result of interpreting the object as an instance of '<em>Event Reference</em>'. | ||
478 | * <!-- begin-user-doc --> | ||
479 | * This implementation returns null; | ||
480 | * returning a non-null result will terminate the switch. | ||
481 | * <!-- end-user-doc --> | ||
482 | * @param object the target of the switch. | ||
483 | * @return the result of interpreting the object as an instance of '<em>Event Reference</em>'. | ||
484 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
485 | * @generated | ||
486 | */ | ||
487 | public T caseEventReference(EventReference object) | ||
488 | { | ||
489 | return null; | ||
490 | } | ||
491 | |||
492 | /** | ||
493 | * Returns the result of interpreting the object as an instance of '<em>Component Instance</em>'. | ||
494 | * <!-- begin-user-doc --> | ||
495 | * This implementation returns null; | ||
496 | * returning a non-null result will terminate the switch. | ||
497 | * <!-- end-user-doc --> | ||
498 | * @param object the target of the switch. | ||
499 | * @return the result of interpreting the object as an instance of '<em>Component Instance</em>'. | ||
500 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
501 | * @generated | ||
502 | */ | ||
503 | public T caseComponentInstance(ComponentInstance object) | ||
504 | { | ||
505 | return null; | ||
506 | } | ||
507 | |||
508 | /** | ||
509 | * Returns the result of interpreting the object as an instance of '<em>EObject</em>'. | ||
510 | * <!-- begin-user-doc --> | ||
511 | * This implementation returns null; | ||
512 | * returning a non-null result will terminate the switch, but this is the last case anyway. | ||
513 | * <!-- end-user-doc --> | ||
514 | * @param object the target of the switch. | ||
515 | * @return the result of interpreting the object as an instance of '<em>EObject</em>'. | ||
516 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) | ||
517 | * @generated | ||
518 | */ | ||
519 | @Override | ||
520 | public T defaultCase(EObject object) | ||
521 | { | ||
522 | return null; | ||
523 | } | ||
524 | |||
525 | } //CftLanguageSwitch | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/parser/antlr/CftLanguageAntlrTokenFileProvider.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/parser/antlr/CftLanguageAntlrTokenFileProvider.java new file mode 100644 index 00000000..14a64042 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/parser/antlr/CftLanguageAntlrTokenFileProvider.java | |||
@@ -0,0 +1,16 @@ | |||
1 | /* | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.parser.antlr; | ||
5 | |||
6 | import java.io.InputStream; | ||
7 | import org.eclipse.xtext.parser.antlr.IAntlrTokenFileProvider; | ||
8 | |||
9 | public class CftLanguageAntlrTokenFileProvider implements IAntlrTokenFileProvider { | ||
10 | |||
11 | @Override | ||
12 | public InputStream getAntlrTokenFile() { | ||
13 | ClassLoader classLoader = getClass().getClassLoader(); | ||
14 | return classLoader.getResourceAsStream("hu/bme/mit/inf/dslreasoner/faulttree/components/parser/antlr/internal/InternalCftLanguage.tokens"); | ||
15 | } | ||
16 | } | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/parser/antlr/CftLanguageParser.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/parser/antlr/CftLanguageParser.java new file mode 100644 index 00000000..602ea50d --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/parser/antlr/CftLanguageParser.java | |||
@@ -0,0 +1,40 @@ | |||
1 | /* | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.parser.antlr; | ||
5 | |||
6 | import com.google.inject.Inject; | ||
7 | import hu.bme.mit.inf.dslreasoner.faulttree.components.parser.antlr.internal.InternalCftLanguageParser; | ||
8 | import hu.bme.mit.inf.dslreasoner.faulttree.components.services.CftLanguageGrammarAccess; | ||
9 | import org.eclipse.xtext.parser.antlr.AbstractAntlrParser; | ||
10 | import org.eclipse.xtext.parser.antlr.XtextTokenStream; | ||
11 | |||
12 | public class CftLanguageParser extends AbstractAntlrParser { | ||
13 | |||
14 | @Inject | ||
15 | private CftLanguageGrammarAccess grammarAccess; | ||
16 | |||
17 | @Override | ||
18 | protected void setInitialHiddenTokens(XtextTokenStream tokenStream) { | ||
19 | tokenStream.setInitialHiddenTokens("RULE_WS", "RULE_ML_COMMENT", "RULE_SL_COMMENT"); | ||
20 | } | ||
21 | |||
22 | |||
23 | @Override | ||
24 | protected InternalCftLanguageParser createParser(XtextTokenStream stream) { | ||
25 | return new InternalCftLanguageParser(stream, getGrammarAccess()); | ||
26 | } | ||
27 | |||
28 | @Override | ||
29 | protected String getDefaultRuleName() { | ||
30 | return "CftModel"; | ||
31 | } | ||
32 | |||
33 | public CftLanguageGrammarAccess getGrammarAccess() { | ||
34 | return this.grammarAccess; | ||
35 | } | ||
36 | |||
37 | public void setGrammarAccess(CftLanguageGrammarAccess grammarAccess) { | ||
38 | this.grammarAccess = grammarAccess; | ||
39 | } | ||
40 | } | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/parser/antlr/internal/InternalCftLanguage.g b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/parser/antlr/internal/InternalCftLanguage.g new file mode 100644 index 00000000..ff509b0a --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/parser/antlr/internal/InternalCftLanguage.g | |||
@@ -0,0 +1,1332 @@ | |||
1 | /* | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | grammar InternalCftLanguage; | ||
5 | |||
6 | options { | ||
7 | superClass=AbstractInternalAntlrParser; | ||
8 | } | ||
9 | |||
10 | @lexer::header { | ||
11 | package hu.bme.mit.inf.dslreasoner.faulttree.components.parser.antlr.internal; | ||
12 | |||
13 | // Hack: Use our own Lexer superclass by means of import. | ||
14 | // Currently there is no other way to specify the superclass for the lexer. | ||
15 | import org.eclipse.xtext.parser.antlr.Lexer; | ||
16 | } | ||
17 | |||
18 | @parser::header { | ||
19 | package hu.bme.mit.inf.dslreasoner.faulttree.components.parser.antlr.internal; | ||
20 | |||
21 | import org.eclipse.xtext.*; | ||
22 | import org.eclipse.xtext.parser.*; | ||
23 | import org.eclipse.xtext.parser.impl.*; | ||
24 | import org.eclipse.emf.ecore.util.EcoreUtil; | ||
25 | import org.eclipse.emf.ecore.EObject; | ||
26 | import org.eclipse.xtext.parser.antlr.AbstractInternalAntlrParser; | ||
27 | import org.eclipse.xtext.parser.antlr.XtextTokenStream; | ||
28 | import org.eclipse.xtext.parser.antlr.XtextTokenStream.HiddenTokens; | ||
29 | import org.eclipse.xtext.parser.antlr.AntlrDatatypeRuleToken; | ||
30 | import hu.bme.mit.inf.dslreasoner.faulttree.components.services.CftLanguageGrammarAccess; | ||
31 | |||
32 | } | ||
33 | |||
34 | @parser::members { | ||
35 | |||
36 | private CftLanguageGrammarAccess grammarAccess; | ||
37 | |||
38 | public InternalCftLanguageParser(TokenStream input, CftLanguageGrammarAccess grammarAccess) { | ||
39 | this(input); | ||
40 | this.grammarAccess = grammarAccess; | ||
41 | registerRules(grammarAccess.getGrammar()); | ||
42 | } | ||
43 | |||
44 | @Override | ||
45 | protected String getFirstRuleName() { | ||
46 | return "CftModel"; | ||
47 | } | ||
48 | |||
49 | @Override | ||
50 | protected CftLanguageGrammarAccess getGrammarAccess() { | ||
51 | return grammarAccess; | ||
52 | } | ||
53 | |||
54 | } | ||
55 | |||
56 | @rulecatch { | ||
57 | catch (RecognitionException re) { | ||
58 | recover(input,re); | ||
59 | appendSkippedTokens(); | ||
60 | } | ||
61 | } | ||
62 | |||
63 | // Entry rule entryRuleCftModel | ||
64 | entryRuleCftModel returns [EObject current=null]: | ||
65 | { newCompositeNode(grammarAccess.getCftModelRule()); } | ||
66 | iv_ruleCftModel=ruleCftModel | ||
67 | { $current=$iv_ruleCftModel.current; } | ||
68 | EOF; | ||
69 | |||
70 | // Rule CftModel | ||
71 | ruleCftModel returns [EObject current=null] | ||
72 | @init { | ||
73 | enterRule(); | ||
74 | } | ||
75 | @after { | ||
76 | leaveRule(); | ||
77 | }: | ||
78 | ( | ||
79 | otherlv_0='package' | ||
80 | { | ||
81 | newLeafNode(otherlv_0, grammarAccess.getCftModelAccess().getPackageKeyword_0()); | ||
82 | } | ||
83 | ( | ||
84 | ( | ||
85 | { | ||
86 | newCompositeNode(grammarAccess.getCftModelAccess().getPackageNameQualifiedNameParserRuleCall_1_0()); | ||
87 | } | ||
88 | lv_packageName_1_0=ruleQualifiedName | ||
89 | { | ||
90 | if ($current==null) { | ||
91 | $current = createModelElementForParent(grammarAccess.getCftModelRule()); | ||
92 | } | ||
93 | set( | ||
94 | $current, | ||
95 | "packageName", | ||
96 | lv_packageName_1_0, | ||
97 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.QualifiedName"); | ||
98 | afterParserOrEnumRuleCall(); | ||
99 | } | ||
100 | ) | ||
101 | ) | ||
102 | ( | ||
103 | otherlv_2=';' | ||
104 | { | ||
105 | newLeafNode(otherlv_2, grammarAccess.getCftModelAccess().getSemicolonKeyword_2()); | ||
106 | } | ||
107 | )? | ||
108 | ( | ||
109 | ( | ||
110 | { | ||
111 | newCompositeNode(grammarAccess.getCftModelAccess().getImportsImportDeclarationParserRuleCall_3_0()); | ||
112 | } | ||
113 | lv_imports_3_0=ruleImportDeclaration | ||
114 | { | ||
115 | if ($current==null) { | ||
116 | $current = createModelElementForParent(grammarAccess.getCftModelRule()); | ||
117 | } | ||
118 | add( | ||
119 | $current, | ||
120 | "imports", | ||
121 | lv_imports_3_0, | ||
122 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.ImportDeclaration"); | ||
123 | afterParserOrEnumRuleCall(); | ||
124 | } | ||
125 | ) | ||
126 | )* | ||
127 | ( | ||
128 | ( | ||
129 | ( | ||
130 | { | ||
131 | newCompositeNode(grammarAccess.getCftModelAccess().getComponentDefinitionsComponentDefinitionParserRuleCall_4_0_0()); | ||
132 | } | ||
133 | lv_componentDefinitions_4_0=ruleComponentDefinition | ||
134 | { | ||
135 | if ($current==null) { | ||
136 | $current = createModelElementForParent(grammarAccess.getCftModelRule()); | ||
137 | } | ||
138 | add( | ||
139 | $current, | ||
140 | "componentDefinitions", | ||
141 | lv_componentDefinitions_4_0, | ||
142 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.ComponentDefinition"); | ||
143 | afterParserOrEnumRuleCall(); | ||
144 | } | ||
145 | ) | ||
146 | ) | ||
147 | | | ||
148 | ( | ||
149 | ( | ||
150 | { | ||
151 | newCompositeNode(grammarAccess.getCftModelAccess().getTransformationDefinitionsTransformationDefinitionParserRuleCall_4_1_0()); | ||
152 | } | ||
153 | lv_transformationDefinitions_5_0=ruleTransformationDefinition | ||
154 | { | ||
155 | if ($current==null) { | ||
156 | $current = createModelElementForParent(grammarAccess.getCftModelRule()); | ||
157 | } | ||
158 | add( | ||
159 | $current, | ||
160 | "transformationDefinitions", | ||
161 | lv_transformationDefinitions_5_0, | ||
162 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.TransformationDefinition"); | ||
163 | afterParserOrEnumRuleCall(); | ||
164 | } | ||
165 | ) | ||
166 | ) | ||
167 | )* | ||
168 | ) | ||
169 | ; | ||
170 | |||
171 | // Entry rule entryRuleImportDeclaration | ||
172 | entryRuleImportDeclaration returns [EObject current=null]: | ||
173 | { newCompositeNode(grammarAccess.getImportDeclarationRule()); } | ||
174 | iv_ruleImportDeclaration=ruleImportDeclaration | ||
175 | { $current=$iv_ruleImportDeclaration.current; } | ||
176 | EOF; | ||
177 | |||
178 | // Rule ImportDeclaration | ||
179 | ruleImportDeclaration returns [EObject current=null] | ||
180 | @init { | ||
181 | enterRule(); | ||
182 | } | ||
183 | @after { | ||
184 | leaveRule(); | ||
185 | }: | ||
186 | ( | ||
187 | otherlv_0='import' | ||
188 | { | ||
189 | newLeafNode(otherlv_0, grammarAccess.getImportDeclarationAccess().getImportKeyword_0()); | ||
190 | } | ||
191 | ( | ||
192 | ( | ||
193 | { | ||
194 | newCompositeNode(grammarAccess.getImportDeclarationAccess().getImportedNamespaceQualifiedNameWithWildcardParserRuleCall_1_0()); | ||
195 | } | ||
196 | lv_importedNamespace_1_0=ruleQualifiedNameWithWildcard | ||
197 | { | ||
198 | if ($current==null) { | ||
199 | $current = createModelElementForParent(grammarAccess.getImportDeclarationRule()); | ||
200 | } | ||
201 | set( | ||
202 | $current, | ||
203 | "importedNamespace", | ||
204 | lv_importedNamespace_1_0, | ||
205 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.QualifiedNameWithWildcard"); | ||
206 | afterParserOrEnumRuleCall(); | ||
207 | } | ||
208 | ) | ||
209 | ) | ||
210 | ( | ||
211 | otherlv_2=';' | ||
212 | { | ||
213 | newLeafNode(otherlv_2, grammarAccess.getImportDeclarationAccess().getSemicolonKeyword_2()); | ||
214 | } | ||
215 | )? | ||
216 | ) | ||
217 | ; | ||
218 | |||
219 | // Entry rule entryRuleComponentDefinition | ||
220 | entryRuleComponentDefinition returns [EObject current=null]: | ||
221 | { newCompositeNode(grammarAccess.getComponentDefinitionRule()); } | ||
222 | iv_ruleComponentDefinition=ruleComponentDefinition | ||
223 | { $current=$iv_ruleComponentDefinition.current; } | ||
224 | EOF; | ||
225 | |||
226 | // Rule ComponentDefinition | ||
227 | ruleComponentDefinition returns [EObject current=null] | ||
228 | @init { | ||
229 | enterRule(); | ||
230 | } | ||
231 | @after { | ||
232 | leaveRule(); | ||
233 | }: | ||
234 | ( | ||
235 | otherlv_0='cft' | ||
236 | { | ||
237 | newLeafNode(otherlv_0, grammarAccess.getComponentDefinitionAccess().getCftKeyword_0()); | ||
238 | } | ||
239 | ( | ||
240 | ( | ||
241 | lv_name_1_0=RULE_ID | ||
242 | { | ||
243 | newLeafNode(lv_name_1_0, grammarAccess.getComponentDefinitionAccess().getNameIDTerminalRuleCall_1_0()); | ||
244 | } | ||
245 | { | ||
246 | if ($current==null) { | ||
247 | $current = createModelElement(grammarAccess.getComponentDefinitionRule()); | ||
248 | } | ||
249 | setWithLastConsumed( | ||
250 | $current, | ||
251 | "name", | ||
252 | lv_name_1_0, | ||
253 | "org.eclipse.xtext.common.Terminals.ID"); | ||
254 | } | ||
255 | ) | ||
256 | ) | ||
257 | otherlv_2='{' | ||
258 | { | ||
259 | newLeafNode(otherlv_2, grammarAccess.getComponentDefinitionAccess().getLeftCurlyBracketKeyword_2()); | ||
260 | } | ||
261 | ( | ||
262 | ( | ||
263 | { | ||
264 | getUnorderedGroupHelper().enter(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3()); | ||
265 | } | ||
266 | ( | ||
267 | ( | ||
268 | ( | ||
269 | {getUnorderedGroupHelper().canSelect(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3(), 0)}?=>( | ||
270 | { | ||
271 | getUnorderedGroupHelper().select(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3(), 0); | ||
272 | } | ||
273 | ({true}?=>(otherlv_4='in' | ||
274 | { | ||
275 | newLeafNode(otherlv_4, grammarAccess.getComponentDefinitionAccess().getInKeyword_3_0_0()); | ||
276 | } | ||
277 | ( | ||
278 | ( | ||
279 | { | ||
280 | newCompositeNode(grammarAccess.getComponentDefinitionAccess().getInputEventsInputEventParserRuleCall_3_0_1_0()); | ||
281 | } | ||
282 | lv_inputEvents_5_0=ruleInputEvent | ||
283 | { | ||
284 | if ($current==null) { | ||
285 | $current = createModelElementForParent(grammarAccess.getComponentDefinitionRule()); | ||
286 | } | ||
287 | add( | ||
288 | $current, | ||
289 | "inputEvents", | ||
290 | lv_inputEvents_5_0, | ||
291 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.InputEvent"); | ||
292 | afterParserOrEnumRuleCall(); | ||
293 | } | ||
294 | ) | ||
295 | )* | ||
296 | otherlv_6=';' | ||
297 | { | ||
298 | newLeafNode(otherlv_6, grammarAccess.getComponentDefinitionAccess().getSemicolonKeyword_3_0_2()); | ||
299 | } | ||
300 | )) | ||
301 | { | ||
302 | getUnorderedGroupHelper().returnFromSelection(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3()); | ||
303 | } | ||
304 | ) | ||
305 | )| | ||
306 | ( | ||
307 | {getUnorderedGroupHelper().canSelect(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3(), 1)}?=>( | ||
308 | { | ||
309 | getUnorderedGroupHelper().select(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3(), 1); | ||
310 | } | ||
311 | ({true}?=>(otherlv_7='out' | ||
312 | { | ||
313 | newLeafNode(otherlv_7, grammarAccess.getComponentDefinitionAccess().getOutKeyword_3_1_0()); | ||
314 | } | ||
315 | ( | ||
316 | ( | ||
317 | { | ||
318 | if ($current==null) { | ||
319 | $current = createModelElement(grammarAccess.getComponentDefinitionRule()); | ||
320 | } | ||
321 | } | ||
322 | otherlv_8=RULE_ID | ||
323 | { | ||
324 | newLeafNode(otherlv_8, grammarAccess.getComponentDefinitionAccess().getOutputEventsEventDeclarationCrossReference_3_1_1_0()); | ||
325 | } | ||
326 | ) | ||
327 | )* | ||
328 | otherlv_9=';' | ||
329 | { | ||
330 | newLeafNode(otherlv_9, grammarAccess.getComponentDefinitionAccess().getSemicolonKeyword_3_1_2()); | ||
331 | } | ||
332 | )) | ||
333 | { | ||
334 | getUnorderedGroupHelper().returnFromSelection(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3()); | ||
335 | } | ||
336 | ) | ||
337 | ) | ||
338 | )* | ||
339 | ) | ||
340 | ) | ||
341 | { | ||
342 | getUnorderedGroupHelper().leave(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3()); | ||
343 | } | ||
344 | ) | ||
345 | ( | ||
346 | ( | ||
347 | ( | ||
348 | { | ||
349 | newCompositeNode(grammarAccess.getComponentDefinitionAccess().getEventDefinitionsEventDefinitionParserRuleCall_4_0_0()); | ||
350 | } | ||
351 | lv_eventDefinitions_10_0=ruleEventDefinition | ||
352 | { | ||
353 | if ($current==null) { | ||
354 | $current = createModelElementForParent(grammarAccess.getComponentDefinitionRule()); | ||
355 | } | ||
356 | add( | ||
357 | $current, | ||
358 | "eventDefinitions", | ||
359 | lv_eventDefinitions_10_0, | ||
360 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.EventDefinition"); | ||
361 | afterParserOrEnumRuleCall(); | ||
362 | } | ||
363 | ) | ||
364 | ) | ||
365 | otherlv_11=';' | ||
366 | { | ||
367 | newLeafNode(otherlv_11, grammarAccess.getComponentDefinitionAccess().getSemicolonKeyword_4_1()); | ||
368 | } | ||
369 | )* | ||
370 | otherlv_12='}' | ||
371 | { | ||
372 | newLeafNode(otherlv_12, grammarAccess.getComponentDefinitionAccess().getRightCurlyBracketKeyword_5()); | ||
373 | } | ||
374 | ) | ||
375 | ; | ||
376 | |||
377 | // Entry rule entryRuleInputEvent | ||
378 | entryRuleInputEvent returns [EObject current=null]: | ||
379 | { newCompositeNode(grammarAccess.getInputEventRule()); } | ||
380 | iv_ruleInputEvent=ruleInputEvent | ||
381 | { $current=$iv_ruleInputEvent.current; } | ||
382 | EOF; | ||
383 | |||
384 | // Rule InputEvent | ||
385 | ruleInputEvent returns [EObject current=null] | ||
386 | @init { | ||
387 | enterRule(); | ||
388 | } | ||
389 | @after { | ||
390 | leaveRule(); | ||
391 | }: | ||
392 | ( | ||
393 | ( | ||
394 | ( | ||
395 | lv_name_0_0=RULE_ID | ||
396 | { | ||
397 | newLeafNode(lv_name_0_0, grammarAccess.getInputEventAccess().getNameIDTerminalRuleCall_0_0()); | ||
398 | } | ||
399 | { | ||
400 | if ($current==null) { | ||
401 | $current = createModelElement(grammarAccess.getInputEventRule()); | ||
402 | } | ||
403 | setWithLastConsumed( | ||
404 | $current, | ||
405 | "name", | ||
406 | lv_name_0_0, | ||
407 | "org.eclipse.xtext.common.Terminals.ID"); | ||
408 | } | ||
409 | ) | ||
410 | ) | ||
411 | ( | ||
412 | ( | ||
413 | lv_multiple_1_0='[]' | ||
414 | { | ||
415 | newLeafNode(lv_multiple_1_0, grammarAccess.getInputEventAccess().getMultipleLeftSquareBracketRightSquareBracketKeyword_1_0()); | ||
416 | } | ||
417 | { | ||
418 | if ($current==null) { | ||
419 | $current = createModelElement(grammarAccess.getInputEventRule()); | ||
420 | } | ||
421 | setWithLastConsumed($current, "multiple", true, "[]"); | ||
422 | } | ||
423 | ) | ||
424 | )? | ||
425 | ) | ||
426 | ; | ||
427 | |||
428 | // Entry rule entryRuleEventDefinition | ||
429 | entryRuleEventDefinition returns [EObject current=null]: | ||
430 | { newCompositeNode(grammarAccess.getEventDefinitionRule()); } | ||
431 | iv_ruleEventDefinition=ruleEventDefinition | ||
432 | { $current=$iv_ruleEventDefinition.current; } | ||
433 | EOF; | ||
434 | |||
435 | // Rule EventDefinition | ||
436 | ruleEventDefinition returns [EObject current=null] | ||
437 | @init { | ||
438 | enterRule(); | ||
439 | } | ||
440 | @after { | ||
441 | leaveRule(); | ||
442 | }: | ||
443 | ( | ||
444 | { | ||
445 | newCompositeNode(grammarAccess.getEventDefinitionAccess().getBasicEventDefinitionParserRuleCall_0()); | ||
446 | } | ||
447 | this_BasicEventDefinition_0=ruleBasicEventDefinition | ||
448 | { | ||
449 | $current = $this_BasicEventDefinition_0.current; | ||
450 | afterParserOrEnumRuleCall(); | ||
451 | } | ||
452 | | | ||
453 | { | ||
454 | newCompositeNode(grammarAccess.getEventDefinitionAccess().getGateDefinitionParserRuleCall_1()); | ||
455 | } | ||
456 | this_GateDefinition_1=ruleGateDefinition | ||
457 | { | ||
458 | $current = $this_GateDefinition_1.current; | ||
459 | afterParserOrEnumRuleCall(); | ||
460 | } | ||
461 | ) | ||
462 | ; | ||
463 | |||
464 | // Entry rule entryRuleBasicEventDefinition | ||
465 | entryRuleBasicEventDefinition returns [EObject current=null]: | ||
466 | { newCompositeNode(grammarAccess.getBasicEventDefinitionRule()); } | ||
467 | iv_ruleBasicEventDefinition=ruleBasicEventDefinition | ||
468 | { $current=$iv_ruleBasicEventDefinition.current; } | ||
469 | EOF; | ||
470 | |||
471 | // Rule BasicEventDefinition | ||
472 | ruleBasicEventDefinition returns [EObject current=null] | ||
473 | @init { | ||
474 | enterRule(); | ||
475 | } | ||
476 | @after { | ||
477 | leaveRule(); | ||
478 | }: | ||
479 | ( | ||
480 | ( | ||
481 | ( | ||
482 | lv_name_0_0=RULE_ID | ||
483 | { | ||
484 | newLeafNode(lv_name_0_0, grammarAccess.getBasicEventDefinitionAccess().getNameIDTerminalRuleCall_0_0()); | ||
485 | } | ||
486 | { | ||
487 | if ($current==null) { | ||
488 | $current = createModelElement(grammarAccess.getBasicEventDefinitionRule()); | ||
489 | } | ||
490 | setWithLastConsumed( | ||
491 | $current, | ||
492 | "name", | ||
493 | lv_name_0_0, | ||
494 | "org.eclipse.xtext.common.Terminals.ID"); | ||
495 | } | ||
496 | ) | ||
497 | ) | ||
498 | otherlv_1='lambda' | ||
499 | { | ||
500 | newLeafNode(otherlv_1, grammarAccess.getBasicEventDefinitionAccess().getLambdaKeyword_1()); | ||
501 | } | ||
502 | otherlv_2='=' | ||
503 | { | ||
504 | newLeafNode(otherlv_2, grammarAccess.getBasicEventDefinitionAccess().getEqualsSignKeyword_2()); | ||
505 | } | ||
506 | ( | ||
507 | ( | ||
508 | lv_rate_3_0=RULE_DOULBE | ||
509 | { | ||
510 | newLeafNode(lv_rate_3_0, grammarAccess.getBasicEventDefinitionAccess().getRateDOULBETerminalRuleCall_3_0()); | ||
511 | } | ||
512 | { | ||
513 | if ($current==null) { | ||
514 | $current = createModelElement(grammarAccess.getBasicEventDefinitionRule()); | ||
515 | } | ||
516 | setWithLastConsumed( | ||
517 | $current, | ||
518 | "rate", | ||
519 | lv_rate_3_0, | ||
520 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.DOULBE"); | ||
521 | } | ||
522 | ) | ||
523 | ) | ||
524 | ) | ||
525 | ; | ||
526 | |||
527 | // Entry rule entryRuleGateDefinition | ||
528 | entryRuleGateDefinition returns [EObject current=null]: | ||
529 | { newCompositeNode(grammarAccess.getGateDefinitionRule()); } | ||
530 | iv_ruleGateDefinition=ruleGateDefinition | ||
531 | { $current=$iv_ruleGateDefinition.current; } | ||
532 | EOF; | ||
533 | |||
534 | // Rule GateDefinition | ||
535 | ruleGateDefinition returns [EObject current=null] | ||
536 | @init { | ||
537 | enterRule(); | ||
538 | } | ||
539 | @after { | ||
540 | leaveRule(); | ||
541 | }: | ||
542 | ( | ||
543 | { | ||
544 | newCompositeNode(grammarAccess.getGateDefinitionAccess().getAndGateParserRuleCall_0()); | ||
545 | } | ||
546 | this_AndGate_0=ruleAndGate | ||
547 | { | ||
548 | $current = $this_AndGate_0.current; | ||
549 | afterParserOrEnumRuleCall(); | ||
550 | } | ||
551 | | | ||
552 | { | ||
553 | newCompositeNode(grammarAccess.getGateDefinitionAccess().getOrGateParserRuleCall_1()); | ||
554 | } | ||
555 | this_OrGate_1=ruleOrGate | ||
556 | { | ||
557 | $current = $this_OrGate_1.current; | ||
558 | afterParserOrEnumRuleCall(); | ||
559 | } | ||
560 | ) | ||
561 | ; | ||
562 | |||
563 | // Entry rule entryRuleAndGate | ||
564 | entryRuleAndGate returns [EObject current=null]: | ||
565 | { newCompositeNode(grammarAccess.getAndGateRule()); } | ||
566 | iv_ruleAndGate=ruleAndGate | ||
567 | { $current=$iv_ruleAndGate.current; } | ||
568 | EOF; | ||
569 | |||
570 | // Rule AndGate | ||
571 | ruleAndGate returns [EObject current=null] | ||
572 | @init { | ||
573 | enterRule(); | ||
574 | } | ||
575 | @after { | ||
576 | leaveRule(); | ||
577 | }: | ||
578 | ( | ||
579 | ( | ||
580 | ( | ||
581 | lv_name_0_0=RULE_ID | ||
582 | { | ||
583 | newLeafNode(lv_name_0_0, grammarAccess.getAndGateAccess().getNameIDTerminalRuleCall_0_0()); | ||
584 | } | ||
585 | { | ||
586 | if ($current==null) { | ||
587 | $current = createModelElement(grammarAccess.getAndGateRule()); | ||
588 | } | ||
589 | setWithLastConsumed( | ||
590 | $current, | ||
591 | "name", | ||
592 | lv_name_0_0, | ||
593 | "org.eclipse.xtext.common.Terminals.ID"); | ||
594 | } | ||
595 | ) | ||
596 | ) | ||
597 | otherlv_1='and' | ||
598 | { | ||
599 | newLeafNode(otherlv_1, grammarAccess.getAndGateAccess().getAndKeyword_1()); | ||
600 | } | ||
601 | ( | ||
602 | ( | ||
603 | { | ||
604 | if ($current==null) { | ||
605 | $current = createModelElement(grammarAccess.getAndGateRule()); | ||
606 | } | ||
607 | } | ||
608 | otherlv_2=RULE_ID | ||
609 | { | ||
610 | newLeafNode(otherlv_2, grammarAccess.getAndGateAccess().getInputEventsEventDeclarationCrossReference_2_0()); | ||
611 | } | ||
612 | ) | ||
613 | )* | ||
614 | ) | ||
615 | ; | ||
616 | |||
617 | // Entry rule entryRuleOrGate | ||
618 | entryRuleOrGate returns [EObject current=null]: | ||
619 | { newCompositeNode(grammarAccess.getOrGateRule()); } | ||
620 | iv_ruleOrGate=ruleOrGate | ||
621 | { $current=$iv_ruleOrGate.current; } | ||
622 | EOF; | ||
623 | |||
624 | // Rule OrGate | ||
625 | ruleOrGate returns [EObject current=null] | ||
626 | @init { | ||
627 | enterRule(); | ||
628 | } | ||
629 | @after { | ||
630 | leaveRule(); | ||
631 | }: | ||
632 | ( | ||
633 | ( | ||
634 | ( | ||
635 | lv_name_0_0=RULE_ID | ||
636 | { | ||
637 | newLeafNode(lv_name_0_0, grammarAccess.getOrGateAccess().getNameIDTerminalRuleCall_0_0()); | ||
638 | } | ||
639 | { | ||
640 | if ($current==null) { | ||
641 | $current = createModelElement(grammarAccess.getOrGateRule()); | ||
642 | } | ||
643 | setWithLastConsumed( | ||
644 | $current, | ||
645 | "name", | ||
646 | lv_name_0_0, | ||
647 | "org.eclipse.xtext.common.Terminals.ID"); | ||
648 | } | ||
649 | ) | ||
650 | ) | ||
651 | otherlv_1='or' | ||
652 | { | ||
653 | newLeafNode(otherlv_1, grammarAccess.getOrGateAccess().getOrKeyword_1()); | ||
654 | } | ||
655 | ( | ||
656 | ( | ||
657 | { | ||
658 | if ($current==null) { | ||
659 | $current = createModelElement(grammarAccess.getOrGateRule()); | ||
660 | } | ||
661 | } | ||
662 | otherlv_2=RULE_ID | ||
663 | { | ||
664 | newLeafNode(otherlv_2, grammarAccess.getOrGateAccess().getInputEventsEventDeclarationCrossReference_2_0()); | ||
665 | } | ||
666 | ) | ||
667 | )* | ||
668 | ) | ||
669 | ; | ||
670 | |||
671 | // Entry rule entryRuleTransformationDefinition | ||
672 | entryRuleTransformationDefinition returns [EObject current=null]: | ||
673 | { newCompositeNode(grammarAccess.getTransformationDefinitionRule()); } | ||
674 | iv_ruleTransformationDefinition=ruleTransformationDefinition | ||
675 | { $current=$iv_ruleTransformationDefinition.current; } | ||
676 | EOF; | ||
677 | |||
678 | // Rule TransformationDefinition | ||
679 | ruleTransformationDefinition returns [EObject current=null] | ||
680 | @init { | ||
681 | enterRule(); | ||
682 | } | ||
683 | @after { | ||
684 | leaveRule(); | ||
685 | }: | ||
686 | ( | ||
687 | otherlv_0='transformation' | ||
688 | { | ||
689 | newLeafNode(otherlv_0, grammarAccess.getTransformationDefinitionAccess().getTransformationKeyword_0()); | ||
690 | } | ||
691 | ( | ||
692 | ( | ||
693 | lv_name_1_0=RULE_ID | ||
694 | { | ||
695 | newLeafNode(lv_name_1_0, grammarAccess.getTransformationDefinitionAccess().getNameIDTerminalRuleCall_1_0()); | ||
696 | } | ||
697 | { | ||
698 | if ($current==null) { | ||
699 | $current = createModelElement(grammarAccess.getTransformationDefinitionRule()); | ||
700 | } | ||
701 | setWithLastConsumed( | ||
702 | $current, | ||
703 | "name", | ||
704 | lv_name_1_0, | ||
705 | "org.eclipse.xtext.common.Terminals.ID"); | ||
706 | } | ||
707 | ) | ||
708 | ) | ||
709 | otherlv_2='{' | ||
710 | { | ||
711 | newLeafNode(otherlv_2, grammarAccess.getTransformationDefinitionAccess().getLeftCurlyBracketKeyword_2()); | ||
712 | } | ||
713 | ( | ||
714 | ( | ||
715 | { | ||
716 | newCompositeNode(grammarAccess.getTransformationDefinitionAccess().getMappingDefinitionsMappingDefinitionParserRuleCall_3_0()); | ||
717 | } | ||
718 | lv_mappingDefinitions_3_0=ruleMappingDefinition | ||
719 | { | ||
720 | if ($current==null) { | ||
721 | $current = createModelElementForParent(grammarAccess.getTransformationDefinitionRule()); | ||
722 | } | ||
723 | add( | ||
724 | $current, | ||
725 | "mappingDefinitions", | ||
726 | lv_mappingDefinitions_3_0, | ||
727 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.MappingDefinition"); | ||
728 | afterParserOrEnumRuleCall(); | ||
729 | } | ||
730 | ) | ||
731 | )* | ||
732 | otherlv_4='}' | ||
733 | { | ||
734 | newLeafNode(otherlv_4, grammarAccess.getTransformationDefinitionAccess().getRightCurlyBracketKeyword_4()); | ||
735 | } | ||
736 | ) | ||
737 | ; | ||
738 | |||
739 | // Entry rule entryRuleMappingDefinition | ||
740 | entryRuleMappingDefinition returns [EObject current=null]: | ||
741 | { newCompositeNode(grammarAccess.getMappingDefinitionRule()); } | ||
742 | iv_ruleMappingDefinition=ruleMappingDefinition | ||
743 | { $current=$iv_ruleMappingDefinition.current; } | ||
744 | EOF; | ||
745 | |||
746 | // Rule MappingDefinition | ||
747 | ruleMappingDefinition returns [EObject current=null] | ||
748 | @init { | ||
749 | enterRule(); | ||
750 | } | ||
751 | @after { | ||
752 | leaveRule(); | ||
753 | }: | ||
754 | ( | ||
755 | ( | ||
756 | ( | ||
757 | lv_topLevel_0_0='toplevel' | ||
758 | { | ||
759 | newLeafNode(lv_topLevel_0_0, grammarAccess.getMappingDefinitionAccess().getTopLevelToplevelKeyword_0_0()); | ||
760 | } | ||
761 | { | ||
762 | if ($current==null) { | ||
763 | $current = createModelElement(grammarAccess.getMappingDefinitionRule()); | ||
764 | } | ||
765 | setWithLastConsumed($current, "topLevel", true, "toplevel"); | ||
766 | } | ||
767 | ) | ||
768 | )? | ||
769 | otherlv_1='mapping' | ||
770 | { | ||
771 | newLeafNode(otherlv_1, grammarAccess.getMappingDefinitionAccess().getMappingKeyword_1()); | ||
772 | } | ||
773 | ( | ||
774 | ( | ||
775 | { | ||
776 | if ($current==null) { | ||
777 | $current = createModelElement(grammarAccess.getMappingDefinitionRule()); | ||
778 | } | ||
779 | } | ||
780 | { | ||
781 | newCompositeNode(grammarAccess.getMappingDefinitionAccess().getPatternPatternCrossReference_2_0()); | ||
782 | } | ||
783 | ruleQualifiedName | ||
784 | { | ||
785 | afterParserOrEnumRuleCall(); | ||
786 | } | ||
787 | ) | ||
788 | ) | ||
789 | otherlv_3='(' | ||
790 | { | ||
791 | newLeafNode(otherlv_3, grammarAccess.getMappingDefinitionAccess().getLeftParenthesisKeyword_3()); | ||
792 | } | ||
793 | ( | ||
794 | ( | ||
795 | { | ||
796 | newCompositeNode(grammarAccess.getMappingDefinitionAccess().getParametersMappingParameterParserRuleCall_4_0()); | ||
797 | } | ||
798 | lv_parameters_4_0=ruleMappingParameter | ||
799 | { | ||
800 | if ($current==null) { | ||
801 | $current = createModelElementForParent(grammarAccess.getMappingDefinitionRule()); | ||
802 | } | ||
803 | add( | ||
804 | $current, | ||
805 | "parameters", | ||
806 | lv_parameters_4_0, | ||
807 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.MappingParameter"); | ||
808 | afterParserOrEnumRuleCall(); | ||
809 | } | ||
810 | ) | ||
811 | ) | ||
812 | ( | ||
813 | otherlv_5=',' | ||
814 | { | ||
815 | newLeafNode(otherlv_5, grammarAccess.getMappingDefinitionAccess().getCommaKeyword_5_0()); | ||
816 | } | ||
817 | ( | ||
818 | ( | ||
819 | { | ||
820 | newCompositeNode(grammarAccess.getMappingDefinitionAccess().getParametersMappingParameterParserRuleCall_5_1_0()); | ||
821 | } | ||
822 | lv_parameters_6_0=ruleMappingParameter | ||
823 | { | ||
824 | if ($current==null) { | ||
825 | $current = createModelElementForParent(grammarAccess.getMappingDefinitionRule()); | ||
826 | } | ||
827 | add( | ||
828 | $current, | ||
829 | "parameters", | ||
830 | lv_parameters_6_0, | ||
831 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.MappingParameter"); | ||
832 | afterParserOrEnumRuleCall(); | ||
833 | } | ||
834 | ) | ||
835 | ) | ||
836 | )* | ||
837 | otherlv_7=')' | ||
838 | { | ||
839 | newLeafNode(otherlv_7, grammarAccess.getMappingDefinitionAccess().getRightParenthesisKeyword_6()); | ||
840 | } | ||
841 | ( | ||
842 | ( | ||
843 | { | ||
844 | newCompositeNode(grammarAccess.getMappingDefinitionAccess().getComponentInstanceComponentInstanceParserRuleCall_7_0()); | ||
845 | } | ||
846 | lv_componentInstance_8_0=ruleComponentInstance | ||
847 | { | ||
848 | if ($current==null) { | ||
849 | $current = createModelElementForParent(grammarAccess.getMappingDefinitionRule()); | ||
850 | } | ||
851 | set( | ||
852 | $current, | ||
853 | "componentInstance", | ||
854 | lv_componentInstance_8_0, | ||
855 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.ComponentInstance"); | ||
856 | afterParserOrEnumRuleCall(); | ||
857 | } | ||
858 | ) | ||
859 | )? | ||
860 | ( | ||
861 | otherlv_9='{' | ||
862 | { | ||
863 | newLeafNode(otherlv_9, grammarAccess.getMappingDefinitionAccess().getLeftCurlyBracketKeyword_8_0()); | ||
864 | } | ||
865 | ( | ||
866 | ( | ||
867 | ( | ||
868 | ( | ||
869 | { | ||
870 | newCompositeNode(grammarAccess.getMappingDefinitionAccess().getLookupDefinitionsLookupDefinitionParserRuleCall_8_1_0_0_0()); | ||
871 | } | ||
872 | lv_lookupDefinitions_10_0=ruleLookupDefinition | ||
873 | { | ||
874 | if ($current==null) { | ||
875 | $current = createModelElementForParent(grammarAccess.getMappingDefinitionRule()); | ||
876 | } | ||
877 | add( | ||
878 | $current, | ||
879 | "lookupDefinitions", | ||
880 | lv_lookupDefinitions_10_0, | ||
881 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.LookupDefinition"); | ||
882 | afterParserOrEnumRuleCall(); | ||
883 | } | ||
884 | ) | ||
885 | ) | ||
886 | | | ||
887 | ( | ||
888 | ( | ||
889 | { | ||
890 | newCompositeNode(grammarAccess.getMappingDefinitionAccess().getAssignmentsAssignmentParserRuleCall_8_1_0_1_0()); | ||
891 | } | ||
892 | lv_assignments_11_0=ruleAssignment | ||
893 | { | ||
894 | if ($current==null) { | ||
895 | $current = createModelElementForParent(grammarAccess.getMappingDefinitionRule()); | ||
896 | } | ||
897 | add( | ||
898 | $current, | ||
899 | "assignments", | ||
900 | lv_assignments_11_0, | ||
901 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.Assignment"); | ||
902 | afterParserOrEnumRuleCall(); | ||
903 | } | ||
904 | ) | ||
905 | ) | ||
906 | ) | ||
907 | otherlv_12=';' | ||
908 | { | ||
909 | newLeafNode(otherlv_12, grammarAccess.getMappingDefinitionAccess().getSemicolonKeyword_8_1_1()); | ||
910 | } | ||
911 | )* | ||
912 | otherlv_13='}' | ||
913 | { | ||
914 | newLeafNode(otherlv_13, grammarAccess.getMappingDefinitionAccess().getRightCurlyBracketKeyword_8_2()); | ||
915 | } | ||
916 | )? | ||
917 | ) | ||
918 | ; | ||
919 | |||
920 | // Entry rule entryRuleMappingParameter | ||
921 | entryRuleMappingParameter returns [EObject current=null]: | ||
922 | { newCompositeNode(grammarAccess.getMappingParameterRule()); } | ||
923 | iv_ruleMappingParameter=ruleMappingParameter | ||
924 | { $current=$iv_ruleMappingParameter.current; } | ||
925 | EOF; | ||
926 | |||
927 | // Rule MappingParameter | ||
928 | ruleMappingParameter returns [EObject current=null] | ||
929 | @init { | ||
930 | enterRule(); | ||
931 | } | ||
932 | @after { | ||
933 | leaveRule(); | ||
934 | }: | ||
935 | ( | ||
936 | ( | ||
937 | lv_name_0_0=RULE_ID | ||
938 | { | ||
939 | newLeafNode(lv_name_0_0, grammarAccess.getMappingParameterAccess().getNameIDTerminalRuleCall_0()); | ||
940 | } | ||
941 | { | ||
942 | if ($current==null) { | ||
943 | $current = createModelElement(grammarAccess.getMappingParameterRule()); | ||
944 | } | ||
945 | setWithLastConsumed( | ||
946 | $current, | ||
947 | "name", | ||
948 | lv_name_0_0, | ||
949 | "org.eclipse.xtext.common.Terminals.ID"); | ||
950 | } | ||
951 | ) | ||
952 | ) | ||
953 | ; | ||
954 | |||
955 | // Entry rule entryRuleLookupDefinition | ||
956 | entryRuleLookupDefinition returns [EObject current=null]: | ||
957 | { newCompositeNode(grammarAccess.getLookupDefinitionRule()); } | ||
958 | iv_ruleLookupDefinition=ruleLookupDefinition | ||
959 | { $current=$iv_ruleLookupDefinition.current; } | ||
960 | EOF; | ||
961 | |||
962 | // Rule LookupDefinition | ||
963 | ruleLookupDefinition returns [EObject current=null] | ||
964 | @init { | ||
965 | enterRule(); | ||
966 | } | ||
967 | @after { | ||
968 | leaveRule(); | ||
969 | }: | ||
970 | ( | ||
971 | otherlv_0='lookup' | ||
972 | { | ||
973 | newLeafNode(otherlv_0, grammarAccess.getLookupDefinitionAccess().getLookupKeyword_0()); | ||
974 | } | ||
975 | ( | ||
976 | ( | ||
977 | { | ||
978 | if ($current==null) { | ||
979 | $current = createModelElement(grammarAccess.getLookupDefinitionRule()); | ||
980 | } | ||
981 | } | ||
982 | otherlv_1=RULE_ID | ||
983 | { | ||
984 | newLeafNode(otherlv_1, grammarAccess.getLookupDefinitionAccess().getMappingMappingDefinitionCrossReference_1_0()); | ||
985 | } | ||
986 | ) | ||
987 | ) | ||
988 | otherlv_2='(' | ||
989 | { | ||
990 | newLeafNode(otherlv_2, grammarAccess.getLookupDefinitionAccess().getLeftParenthesisKeyword_2()); | ||
991 | } | ||
992 | ( | ||
993 | ( | ||
994 | { | ||
995 | if ($current==null) { | ||
996 | $current = createModelElement(grammarAccess.getLookupDefinitionRule()); | ||
997 | } | ||
998 | } | ||
999 | otherlv_3=RULE_ID | ||
1000 | { | ||
1001 | newLeafNode(otherlv_3, grammarAccess.getLookupDefinitionAccess().getArgumentsMappingParameterCrossReference_3_0()); | ||
1002 | } | ||
1003 | ) | ||
1004 | ) | ||
1005 | ( | ||
1006 | otherlv_4=',' | ||
1007 | { | ||
1008 | newLeafNode(otherlv_4, grammarAccess.getLookupDefinitionAccess().getCommaKeyword_4_0()); | ||
1009 | } | ||
1010 | ( | ||
1011 | ( | ||
1012 | { | ||
1013 | if ($current==null) { | ||
1014 | $current = createModelElement(grammarAccess.getLookupDefinitionRule()); | ||
1015 | } | ||
1016 | } | ||
1017 | otherlv_5=RULE_ID | ||
1018 | { | ||
1019 | newLeafNode(otherlv_5, grammarAccess.getLookupDefinitionAccess().getArgumentsMappingParameterCrossReference_4_1_0()); | ||
1020 | } | ||
1021 | ) | ||
1022 | ) | ||
1023 | )* | ||
1024 | otherlv_6=')' | ||
1025 | { | ||
1026 | newLeafNode(otherlv_6, grammarAccess.getLookupDefinitionAccess().getRightParenthesisKeyword_5()); | ||
1027 | } | ||
1028 | otherlv_7='as' | ||
1029 | { | ||
1030 | newLeafNode(otherlv_7, grammarAccess.getLookupDefinitionAccess().getAsKeyword_6()); | ||
1031 | } | ||
1032 | ( | ||
1033 | ( | ||
1034 | lv_name_8_0=RULE_ID | ||
1035 | { | ||
1036 | newLeafNode(lv_name_8_0, grammarAccess.getLookupDefinitionAccess().getNameIDTerminalRuleCall_7_0()); | ||
1037 | } | ||
1038 | { | ||
1039 | if ($current==null) { | ||
1040 | $current = createModelElement(grammarAccess.getLookupDefinitionRule()); | ||
1041 | } | ||
1042 | setWithLastConsumed( | ||
1043 | $current, | ||
1044 | "name", | ||
1045 | lv_name_8_0, | ||
1046 | "org.eclipse.xtext.common.Terminals.ID"); | ||
1047 | } | ||
1048 | ) | ||
1049 | ) | ||
1050 | ) | ||
1051 | ; | ||
1052 | |||
1053 | // Entry rule entryRuleAssignment | ||
1054 | entryRuleAssignment returns [EObject current=null]: | ||
1055 | { newCompositeNode(grammarAccess.getAssignmentRule()); } | ||
1056 | iv_ruleAssignment=ruleAssignment | ||
1057 | { $current=$iv_ruleAssignment.current; } | ||
1058 | EOF; | ||
1059 | |||
1060 | // Rule Assignment | ||
1061 | ruleAssignment returns [EObject current=null] | ||
1062 | @init { | ||
1063 | enterRule(); | ||
1064 | } | ||
1065 | @after { | ||
1066 | leaveRule(); | ||
1067 | }: | ||
1068 | ( | ||
1069 | ( | ||
1070 | ( | ||
1071 | { | ||
1072 | newCompositeNode(grammarAccess.getAssignmentAccess().getInputEventReferenceParserRuleCall_0_0()); | ||
1073 | } | ||
1074 | lv_input_0_0=ruleEventReference | ||
1075 | { | ||
1076 | if ($current==null) { | ||
1077 | $current = createModelElementForParent(grammarAccess.getAssignmentRule()); | ||
1078 | } | ||
1079 | set( | ||
1080 | $current, | ||
1081 | "input", | ||
1082 | lv_input_0_0, | ||
1083 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.EventReference"); | ||
1084 | afterParserOrEnumRuleCall(); | ||
1085 | } | ||
1086 | ) | ||
1087 | ) | ||
1088 | ( | ||
1089 | ( | ||
1090 | ( | ||
1091 | lv_multiple_1_0='+=' | ||
1092 | { | ||
1093 | newLeafNode(lv_multiple_1_0, grammarAccess.getAssignmentAccess().getMultiplePlusSignEqualsSignKeyword_1_0_0()); | ||
1094 | } | ||
1095 | { | ||
1096 | if ($current==null) { | ||
1097 | $current = createModelElement(grammarAccess.getAssignmentRule()); | ||
1098 | } | ||
1099 | setWithLastConsumed($current, "multiple", true, "+="); | ||
1100 | } | ||
1101 | ) | ||
1102 | ) | ||
1103 | | | ||
1104 | otherlv_2=':=' | ||
1105 | { | ||
1106 | newLeafNode(otherlv_2, grammarAccess.getAssignmentAccess().getColonEqualsSignKeyword_1_1()); | ||
1107 | } | ||
1108 | ) | ||
1109 | ( | ||
1110 | ( | ||
1111 | { | ||
1112 | newCompositeNode(grammarAccess.getAssignmentAccess().getOutputEventReferenceParserRuleCall_2_0()); | ||
1113 | } | ||
1114 | lv_output_3_0=ruleEventReference | ||
1115 | { | ||
1116 | if ($current==null) { | ||
1117 | $current = createModelElementForParent(grammarAccess.getAssignmentRule()); | ||
1118 | } | ||
1119 | set( | ||
1120 | $current, | ||
1121 | "output", | ||
1122 | lv_output_3_0, | ||
1123 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.EventReference"); | ||
1124 | afterParserOrEnumRuleCall(); | ||
1125 | } | ||
1126 | ) | ||
1127 | ) | ||
1128 | ) | ||
1129 | ; | ||
1130 | |||
1131 | // Entry rule entryRuleEventReference | ||
1132 | entryRuleEventReference returns [EObject current=null]: | ||
1133 | { newCompositeNode(grammarAccess.getEventReferenceRule()); } | ||
1134 | iv_ruleEventReference=ruleEventReference | ||
1135 | { $current=$iv_ruleEventReference.current; } | ||
1136 | EOF; | ||
1137 | |||
1138 | // Rule EventReference | ||
1139 | ruleEventReference returns [EObject current=null] | ||
1140 | @init { | ||
1141 | enterRule(); | ||
1142 | } | ||
1143 | @after { | ||
1144 | leaveRule(); | ||
1145 | }: | ||
1146 | ( | ||
1147 | ( | ||
1148 | ( | ||
1149 | { | ||
1150 | if ($current==null) { | ||
1151 | $current = createModelElement(grammarAccess.getEventReferenceRule()); | ||
1152 | } | ||
1153 | } | ||
1154 | otherlv_0=RULE_ID | ||
1155 | { | ||
1156 | newLeafNode(otherlv_0, grammarAccess.getEventReferenceAccess().getComponentVariableCrossReference_0_0()); | ||
1157 | } | ||
1158 | ) | ||
1159 | ) | ||
1160 | otherlv_1='.' | ||
1161 | { | ||
1162 | newLeafNode(otherlv_1, grammarAccess.getEventReferenceAccess().getFullStopKeyword_1()); | ||
1163 | } | ||
1164 | ( | ||
1165 | ( | ||
1166 | { | ||
1167 | if ($current==null) { | ||
1168 | $current = createModelElement(grammarAccess.getEventReferenceRule()); | ||
1169 | } | ||
1170 | } | ||
1171 | otherlv_2=RULE_ID | ||
1172 | { | ||
1173 | newLeafNode(otherlv_2, grammarAccess.getEventReferenceAccess().getEventEventDeclarationCrossReference_2_0()); | ||
1174 | } | ||
1175 | ) | ||
1176 | ) | ||
1177 | ) | ||
1178 | ; | ||
1179 | |||
1180 | // Entry rule entryRuleComponentInstance | ||
1181 | entryRuleComponentInstance returns [EObject current=null]: | ||
1182 | { newCompositeNode(grammarAccess.getComponentInstanceRule()); } | ||
1183 | iv_ruleComponentInstance=ruleComponentInstance | ||
1184 | { $current=$iv_ruleComponentInstance.current; } | ||
1185 | EOF; | ||
1186 | |||
1187 | // Rule ComponentInstance | ||
1188 | ruleComponentInstance returns [EObject current=null] | ||
1189 | @init { | ||
1190 | enterRule(); | ||
1191 | } | ||
1192 | @after { | ||
1193 | leaveRule(); | ||
1194 | }: | ||
1195 | ( | ||
1196 | otherlv_0='=>' | ||
1197 | { | ||
1198 | newLeafNode(otherlv_0, grammarAccess.getComponentInstanceAccess().getEqualsSignGreaterThanSignKeyword_0()); | ||
1199 | } | ||
1200 | ( | ||
1201 | ( | ||
1202 | { | ||
1203 | if ($current==null) { | ||
1204 | $current = createModelElement(grammarAccess.getComponentInstanceRule()); | ||
1205 | } | ||
1206 | } | ||
1207 | { | ||
1208 | newCompositeNode(grammarAccess.getComponentInstanceAccess().getComponentTypeComponentDefinitionCrossReference_1_0()); | ||
1209 | } | ||
1210 | ruleQualifiedName | ||
1211 | { | ||
1212 | afterParserOrEnumRuleCall(); | ||
1213 | } | ||
1214 | ) | ||
1215 | ) | ||
1216 | ( | ||
1217 | ( | ||
1218 | lv_name_2_0=RULE_ID | ||
1219 | { | ||
1220 | newLeafNode(lv_name_2_0, grammarAccess.getComponentInstanceAccess().getNameIDTerminalRuleCall_2_0()); | ||
1221 | } | ||
1222 | { | ||
1223 | if ($current==null) { | ||
1224 | $current = createModelElement(grammarAccess.getComponentInstanceRule()); | ||
1225 | } | ||
1226 | setWithLastConsumed( | ||
1227 | $current, | ||
1228 | "name", | ||
1229 | lv_name_2_0, | ||
1230 | "org.eclipse.xtext.common.Terminals.ID"); | ||
1231 | } | ||
1232 | ) | ||
1233 | )? | ||
1234 | ) | ||
1235 | ; | ||
1236 | |||
1237 | // Entry rule entryRuleQualifiedName | ||
1238 | entryRuleQualifiedName returns [String current=null]: | ||
1239 | { newCompositeNode(grammarAccess.getQualifiedNameRule()); } | ||
1240 | iv_ruleQualifiedName=ruleQualifiedName | ||
1241 | { $current=$iv_ruleQualifiedName.current.getText(); } | ||
1242 | EOF; | ||
1243 | |||
1244 | // Rule QualifiedName | ||
1245 | ruleQualifiedName returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] | ||
1246 | @init { | ||
1247 | enterRule(); | ||
1248 | } | ||
1249 | @after { | ||
1250 | leaveRule(); | ||
1251 | }: | ||
1252 | ( | ||
1253 | this_ID_0=RULE_ID | ||
1254 | { | ||
1255 | $current.merge(this_ID_0); | ||
1256 | } | ||
1257 | { | ||
1258 | newLeafNode(this_ID_0, grammarAccess.getQualifiedNameAccess().getIDTerminalRuleCall_0()); | ||
1259 | } | ||
1260 | ( | ||
1261 | kw='.' | ||
1262 | { | ||
1263 | $current.merge(kw); | ||
1264 | newLeafNode(kw, grammarAccess.getQualifiedNameAccess().getFullStopKeyword_1_0()); | ||
1265 | } | ||
1266 | this_ID_2=RULE_ID | ||
1267 | { | ||
1268 | $current.merge(this_ID_2); | ||
1269 | } | ||
1270 | { | ||
1271 | newLeafNode(this_ID_2, grammarAccess.getQualifiedNameAccess().getIDTerminalRuleCall_1_1()); | ||
1272 | } | ||
1273 | )* | ||
1274 | ) | ||
1275 | ; | ||
1276 | |||
1277 | // Entry rule entryRuleQualifiedNameWithWildcard | ||
1278 | entryRuleQualifiedNameWithWildcard returns [String current=null]: | ||
1279 | { newCompositeNode(grammarAccess.getQualifiedNameWithWildcardRule()); } | ||
1280 | iv_ruleQualifiedNameWithWildcard=ruleQualifiedNameWithWildcard | ||
1281 | { $current=$iv_ruleQualifiedNameWithWildcard.current.getText(); } | ||
1282 | EOF; | ||
1283 | |||
1284 | // Rule QualifiedNameWithWildcard | ||
1285 | ruleQualifiedNameWithWildcard returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] | ||
1286 | @init { | ||
1287 | enterRule(); | ||
1288 | } | ||
1289 | @after { | ||
1290 | leaveRule(); | ||
1291 | }: | ||
1292 | ( | ||
1293 | { | ||
1294 | newCompositeNode(grammarAccess.getQualifiedNameWithWildcardAccess().getQualifiedNameParserRuleCall_0()); | ||
1295 | } | ||
1296 | this_QualifiedName_0=ruleQualifiedName | ||
1297 | { | ||
1298 | $current.merge(this_QualifiedName_0); | ||
1299 | } | ||
1300 | { | ||
1301 | afterParserOrEnumRuleCall(); | ||
1302 | } | ||
1303 | ( | ||
1304 | kw='.' | ||
1305 | { | ||
1306 | $current.merge(kw); | ||
1307 | newLeafNode(kw, grammarAccess.getQualifiedNameWithWildcardAccess().getFullStopKeyword_1_0()); | ||
1308 | } | ||
1309 | kw='*' | ||
1310 | { | ||
1311 | $current.merge(kw); | ||
1312 | newLeafNode(kw, grammarAccess.getQualifiedNameWithWildcardAccess().getAsteriskKeyword_1_1()); | ||
1313 | } | ||
1314 | )? | ||
1315 | ) | ||
1316 | ; | ||
1317 | |||
1318 | RULE_DOULBE : ('0'..'9')+ ('.' ('0'..'9')+|('.' ('0'..'9')+)? ('e'|'E') ('+'|'-')? ('0'..'9')+); | ||
1319 | |||
1320 | RULE_ID : '^'? ('a'..'z'|'A'..'Z'|'_') ('a'..'z'|'A'..'Z'|'_'|'0'..'9')*; | ||
1321 | |||
1322 | RULE_INT : ('0'..'9')+; | ||
1323 | |||
1324 | RULE_STRING : ('"' ('\\' .|~(('\\'|'"')))* '"'|'\'' ('\\' .|~(('\\'|'\'')))* '\''); | ||
1325 | |||
1326 | RULE_ML_COMMENT : '/*' ( options {greedy=false;} : . )*'*/'; | ||
1327 | |||
1328 | RULE_SL_COMMENT : '//' ~(('\n'|'\r'))* ('\r'? '\n')?; | ||
1329 | |||
1330 | RULE_WS : (' '|'\t'|'\r'|'\n')+; | ||
1331 | |||
1332 | RULE_ANY_OTHER : .; | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/parser/antlr/internal/InternalCftLanguage.tokens b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/parser/antlr/internal/InternalCftLanguage.tokens new file mode 100644 index 00000000..1c8b296f --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/parser/antlr/internal/InternalCftLanguage.tokens | |||
@@ -0,0 +1,60 @@ | |||
1 | '('=28 | ||
2 | ')'=30 | ||
3 | '*'=37 | ||
4 | '+='=33 | ||
5 | ','=29 | ||
6 | '.'=35 | ||
7 | ':='=34 | ||
8 | ';'=13 | ||
9 | '='=22 | ||
10 | '=>'=36 | ||
11 | '[]'=20 | ||
12 | 'and'=23 | ||
13 | 'as'=32 | ||
14 | 'cft'=15 | ||
15 | 'import'=14 | ||
16 | 'in'=17 | ||
17 | 'lambda'=21 | ||
18 | 'lookup'=31 | ||
19 | 'mapping'=27 | ||
20 | 'or'=24 | ||
21 | 'out'=18 | ||
22 | 'package'=12 | ||
23 | 'toplevel'=26 | ||
24 | 'transformation'=25 | ||
25 | '{'=16 | ||
26 | '}'=19 | ||
27 | RULE_ANY_OTHER=11 | ||
28 | RULE_DOULBE=5 | ||
29 | RULE_ID=4 | ||
30 | RULE_INT=6 | ||
31 | RULE_ML_COMMENT=8 | ||
32 | RULE_SL_COMMENT=9 | ||
33 | RULE_STRING=7 | ||
34 | RULE_WS=10 | ||
35 | T__12=12 | ||
36 | T__13=13 | ||
37 | T__14=14 | ||
38 | T__15=15 | ||
39 | T__16=16 | ||
40 | T__17=17 | ||
41 | T__18=18 | ||
42 | T__19=19 | ||
43 | T__20=20 | ||
44 | T__21=21 | ||
45 | T__22=22 | ||
46 | T__23=23 | ||
47 | T__24=24 | ||
48 | T__25=25 | ||
49 | T__26=26 | ||
50 | T__27=27 | ||
51 | T__28=28 | ||
52 | T__29=29 | ||
53 | T__30=30 | ||
54 | T__31=31 | ||
55 | T__32=32 | ||
56 | T__33=33 | ||
57 | T__34=34 | ||
58 | T__35=35 | ||
59 | T__36=36 | ||
60 | T__37=37 | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/parser/antlr/internal/InternalCftLanguageLexer.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/parser/antlr/internal/InternalCftLanguageLexer.java new file mode 100644 index 00000000..22a96234 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/parser/antlr/internal/InternalCftLanguageLexer.java | |||
@@ -0,0 +1,1876 @@ | |||
1 | package hu.bme.mit.inf.dslreasoner.faulttree.components.parser.antlr.internal; | ||
2 | |||
3 | // Hack: Use our own Lexer superclass by means of import. | ||
4 | // Currently there is no other way to specify the superclass for the lexer. | ||
5 | import org.eclipse.xtext.parser.antlr.Lexer; | ||
6 | |||
7 | |||
8 | import org.antlr.runtime.*; | ||
9 | import java.util.Stack; | ||
10 | import java.util.List; | ||
11 | import java.util.ArrayList; | ||
12 | |||
13 | @SuppressWarnings("all") | ||
14 | public class InternalCftLanguageLexer extends Lexer { | ||
15 | public static final int RULE_STRING=7; | ||
16 | public static final int RULE_SL_COMMENT=9; | ||
17 | public static final int T__19=19; | ||
18 | public static final int T__15=15; | ||
19 | public static final int T__37=37; | ||
20 | public static final int T__16=16; | ||
21 | public static final int T__17=17; | ||
22 | public static final int T__18=18; | ||
23 | public static final int T__33=33; | ||
24 | public static final int T__12=12; | ||
25 | public static final int T__34=34; | ||
26 | public static final int T__13=13; | ||
27 | public static final int T__35=35; | ||
28 | public static final int T__14=14; | ||
29 | public static final int T__36=36; | ||
30 | public static final int EOF=-1; | ||
31 | public static final int T__30=30; | ||
32 | public static final int T__31=31; | ||
33 | public static final int T__32=32; | ||
34 | public static final int RULE_ID=4; | ||
35 | public static final int RULE_WS=10; | ||
36 | public static final int RULE_DOULBE=5; | ||
37 | public static final int RULE_ANY_OTHER=11; | ||
38 | public static final int T__26=26; | ||
39 | public static final int T__27=27; | ||
40 | public static final int T__28=28; | ||
41 | public static final int RULE_INT=6; | ||
42 | public static final int T__29=29; | ||
43 | public static final int T__22=22; | ||
44 | public static final int RULE_ML_COMMENT=8; | ||
45 | public static final int T__23=23; | ||
46 | public static final int T__24=24; | ||
47 | public static final int T__25=25; | ||
48 | public static final int T__20=20; | ||
49 | public static final int T__21=21; | ||
50 | |||
51 | // delegates | ||
52 | // delegators | ||
53 | |||
54 | public InternalCftLanguageLexer() {;} | ||
55 | public InternalCftLanguageLexer(CharStream input) { | ||
56 | this(input, new RecognizerSharedState()); | ||
57 | } | ||
58 | public InternalCftLanguageLexer(CharStream input, RecognizerSharedState state) { | ||
59 | super(input,state); | ||
60 | |||
61 | } | ||
62 | public String getGrammarFileName() { return "InternalCftLanguage.g"; } | ||
63 | |||
64 | // $ANTLR start "T__12" | ||
65 | public final void mT__12() throws RecognitionException { | ||
66 | try { | ||
67 | int _type = T__12; | ||
68 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
69 | // InternalCftLanguage.g:11:7: ( 'package' ) | ||
70 | // InternalCftLanguage.g:11:9: 'package' | ||
71 | { | ||
72 | match("package"); | ||
73 | |||
74 | |||
75 | } | ||
76 | |||
77 | state.type = _type; | ||
78 | state.channel = _channel; | ||
79 | } | ||
80 | finally { | ||
81 | } | ||
82 | } | ||
83 | // $ANTLR end "T__12" | ||
84 | |||
85 | // $ANTLR start "T__13" | ||
86 | public final void mT__13() throws RecognitionException { | ||
87 | try { | ||
88 | int _type = T__13; | ||
89 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
90 | // InternalCftLanguage.g:12:7: ( ';' ) | ||
91 | // InternalCftLanguage.g:12:9: ';' | ||
92 | { | ||
93 | match(';'); | ||
94 | |||
95 | } | ||
96 | |||
97 | state.type = _type; | ||
98 | state.channel = _channel; | ||
99 | } | ||
100 | finally { | ||
101 | } | ||
102 | } | ||
103 | // $ANTLR end "T__13" | ||
104 | |||
105 | // $ANTLR start "T__14" | ||
106 | public final void mT__14() throws RecognitionException { | ||
107 | try { | ||
108 | int _type = T__14; | ||
109 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
110 | // InternalCftLanguage.g:13:7: ( 'import' ) | ||
111 | // InternalCftLanguage.g:13:9: 'import' | ||
112 | { | ||
113 | match("import"); | ||
114 | |||
115 | |||
116 | } | ||
117 | |||
118 | state.type = _type; | ||
119 | state.channel = _channel; | ||
120 | } | ||
121 | finally { | ||
122 | } | ||
123 | } | ||
124 | // $ANTLR end "T__14" | ||
125 | |||
126 | // $ANTLR start "T__15" | ||
127 | public final void mT__15() throws RecognitionException { | ||
128 | try { | ||
129 | int _type = T__15; | ||
130 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
131 | // InternalCftLanguage.g:14:7: ( 'cft' ) | ||
132 | // InternalCftLanguage.g:14:9: 'cft' | ||
133 | { | ||
134 | match("cft"); | ||
135 | |||
136 | |||
137 | } | ||
138 | |||
139 | state.type = _type; | ||
140 | state.channel = _channel; | ||
141 | } | ||
142 | finally { | ||
143 | } | ||
144 | } | ||
145 | // $ANTLR end "T__15" | ||
146 | |||
147 | // $ANTLR start "T__16" | ||
148 | public final void mT__16() throws RecognitionException { | ||
149 | try { | ||
150 | int _type = T__16; | ||
151 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
152 | // InternalCftLanguage.g:15:7: ( '{' ) | ||
153 | // InternalCftLanguage.g:15:9: '{' | ||
154 | { | ||
155 | match('{'); | ||
156 | |||
157 | } | ||
158 | |||
159 | state.type = _type; | ||
160 | state.channel = _channel; | ||
161 | } | ||
162 | finally { | ||
163 | } | ||
164 | } | ||
165 | // $ANTLR end "T__16" | ||
166 | |||
167 | // $ANTLR start "T__17" | ||
168 | public final void mT__17() throws RecognitionException { | ||
169 | try { | ||
170 | int _type = T__17; | ||
171 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
172 | // InternalCftLanguage.g:16:7: ( 'in' ) | ||
173 | // InternalCftLanguage.g:16:9: 'in' | ||
174 | { | ||
175 | match("in"); | ||
176 | |||
177 | |||
178 | } | ||
179 | |||
180 | state.type = _type; | ||
181 | state.channel = _channel; | ||
182 | } | ||
183 | finally { | ||
184 | } | ||
185 | } | ||
186 | // $ANTLR end "T__17" | ||
187 | |||
188 | // $ANTLR start "T__18" | ||
189 | public final void mT__18() throws RecognitionException { | ||
190 | try { | ||
191 | int _type = T__18; | ||
192 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
193 | // InternalCftLanguage.g:17:7: ( 'out' ) | ||
194 | // InternalCftLanguage.g:17:9: 'out' | ||
195 | { | ||
196 | match("out"); | ||
197 | |||
198 | |||
199 | } | ||
200 | |||
201 | state.type = _type; | ||
202 | state.channel = _channel; | ||
203 | } | ||
204 | finally { | ||
205 | } | ||
206 | } | ||
207 | // $ANTLR end "T__18" | ||
208 | |||
209 | // $ANTLR start "T__19" | ||
210 | public final void mT__19() throws RecognitionException { | ||
211 | try { | ||
212 | int _type = T__19; | ||
213 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
214 | // InternalCftLanguage.g:18:7: ( '}' ) | ||
215 | // InternalCftLanguage.g:18:9: '}' | ||
216 | { | ||
217 | match('}'); | ||
218 | |||
219 | } | ||
220 | |||
221 | state.type = _type; | ||
222 | state.channel = _channel; | ||
223 | } | ||
224 | finally { | ||
225 | } | ||
226 | } | ||
227 | // $ANTLR end "T__19" | ||
228 | |||
229 | // $ANTLR start "T__20" | ||
230 | public final void mT__20() throws RecognitionException { | ||
231 | try { | ||
232 | int _type = T__20; | ||
233 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
234 | // InternalCftLanguage.g:19:7: ( '[]' ) | ||
235 | // InternalCftLanguage.g:19:9: '[]' | ||
236 | { | ||
237 | match("[]"); | ||
238 | |||
239 | |||
240 | } | ||
241 | |||
242 | state.type = _type; | ||
243 | state.channel = _channel; | ||
244 | } | ||
245 | finally { | ||
246 | } | ||
247 | } | ||
248 | // $ANTLR end "T__20" | ||
249 | |||
250 | // $ANTLR start "T__21" | ||
251 | public final void mT__21() throws RecognitionException { | ||
252 | try { | ||
253 | int _type = T__21; | ||
254 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
255 | // InternalCftLanguage.g:20:7: ( 'lambda' ) | ||
256 | // InternalCftLanguage.g:20:9: 'lambda' | ||
257 | { | ||
258 | match("lambda"); | ||
259 | |||
260 | |||
261 | } | ||
262 | |||
263 | state.type = _type; | ||
264 | state.channel = _channel; | ||
265 | } | ||
266 | finally { | ||
267 | } | ||
268 | } | ||
269 | // $ANTLR end "T__21" | ||
270 | |||
271 | // $ANTLR start "T__22" | ||
272 | public final void mT__22() throws RecognitionException { | ||
273 | try { | ||
274 | int _type = T__22; | ||
275 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
276 | // InternalCftLanguage.g:21:7: ( '=' ) | ||
277 | // InternalCftLanguage.g:21:9: '=' | ||
278 | { | ||
279 | match('='); | ||
280 | |||
281 | } | ||
282 | |||
283 | state.type = _type; | ||
284 | state.channel = _channel; | ||
285 | } | ||
286 | finally { | ||
287 | } | ||
288 | } | ||
289 | // $ANTLR end "T__22" | ||
290 | |||
291 | // $ANTLR start "T__23" | ||
292 | public final void mT__23() throws RecognitionException { | ||
293 | try { | ||
294 | int _type = T__23; | ||
295 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
296 | // InternalCftLanguage.g:22:7: ( 'and' ) | ||
297 | // InternalCftLanguage.g:22:9: 'and' | ||
298 | { | ||
299 | match("and"); | ||
300 | |||
301 | |||
302 | } | ||
303 | |||
304 | state.type = _type; | ||
305 | state.channel = _channel; | ||
306 | } | ||
307 | finally { | ||
308 | } | ||
309 | } | ||
310 | // $ANTLR end "T__23" | ||
311 | |||
312 | // $ANTLR start "T__24" | ||
313 | public final void mT__24() throws RecognitionException { | ||
314 | try { | ||
315 | int _type = T__24; | ||
316 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
317 | // InternalCftLanguage.g:23:7: ( 'or' ) | ||
318 | // InternalCftLanguage.g:23:9: 'or' | ||
319 | { | ||
320 | match("or"); | ||
321 | |||
322 | |||
323 | } | ||
324 | |||
325 | state.type = _type; | ||
326 | state.channel = _channel; | ||
327 | } | ||
328 | finally { | ||
329 | } | ||
330 | } | ||
331 | // $ANTLR end "T__24" | ||
332 | |||
333 | // $ANTLR start "T__25" | ||
334 | public final void mT__25() throws RecognitionException { | ||
335 | try { | ||
336 | int _type = T__25; | ||
337 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
338 | // InternalCftLanguage.g:24:7: ( 'transformation' ) | ||
339 | // InternalCftLanguage.g:24:9: 'transformation' | ||
340 | { | ||
341 | match("transformation"); | ||
342 | |||
343 | |||
344 | } | ||
345 | |||
346 | state.type = _type; | ||
347 | state.channel = _channel; | ||
348 | } | ||
349 | finally { | ||
350 | } | ||
351 | } | ||
352 | // $ANTLR end "T__25" | ||
353 | |||
354 | // $ANTLR start "T__26" | ||
355 | public final void mT__26() throws RecognitionException { | ||
356 | try { | ||
357 | int _type = T__26; | ||
358 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
359 | // InternalCftLanguage.g:25:7: ( 'toplevel' ) | ||
360 | // InternalCftLanguage.g:25:9: 'toplevel' | ||
361 | { | ||
362 | match("toplevel"); | ||
363 | |||
364 | |||
365 | } | ||
366 | |||
367 | state.type = _type; | ||
368 | state.channel = _channel; | ||
369 | } | ||
370 | finally { | ||
371 | } | ||
372 | } | ||
373 | // $ANTLR end "T__26" | ||
374 | |||
375 | // $ANTLR start "T__27" | ||
376 | public final void mT__27() throws RecognitionException { | ||
377 | try { | ||
378 | int _type = T__27; | ||
379 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
380 | // InternalCftLanguage.g:26:7: ( 'mapping' ) | ||
381 | // InternalCftLanguage.g:26:9: 'mapping' | ||
382 | { | ||
383 | match("mapping"); | ||
384 | |||
385 | |||
386 | } | ||
387 | |||
388 | state.type = _type; | ||
389 | state.channel = _channel; | ||
390 | } | ||
391 | finally { | ||
392 | } | ||
393 | } | ||
394 | // $ANTLR end "T__27" | ||
395 | |||
396 | // $ANTLR start "T__28" | ||
397 | public final void mT__28() throws RecognitionException { | ||
398 | try { | ||
399 | int _type = T__28; | ||
400 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
401 | // InternalCftLanguage.g:27:7: ( '(' ) | ||
402 | // InternalCftLanguage.g:27:9: '(' | ||
403 | { | ||
404 | match('('); | ||
405 | |||
406 | } | ||
407 | |||
408 | state.type = _type; | ||
409 | state.channel = _channel; | ||
410 | } | ||
411 | finally { | ||
412 | } | ||
413 | } | ||
414 | // $ANTLR end "T__28" | ||
415 | |||
416 | // $ANTLR start "T__29" | ||
417 | public final void mT__29() throws RecognitionException { | ||
418 | try { | ||
419 | int _type = T__29; | ||
420 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
421 | // InternalCftLanguage.g:28:7: ( ',' ) | ||
422 | // InternalCftLanguage.g:28:9: ',' | ||
423 | { | ||
424 | match(','); | ||
425 | |||
426 | } | ||
427 | |||
428 | state.type = _type; | ||
429 | state.channel = _channel; | ||
430 | } | ||
431 | finally { | ||
432 | } | ||
433 | } | ||
434 | // $ANTLR end "T__29" | ||
435 | |||
436 | // $ANTLR start "T__30" | ||
437 | public final void mT__30() throws RecognitionException { | ||
438 | try { | ||
439 | int _type = T__30; | ||
440 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
441 | // InternalCftLanguage.g:29:7: ( ')' ) | ||
442 | // InternalCftLanguage.g:29:9: ')' | ||
443 | { | ||
444 | match(')'); | ||
445 | |||
446 | } | ||
447 | |||
448 | state.type = _type; | ||
449 | state.channel = _channel; | ||
450 | } | ||
451 | finally { | ||
452 | } | ||
453 | } | ||
454 | // $ANTLR end "T__30" | ||
455 | |||
456 | // $ANTLR start "T__31" | ||
457 | public final void mT__31() throws RecognitionException { | ||
458 | try { | ||
459 | int _type = T__31; | ||
460 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
461 | // InternalCftLanguage.g:30:7: ( 'lookup' ) | ||
462 | // InternalCftLanguage.g:30:9: 'lookup' | ||
463 | { | ||
464 | match("lookup"); | ||
465 | |||
466 | |||
467 | } | ||
468 | |||
469 | state.type = _type; | ||
470 | state.channel = _channel; | ||
471 | } | ||
472 | finally { | ||
473 | } | ||
474 | } | ||
475 | // $ANTLR end "T__31" | ||
476 | |||
477 | // $ANTLR start "T__32" | ||
478 | public final void mT__32() throws RecognitionException { | ||
479 | try { | ||
480 | int _type = T__32; | ||
481 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
482 | // InternalCftLanguage.g:31:7: ( 'as' ) | ||
483 | // InternalCftLanguage.g:31:9: 'as' | ||
484 | { | ||
485 | match("as"); | ||
486 | |||
487 | |||
488 | } | ||
489 | |||
490 | state.type = _type; | ||
491 | state.channel = _channel; | ||
492 | } | ||
493 | finally { | ||
494 | } | ||
495 | } | ||
496 | // $ANTLR end "T__32" | ||
497 | |||
498 | // $ANTLR start "T__33" | ||
499 | public final void mT__33() throws RecognitionException { | ||
500 | try { | ||
501 | int _type = T__33; | ||
502 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
503 | // InternalCftLanguage.g:32:7: ( '+=' ) | ||
504 | // InternalCftLanguage.g:32:9: '+=' | ||
505 | { | ||
506 | match("+="); | ||
507 | |||
508 | |||
509 | } | ||
510 | |||
511 | state.type = _type; | ||
512 | state.channel = _channel; | ||
513 | } | ||
514 | finally { | ||
515 | } | ||
516 | } | ||
517 | // $ANTLR end "T__33" | ||
518 | |||
519 | // $ANTLR start "T__34" | ||
520 | public final void mT__34() throws RecognitionException { | ||
521 | try { | ||
522 | int _type = T__34; | ||
523 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
524 | // InternalCftLanguage.g:33:7: ( ':=' ) | ||
525 | // InternalCftLanguage.g:33:9: ':=' | ||
526 | { | ||
527 | match(":="); | ||
528 | |||
529 | |||
530 | } | ||
531 | |||
532 | state.type = _type; | ||
533 | state.channel = _channel; | ||
534 | } | ||
535 | finally { | ||
536 | } | ||
537 | } | ||
538 | // $ANTLR end "T__34" | ||
539 | |||
540 | // $ANTLR start "T__35" | ||
541 | public final void mT__35() throws RecognitionException { | ||
542 | try { | ||
543 | int _type = T__35; | ||
544 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
545 | // InternalCftLanguage.g:34:7: ( '.' ) | ||
546 | // InternalCftLanguage.g:34:9: '.' | ||
547 | { | ||
548 | match('.'); | ||
549 | |||
550 | } | ||
551 | |||
552 | state.type = _type; | ||
553 | state.channel = _channel; | ||
554 | } | ||
555 | finally { | ||
556 | } | ||
557 | } | ||
558 | // $ANTLR end "T__35" | ||
559 | |||
560 | // $ANTLR start "T__36" | ||
561 | public final void mT__36() throws RecognitionException { | ||
562 | try { | ||
563 | int _type = T__36; | ||
564 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
565 | // InternalCftLanguage.g:35:7: ( '=>' ) | ||
566 | // InternalCftLanguage.g:35:9: '=>' | ||
567 | { | ||
568 | match("=>"); | ||
569 | |||
570 | |||
571 | } | ||
572 | |||
573 | state.type = _type; | ||
574 | state.channel = _channel; | ||
575 | } | ||
576 | finally { | ||
577 | } | ||
578 | } | ||
579 | // $ANTLR end "T__36" | ||
580 | |||
581 | // $ANTLR start "T__37" | ||
582 | public final void mT__37() throws RecognitionException { | ||
583 | try { | ||
584 | int _type = T__37; | ||
585 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
586 | // InternalCftLanguage.g:36:7: ( '*' ) | ||
587 | // InternalCftLanguage.g:36:9: '*' | ||
588 | { | ||
589 | match('*'); | ||
590 | |||
591 | } | ||
592 | |||
593 | state.type = _type; | ||
594 | state.channel = _channel; | ||
595 | } | ||
596 | finally { | ||
597 | } | ||
598 | } | ||
599 | // $ANTLR end "T__37" | ||
600 | |||
601 | // $ANTLR start "RULE_DOULBE" | ||
602 | public final void mRULE_DOULBE() throws RecognitionException { | ||
603 | try { | ||
604 | int _type = RULE_DOULBE; | ||
605 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
606 | // InternalCftLanguage.g:1318:13: ( ( '0' .. '9' )+ ( '.' ( '0' .. '9' )+ | ( '.' ( '0' .. '9' )+ )? ( 'e' | 'E' ) ( '+' | '-' )? ( '0' .. '9' )+ ) ) | ||
607 | // InternalCftLanguage.g:1318:15: ( '0' .. '9' )+ ( '.' ( '0' .. '9' )+ | ( '.' ( '0' .. '9' )+ )? ( 'e' | 'E' ) ( '+' | '-' )? ( '0' .. '9' )+ ) | ||
608 | { | ||
609 | // InternalCftLanguage.g:1318:15: ( '0' .. '9' )+ | ||
610 | int cnt1=0; | ||
611 | loop1: | ||
612 | do { | ||
613 | int alt1=2; | ||
614 | int LA1_0 = input.LA(1); | ||
615 | |||
616 | if ( ((LA1_0>='0' && LA1_0<='9')) ) { | ||
617 | alt1=1; | ||
618 | } | ||
619 | |||
620 | |||
621 | switch (alt1) { | ||
622 | case 1 : | ||
623 | // InternalCftLanguage.g:1318:16: '0' .. '9' | ||
624 | { | ||
625 | matchRange('0','9'); | ||
626 | |||
627 | } | ||
628 | break; | ||
629 | |||
630 | default : | ||
631 | if ( cnt1 >= 1 ) break loop1; | ||
632 | EarlyExitException eee = | ||
633 | new EarlyExitException(1, input); | ||
634 | throw eee; | ||
635 | } | ||
636 | cnt1++; | ||
637 | } while (true); | ||
638 | |||
639 | // InternalCftLanguage.g:1318:27: ( '.' ( '0' .. '9' )+ | ( '.' ( '0' .. '9' )+ )? ( 'e' | 'E' ) ( '+' | '-' )? ( '0' .. '9' )+ ) | ||
640 | int alt7=2; | ||
641 | alt7 = dfa7.predict(input); | ||
642 | switch (alt7) { | ||
643 | case 1 : | ||
644 | // InternalCftLanguage.g:1318:28: '.' ( '0' .. '9' )+ | ||
645 | { | ||
646 | match('.'); | ||
647 | // InternalCftLanguage.g:1318:32: ( '0' .. '9' )+ | ||
648 | int cnt2=0; | ||
649 | loop2: | ||
650 | do { | ||
651 | int alt2=2; | ||
652 | int LA2_0 = input.LA(1); | ||
653 | |||
654 | if ( ((LA2_0>='0' && LA2_0<='9')) ) { | ||
655 | alt2=1; | ||
656 | } | ||
657 | |||
658 | |||
659 | switch (alt2) { | ||
660 | case 1 : | ||
661 | // InternalCftLanguage.g:1318:33: '0' .. '9' | ||
662 | { | ||
663 | matchRange('0','9'); | ||
664 | |||
665 | } | ||
666 | break; | ||
667 | |||
668 | default : | ||
669 | if ( cnt2 >= 1 ) break loop2; | ||
670 | EarlyExitException eee = | ||
671 | new EarlyExitException(2, input); | ||
672 | throw eee; | ||
673 | } | ||
674 | cnt2++; | ||
675 | } while (true); | ||
676 | |||
677 | |||
678 | } | ||
679 | break; | ||
680 | case 2 : | ||
681 | // InternalCftLanguage.g:1318:44: ( '.' ( '0' .. '9' )+ )? ( 'e' | 'E' ) ( '+' | '-' )? ( '0' .. '9' )+ | ||
682 | { | ||
683 | // InternalCftLanguage.g:1318:44: ( '.' ( '0' .. '9' )+ )? | ||
684 | int alt4=2; | ||
685 | int LA4_0 = input.LA(1); | ||
686 | |||
687 | if ( (LA4_0=='.') ) { | ||
688 | alt4=1; | ||
689 | } | ||
690 | switch (alt4) { | ||
691 | case 1 : | ||
692 | // InternalCftLanguage.g:1318:45: '.' ( '0' .. '9' )+ | ||
693 | { | ||
694 | match('.'); | ||
695 | // InternalCftLanguage.g:1318:49: ( '0' .. '9' )+ | ||
696 | int cnt3=0; | ||
697 | loop3: | ||
698 | do { | ||
699 | int alt3=2; | ||
700 | int LA3_0 = input.LA(1); | ||
701 | |||
702 | if ( ((LA3_0>='0' && LA3_0<='9')) ) { | ||
703 | alt3=1; | ||
704 | } | ||
705 | |||
706 | |||
707 | switch (alt3) { | ||
708 | case 1 : | ||
709 | // InternalCftLanguage.g:1318:50: '0' .. '9' | ||
710 | { | ||
711 | matchRange('0','9'); | ||
712 | |||
713 | } | ||
714 | break; | ||
715 | |||
716 | default : | ||
717 | if ( cnt3 >= 1 ) break loop3; | ||
718 | EarlyExitException eee = | ||
719 | new EarlyExitException(3, input); | ||
720 | throw eee; | ||
721 | } | ||
722 | cnt3++; | ||
723 | } while (true); | ||
724 | |||
725 | |||
726 | } | ||
727 | break; | ||
728 | |||
729 | } | ||
730 | |||
731 | if ( input.LA(1)=='E'||input.LA(1)=='e' ) { | ||
732 | input.consume(); | ||
733 | |||
734 | } | ||
735 | else { | ||
736 | MismatchedSetException mse = new MismatchedSetException(null,input); | ||
737 | recover(mse); | ||
738 | throw mse;} | ||
739 | |||
740 | // InternalCftLanguage.g:1318:73: ( '+' | '-' )? | ||
741 | int alt5=2; | ||
742 | int LA5_0 = input.LA(1); | ||
743 | |||
744 | if ( (LA5_0=='+'||LA5_0=='-') ) { | ||
745 | alt5=1; | ||
746 | } | ||
747 | switch (alt5) { | ||
748 | case 1 : | ||
749 | // InternalCftLanguage.g: | ||
750 | { | ||
751 | if ( input.LA(1)=='+'||input.LA(1)=='-' ) { | ||
752 | input.consume(); | ||
753 | |||
754 | } | ||
755 | else { | ||
756 | MismatchedSetException mse = new MismatchedSetException(null,input); | ||
757 | recover(mse); | ||
758 | throw mse;} | ||
759 | |||
760 | |||
761 | } | ||
762 | break; | ||
763 | |||
764 | } | ||
765 | |||
766 | // InternalCftLanguage.g:1318:84: ( '0' .. '9' )+ | ||
767 | int cnt6=0; | ||
768 | loop6: | ||
769 | do { | ||
770 | int alt6=2; | ||
771 | int LA6_0 = input.LA(1); | ||
772 | |||
773 | if ( ((LA6_0>='0' && LA6_0<='9')) ) { | ||
774 | alt6=1; | ||
775 | } | ||
776 | |||
777 | |||
778 | switch (alt6) { | ||
779 | case 1 : | ||
780 | // InternalCftLanguage.g:1318:85: '0' .. '9' | ||
781 | { | ||
782 | matchRange('0','9'); | ||
783 | |||
784 | } | ||
785 | break; | ||
786 | |||
787 | default : | ||
788 | if ( cnt6 >= 1 ) break loop6; | ||
789 | EarlyExitException eee = | ||
790 | new EarlyExitException(6, input); | ||
791 | throw eee; | ||
792 | } | ||
793 | cnt6++; | ||
794 | } while (true); | ||
795 | |||
796 | |||
797 | } | ||
798 | break; | ||
799 | |||
800 | } | ||
801 | |||
802 | |||
803 | } | ||
804 | |||
805 | state.type = _type; | ||
806 | state.channel = _channel; | ||
807 | } | ||
808 | finally { | ||
809 | } | ||
810 | } | ||
811 | // $ANTLR end "RULE_DOULBE" | ||
812 | |||
813 | // $ANTLR start "RULE_ID" | ||
814 | public final void mRULE_ID() throws RecognitionException { | ||
815 | try { | ||
816 | int _type = RULE_ID; | ||
817 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
818 | // InternalCftLanguage.g:1320:9: ( ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* ) | ||
819 | // InternalCftLanguage.g:1320:11: ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* | ||
820 | { | ||
821 | // InternalCftLanguage.g:1320:11: ( '^' )? | ||
822 | int alt8=2; | ||
823 | int LA8_0 = input.LA(1); | ||
824 | |||
825 | if ( (LA8_0=='^') ) { | ||
826 | alt8=1; | ||
827 | } | ||
828 | switch (alt8) { | ||
829 | case 1 : | ||
830 | // InternalCftLanguage.g:1320:11: '^' | ||
831 | { | ||
832 | match('^'); | ||
833 | |||
834 | } | ||
835 | break; | ||
836 | |||
837 | } | ||
838 | |||
839 | if ( (input.LA(1)>='A' && input.LA(1)<='Z')||input.LA(1)=='_'||(input.LA(1)>='a' && input.LA(1)<='z') ) { | ||
840 | input.consume(); | ||
841 | |||
842 | } | ||
843 | else { | ||
844 | MismatchedSetException mse = new MismatchedSetException(null,input); | ||
845 | recover(mse); | ||
846 | throw mse;} | ||
847 | |||
848 | // InternalCftLanguage.g:1320:40: ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* | ||
849 | loop9: | ||
850 | do { | ||
851 | int alt9=2; | ||
852 | int LA9_0 = input.LA(1); | ||
853 | |||
854 | if ( ((LA9_0>='0' && LA9_0<='9')||(LA9_0>='A' && LA9_0<='Z')||LA9_0=='_'||(LA9_0>='a' && LA9_0<='z')) ) { | ||
855 | alt9=1; | ||
856 | } | ||
857 | |||
858 | |||
859 | switch (alt9) { | ||
860 | case 1 : | ||
861 | // InternalCftLanguage.g: | ||
862 | { | ||
863 | if ( (input.LA(1)>='0' && input.LA(1)<='9')||(input.LA(1)>='A' && input.LA(1)<='Z')||input.LA(1)=='_'||(input.LA(1)>='a' && input.LA(1)<='z') ) { | ||
864 | input.consume(); | ||
865 | |||
866 | } | ||
867 | else { | ||
868 | MismatchedSetException mse = new MismatchedSetException(null,input); | ||
869 | recover(mse); | ||
870 | throw mse;} | ||
871 | |||
872 | |||
873 | } | ||
874 | break; | ||
875 | |||
876 | default : | ||
877 | break loop9; | ||
878 | } | ||
879 | } while (true); | ||
880 | |||
881 | |||
882 | } | ||
883 | |||
884 | state.type = _type; | ||
885 | state.channel = _channel; | ||
886 | } | ||
887 | finally { | ||
888 | } | ||
889 | } | ||
890 | // $ANTLR end "RULE_ID" | ||
891 | |||
892 | // $ANTLR start "RULE_INT" | ||
893 | public final void mRULE_INT() throws RecognitionException { | ||
894 | try { | ||
895 | int _type = RULE_INT; | ||
896 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
897 | // InternalCftLanguage.g:1322:10: ( ( '0' .. '9' )+ ) | ||
898 | // InternalCftLanguage.g:1322:12: ( '0' .. '9' )+ | ||
899 | { | ||
900 | // InternalCftLanguage.g:1322:12: ( '0' .. '9' )+ | ||
901 | int cnt10=0; | ||
902 | loop10: | ||
903 | do { | ||
904 | int alt10=2; | ||
905 | int LA10_0 = input.LA(1); | ||
906 | |||
907 | if ( ((LA10_0>='0' && LA10_0<='9')) ) { | ||
908 | alt10=1; | ||
909 | } | ||
910 | |||
911 | |||
912 | switch (alt10) { | ||
913 | case 1 : | ||
914 | // InternalCftLanguage.g:1322:13: '0' .. '9' | ||
915 | { | ||
916 | matchRange('0','9'); | ||
917 | |||
918 | } | ||
919 | break; | ||
920 | |||
921 | default : | ||
922 | if ( cnt10 >= 1 ) break loop10; | ||
923 | EarlyExitException eee = | ||
924 | new EarlyExitException(10, input); | ||
925 | throw eee; | ||
926 | } | ||
927 | cnt10++; | ||
928 | } while (true); | ||
929 | |||
930 | |||
931 | } | ||
932 | |||
933 | state.type = _type; | ||
934 | state.channel = _channel; | ||
935 | } | ||
936 | finally { | ||
937 | } | ||
938 | } | ||
939 | // $ANTLR end "RULE_INT" | ||
940 | |||
941 | // $ANTLR start "RULE_STRING" | ||
942 | public final void mRULE_STRING() throws RecognitionException { | ||
943 | try { | ||
944 | int _type = RULE_STRING; | ||
945 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
946 | // InternalCftLanguage.g:1324:13: ( ( '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* '\"' | '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' ) ) | ||
947 | // InternalCftLanguage.g:1324:15: ( '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* '\"' | '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' ) | ||
948 | { | ||
949 | // InternalCftLanguage.g:1324:15: ( '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* '\"' | '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' ) | ||
950 | int alt13=2; | ||
951 | int LA13_0 = input.LA(1); | ||
952 | |||
953 | if ( (LA13_0=='\"') ) { | ||
954 | alt13=1; | ||
955 | } | ||
956 | else if ( (LA13_0=='\'') ) { | ||
957 | alt13=2; | ||
958 | } | ||
959 | else { | ||
960 | NoViableAltException nvae = | ||
961 | new NoViableAltException("", 13, 0, input); | ||
962 | |||
963 | throw nvae; | ||
964 | } | ||
965 | switch (alt13) { | ||
966 | case 1 : | ||
967 | // InternalCftLanguage.g:1324:16: '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* '\"' | ||
968 | { | ||
969 | match('\"'); | ||
970 | // InternalCftLanguage.g:1324:20: ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* | ||
971 | loop11: | ||
972 | do { | ||
973 | int alt11=3; | ||
974 | int LA11_0 = input.LA(1); | ||
975 | |||
976 | if ( (LA11_0=='\\') ) { | ||
977 | alt11=1; | ||
978 | } | ||
979 | else if ( ((LA11_0>='\u0000' && LA11_0<='!')||(LA11_0>='#' && LA11_0<='[')||(LA11_0>=']' && LA11_0<='\uFFFF')) ) { | ||
980 | alt11=2; | ||
981 | } | ||
982 | |||
983 | |||
984 | switch (alt11) { | ||
985 | case 1 : | ||
986 | // InternalCftLanguage.g:1324:21: '\\\\' . | ||
987 | { | ||
988 | match('\\'); | ||
989 | matchAny(); | ||
990 | |||
991 | } | ||
992 | break; | ||
993 | case 2 : | ||
994 | // InternalCftLanguage.g:1324:28: ~ ( ( '\\\\' | '\"' ) ) | ||
995 | { | ||
996 | if ( (input.LA(1)>='\u0000' && input.LA(1)<='!')||(input.LA(1)>='#' && input.LA(1)<='[')||(input.LA(1)>=']' && input.LA(1)<='\uFFFF') ) { | ||
997 | input.consume(); | ||
998 | |||
999 | } | ||
1000 | else { | ||
1001 | MismatchedSetException mse = new MismatchedSetException(null,input); | ||
1002 | recover(mse); | ||
1003 | throw mse;} | ||
1004 | |||
1005 | |||
1006 | } | ||
1007 | break; | ||
1008 | |||
1009 | default : | ||
1010 | break loop11; | ||
1011 | } | ||
1012 | } while (true); | ||
1013 | |||
1014 | match('\"'); | ||
1015 | |||
1016 | } | ||
1017 | break; | ||
1018 | case 2 : | ||
1019 | // InternalCftLanguage.g:1324:48: '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' | ||
1020 | { | ||
1021 | match('\''); | ||
1022 | // InternalCftLanguage.g:1324:53: ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* | ||
1023 | loop12: | ||
1024 | do { | ||
1025 | int alt12=3; | ||
1026 | int LA12_0 = input.LA(1); | ||
1027 | |||
1028 | if ( (LA12_0=='\\') ) { | ||
1029 | alt12=1; | ||
1030 | } | ||
1031 | else if ( ((LA12_0>='\u0000' && LA12_0<='&')||(LA12_0>='(' && LA12_0<='[')||(LA12_0>=']' && LA12_0<='\uFFFF')) ) { | ||
1032 | alt12=2; | ||
1033 | } | ||
1034 | |||
1035 | |||
1036 | switch (alt12) { | ||
1037 | case 1 : | ||
1038 | // InternalCftLanguage.g:1324:54: '\\\\' . | ||
1039 | { | ||
1040 | match('\\'); | ||
1041 | matchAny(); | ||
1042 | |||
1043 | } | ||
1044 | break; | ||
1045 | case 2 : | ||
1046 | // InternalCftLanguage.g:1324:61: ~ ( ( '\\\\' | '\\'' ) ) | ||
1047 | { | ||
1048 | if ( (input.LA(1)>='\u0000' && input.LA(1)<='&')||(input.LA(1)>='(' && input.LA(1)<='[')||(input.LA(1)>=']' && input.LA(1)<='\uFFFF') ) { | ||
1049 | input.consume(); | ||
1050 | |||
1051 | } | ||
1052 | else { | ||
1053 | MismatchedSetException mse = new MismatchedSetException(null,input); | ||
1054 | recover(mse); | ||
1055 | throw mse;} | ||
1056 | |||
1057 | |||
1058 | } | ||
1059 | break; | ||
1060 | |||
1061 | default : | ||
1062 | break loop12; | ||
1063 | } | ||
1064 | } while (true); | ||
1065 | |||
1066 | match('\''); | ||
1067 | |||
1068 | } | ||
1069 | break; | ||
1070 | |||
1071 | } | ||
1072 | |||
1073 | |||
1074 | } | ||
1075 | |||
1076 | state.type = _type; | ||
1077 | state.channel = _channel; | ||
1078 | } | ||
1079 | finally { | ||
1080 | } | ||
1081 | } | ||
1082 | // $ANTLR end "RULE_STRING" | ||
1083 | |||
1084 | // $ANTLR start "RULE_ML_COMMENT" | ||
1085 | public final void mRULE_ML_COMMENT() throws RecognitionException { | ||
1086 | try { | ||
1087 | int _type = RULE_ML_COMMENT; | ||
1088 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
1089 | // InternalCftLanguage.g:1326:17: ( '/*' ( options {greedy=false; } : . )* '*/' ) | ||
1090 | // InternalCftLanguage.g:1326:19: '/*' ( options {greedy=false; } : . )* '*/' | ||
1091 | { | ||
1092 | match("/*"); | ||
1093 | |||
1094 | // InternalCftLanguage.g:1326:24: ( options {greedy=false; } : . )* | ||
1095 | loop14: | ||
1096 | do { | ||
1097 | int alt14=2; | ||
1098 | int LA14_0 = input.LA(1); | ||
1099 | |||
1100 | if ( (LA14_0=='*') ) { | ||
1101 | int LA14_1 = input.LA(2); | ||
1102 | |||
1103 | if ( (LA14_1=='/') ) { | ||
1104 | alt14=2; | ||
1105 | } | ||
1106 | else if ( ((LA14_1>='\u0000' && LA14_1<='.')||(LA14_1>='0' && LA14_1<='\uFFFF')) ) { | ||
1107 | alt14=1; | ||
1108 | } | ||
1109 | |||
1110 | |||
1111 | } | ||
1112 | else if ( ((LA14_0>='\u0000' && LA14_0<=')')||(LA14_0>='+' && LA14_0<='\uFFFF')) ) { | ||
1113 | alt14=1; | ||
1114 | } | ||
1115 | |||
1116 | |||
1117 | switch (alt14) { | ||
1118 | case 1 : | ||
1119 | // InternalCftLanguage.g:1326:52: . | ||
1120 | { | ||
1121 | matchAny(); | ||
1122 | |||
1123 | } | ||
1124 | break; | ||
1125 | |||
1126 | default : | ||
1127 | break loop14; | ||
1128 | } | ||
1129 | } while (true); | ||
1130 | |||
1131 | match("*/"); | ||
1132 | |||
1133 | |||
1134 | } | ||
1135 | |||
1136 | state.type = _type; | ||
1137 | state.channel = _channel; | ||
1138 | } | ||
1139 | finally { | ||
1140 | } | ||
1141 | } | ||
1142 | // $ANTLR end "RULE_ML_COMMENT" | ||
1143 | |||
1144 | // $ANTLR start "RULE_SL_COMMENT" | ||
1145 | public final void mRULE_SL_COMMENT() throws RecognitionException { | ||
1146 | try { | ||
1147 | int _type = RULE_SL_COMMENT; | ||
1148 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
1149 | // InternalCftLanguage.g:1328:17: ( '//' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? ) | ||
1150 | // InternalCftLanguage.g:1328:19: '//' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? | ||
1151 | { | ||
1152 | match("//"); | ||
1153 | |||
1154 | // InternalCftLanguage.g:1328:24: (~ ( ( '\\n' | '\\r' ) ) )* | ||
1155 | loop15: | ||
1156 | do { | ||
1157 | int alt15=2; | ||
1158 | int LA15_0 = input.LA(1); | ||
1159 | |||
1160 | if ( ((LA15_0>='\u0000' && LA15_0<='\t')||(LA15_0>='\u000B' && LA15_0<='\f')||(LA15_0>='\u000E' && LA15_0<='\uFFFF')) ) { | ||
1161 | alt15=1; | ||
1162 | } | ||
1163 | |||
1164 | |||
1165 | switch (alt15) { | ||
1166 | case 1 : | ||
1167 | // InternalCftLanguage.g:1328:24: ~ ( ( '\\n' | '\\r' ) ) | ||
1168 | { | ||
1169 | if ( (input.LA(1)>='\u0000' && input.LA(1)<='\t')||(input.LA(1)>='\u000B' && input.LA(1)<='\f')||(input.LA(1)>='\u000E' && input.LA(1)<='\uFFFF') ) { | ||
1170 | input.consume(); | ||
1171 | |||
1172 | } | ||
1173 | else { | ||
1174 | MismatchedSetException mse = new MismatchedSetException(null,input); | ||
1175 | recover(mse); | ||
1176 | throw mse;} | ||
1177 | |||
1178 | |||
1179 | } | ||
1180 | break; | ||
1181 | |||
1182 | default : | ||
1183 | break loop15; | ||
1184 | } | ||
1185 | } while (true); | ||
1186 | |||
1187 | // InternalCftLanguage.g:1328:40: ( ( '\\r' )? '\\n' )? | ||
1188 | int alt17=2; | ||
1189 | int LA17_0 = input.LA(1); | ||
1190 | |||
1191 | if ( (LA17_0=='\n'||LA17_0=='\r') ) { | ||
1192 | alt17=1; | ||
1193 | } | ||
1194 | switch (alt17) { | ||
1195 | case 1 : | ||
1196 | // InternalCftLanguage.g:1328:41: ( '\\r' )? '\\n' | ||
1197 | { | ||
1198 | // InternalCftLanguage.g:1328:41: ( '\\r' )? | ||
1199 | int alt16=2; | ||
1200 | int LA16_0 = input.LA(1); | ||
1201 | |||
1202 | if ( (LA16_0=='\r') ) { | ||
1203 | alt16=1; | ||
1204 | } | ||
1205 | switch (alt16) { | ||
1206 | case 1 : | ||
1207 | // InternalCftLanguage.g:1328:41: '\\r' | ||
1208 | { | ||
1209 | match('\r'); | ||
1210 | |||
1211 | } | ||
1212 | break; | ||
1213 | |||
1214 | } | ||
1215 | |||
1216 | match('\n'); | ||
1217 | |||
1218 | } | ||
1219 | break; | ||
1220 | |||
1221 | } | ||
1222 | |||
1223 | |||
1224 | } | ||
1225 | |||
1226 | state.type = _type; | ||
1227 | state.channel = _channel; | ||
1228 | } | ||
1229 | finally { | ||
1230 | } | ||
1231 | } | ||
1232 | // $ANTLR end "RULE_SL_COMMENT" | ||
1233 | |||
1234 | // $ANTLR start "RULE_WS" | ||
1235 | public final void mRULE_WS() throws RecognitionException { | ||
1236 | try { | ||
1237 | int _type = RULE_WS; | ||
1238 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
1239 | // InternalCftLanguage.g:1330:9: ( ( ' ' | '\\t' | '\\r' | '\\n' )+ ) | ||
1240 | // InternalCftLanguage.g:1330:11: ( ' ' | '\\t' | '\\r' | '\\n' )+ | ||
1241 | { | ||
1242 | // InternalCftLanguage.g:1330:11: ( ' ' | '\\t' | '\\r' | '\\n' )+ | ||
1243 | int cnt18=0; | ||
1244 | loop18: | ||
1245 | do { | ||
1246 | int alt18=2; | ||
1247 | int LA18_0 = input.LA(1); | ||
1248 | |||
1249 | if ( ((LA18_0>='\t' && LA18_0<='\n')||LA18_0=='\r'||LA18_0==' ') ) { | ||
1250 | alt18=1; | ||
1251 | } | ||
1252 | |||
1253 | |||
1254 | switch (alt18) { | ||
1255 | case 1 : | ||
1256 | // InternalCftLanguage.g: | ||
1257 | { | ||
1258 | if ( (input.LA(1)>='\t' && input.LA(1)<='\n')||input.LA(1)=='\r'||input.LA(1)==' ' ) { | ||
1259 | input.consume(); | ||
1260 | |||
1261 | } | ||
1262 | else { | ||
1263 | MismatchedSetException mse = new MismatchedSetException(null,input); | ||
1264 | recover(mse); | ||
1265 | throw mse;} | ||
1266 | |||
1267 | |||
1268 | } | ||
1269 | break; | ||
1270 | |||
1271 | default : | ||
1272 | if ( cnt18 >= 1 ) break loop18; | ||
1273 | EarlyExitException eee = | ||
1274 | new EarlyExitException(18, input); | ||
1275 | throw eee; | ||
1276 | } | ||
1277 | cnt18++; | ||
1278 | } while (true); | ||
1279 | |||
1280 | |||
1281 | } | ||
1282 | |||
1283 | state.type = _type; | ||
1284 | state.channel = _channel; | ||
1285 | } | ||
1286 | finally { | ||
1287 | } | ||
1288 | } | ||
1289 | // $ANTLR end "RULE_WS" | ||
1290 | |||
1291 | // $ANTLR start "RULE_ANY_OTHER" | ||
1292 | public final void mRULE_ANY_OTHER() throws RecognitionException { | ||
1293 | try { | ||
1294 | int _type = RULE_ANY_OTHER; | ||
1295 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
1296 | // InternalCftLanguage.g:1332:16: ( . ) | ||
1297 | // InternalCftLanguage.g:1332:18: . | ||
1298 | { | ||
1299 | matchAny(); | ||
1300 | |||
1301 | } | ||
1302 | |||
1303 | state.type = _type; | ||
1304 | state.channel = _channel; | ||
1305 | } | ||
1306 | finally { | ||
1307 | } | ||
1308 | } | ||
1309 | // $ANTLR end "RULE_ANY_OTHER" | ||
1310 | |||
1311 | public void mTokens() throws RecognitionException { | ||
1312 | // InternalCftLanguage.g:1:8: ( T__12 | T__13 | T__14 | T__15 | T__16 | T__17 | T__18 | T__19 | T__20 | T__21 | T__22 | T__23 | T__24 | T__25 | T__26 | T__27 | T__28 | T__29 | T__30 | T__31 | T__32 | T__33 | T__34 | T__35 | T__36 | T__37 | RULE_DOULBE | RULE_ID | RULE_INT | RULE_STRING | RULE_ML_COMMENT | RULE_SL_COMMENT | RULE_WS | RULE_ANY_OTHER ) | ||
1313 | int alt19=34; | ||
1314 | alt19 = dfa19.predict(input); | ||
1315 | switch (alt19) { | ||
1316 | case 1 : | ||
1317 | // InternalCftLanguage.g:1:10: T__12 | ||
1318 | { | ||
1319 | mT__12(); | ||
1320 | |||
1321 | } | ||
1322 | break; | ||
1323 | case 2 : | ||
1324 | // InternalCftLanguage.g:1:16: T__13 | ||
1325 | { | ||
1326 | mT__13(); | ||
1327 | |||
1328 | } | ||
1329 | break; | ||
1330 | case 3 : | ||
1331 | // InternalCftLanguage.g:1:22: T__14 | ||
1332 | { | ||
1333 | mT__14(); | ||
1334 | |||
1335 | } | ||
1336 | break; | ||
1337 | case 4 : | ||
1338 | // InternalCftLanguage.g:1:28: T__15 | ||
1339 | { | ||
1340 | mT__15(); | ||
1341 | |||
1342 | } | ||
1343 | break; | ||
1344 | case 5 : | ||
1345 | // InternalCftLanguage.g:1:34: T__16 | ||
1346 | { | ||
1347 | mT__16(); | ||
1348 | |||
1349 | } | ||
1350 | break; | ||
1351 | case 6 : | ||
1352 | // InternalCftLanguage.g:1:40: T__17 | ||
1353 | { | ||
1354 | mT__17(); | ||
1355 | |||
1356 | } | ||
1357 | break; | ||
1358 | case 7 : | ||
1359 | // InternalCftLanguage.g:1:46: T__18 | ||
1360 | { | ||
1361 | mT__18(); | ||
1362 | |||
1363 | } | ||
1364 | break; | ||
1365 | case 8 : | ||
1366 | // InternalCftLanguage.g:1:52: T__19 | ||
1367 | { | ||
1368 | mT__19(); | ||
1369 | |||
1370 | } | ||
1371 | break; | ||
1372 | case 9 : | ||
1373 | // InternalCftLanguage.g:1:58: T__20 | ||
1374 | { | ||
1375 | mT__20(); | ||
1376 | |||
1377 | } | ||
1378 | break; | ||
1379 | case 10 : | ||
1380 | // InternalCftLanguage.g:1:64: T__21 | ||
1381 | { | ||
1382 | mT__21(); | ||
1383 | |||
1384 | } | ||
1385 | break; | ||
1386 | case 11 : | ||
1387 | // InternalCftLanguage.g:1:70: T__22 | ||
1388 | { | ||
1389 | mT__22(); | ||
1390 | |||
1391 | } | ||
1392 | break; | ||
1393 | case 12 : | ||
1394 | // InternalCftLanguage.g:1:76: T__23 | ||
1395 | { | ||
1396 | mT__23(); | ||
1397 | |||
1398 | } | ||
1399 | break; | ||
1400 | case 13 : | ||
1401 | // InternalCftLanguage.g:1:82: T__24 | ||
1402 | { | ||
1403 | mT__24(); | ||
1404 | |||
1405 | } | ||
1406 | break; | ||
1407 | case 14 : | ||
1408 | // InternalCftLanguage.g:1:88: T__25 | ||
1409 | { | ||
1410 | mT__25(); | ||
1411 | |||
1412 | } | ||
1413 | break; | ||
1414 | case 15 : | ||
1415 | // InternalCftLanguage.g:1:94: T__26 | ||
1416 | { | ||
1417 | mT__26(); | ||
1418 | |||
1419 | } | ||
1420 | break; | ||
1421 | case 16 : | ||
1422 | // InternalCftLanguage.g:1:100: T__27 | ||
1423 | { | ||
1424 | mT__27(); | ||
1425 | |||
1426 | } | ||
1427 | break; | ||
1428 | case 17 : | ||
1429 | // InternalCftLanguage.g:1:106: T__28 | ||
1430 | { | ||
1431 | mT__28(); | ||
1432 | |||
1433 | } | ||
1434 | break; | ||
1435 | case 18 : | ||
1436 | // InternalCftLanguage.g:1:112: T__29 | ||
1437 | { | ||
1438 | mT__29(); | ||
1439 | |||
1440 | } | ||
1441 | break; | ||
1442 | case 19 : | ||
1443 | // InternalCftLanguage.g:1:118: T__30 | ||
1444 | { | ||
1445 | mT__30(); | ||
1446 | |||
1447 | } | ||
1448 | break; | ||
1449 | case 20 : | ||
1450 | // InternalCftLanguage.g:1:124: T__31 | ||
1451 | { | ||
1452 | mT__31(); | ||
1453 | |||
1454 | } | ||
1455 | break; | ||
1456 | case 21 : | ||
1457 | // InternalCftLanguage.g:1:130: T__32 | ||
1458 | { | ||
1459 | mT__32(); | ||
1460 | |||
1461 | } | ||
1462 | break; | ||
1463 | case 22 : | ||
1464 | // InternalCftLanguage.g:1:136: T__33 | ||
1465 | { | ||
1466 | mT__33(); | ||
1467 | |||
1468 | } | ||
1469 | break; | ||
1470 | case 23 : | ||
1471 | // InternalCftLanguage.g:1:142: T__34 | ||
1472 | { | ||
1473 | mT__34(); | ||
1474 | |||
1475 | } | ||
1476 | break; | ||
1477 | case 24 : | ||
1478 | // InternalCftLanguage.g:1:148: T__35 | ||
1479 | { | ||
1480 | mT__35(); | ||
1481 | |||
1482 | } | ||
1483 | break; | ||
1484 | case 25 : | ||
1485 | // InternalCftLanguage.g:1:154: T__36 | ||
1486 | { | ||
1487 | mT__36(); | ||
1488 | |||
1489 | } | ||
1490 | break; | ||
1491 | case 26 : | ||
1492 | // InternalCftLanguage.g:1:160: T__37 | ||
1493 | { | ||
1494 | mT__37(); | ||
1495 | |||
1496 | } | ||
1497 | break; | ||
1498 | case 27 : | ||
1499 | // InternalCftLanguage.g:1:166: RULE_DOULBE | ||
1500 | { | ||
1501 | mRULE_DOULBE(); | ||
1502 | |||
1503 | } | ||
1504 | break; | ||
1505 | case 28 : | ||
1506 | // InternalCftLanguage.g:1:178: RULE_ID | ||
1507 | { | ||
1508 | mRULE_ID(); | ||
1509 | |||
1510 | } | ||
1511 | break; | ||
1512 | case 29 : | ||
1513 | // InternalCftLanguage.g:1:186: RULE_INT | ||
1514 | { | ||
1515 | mRULE_INT(); | ||
1516 | |||
1517 | } | ||
1518 | break; | ||
1519 | case 30 : | ||
1520 | // InternalCftLanguage.g:1:195: RULE_STRING | ||
1521 | { | ||
1522 | mRULE_STRING(); | ||
1523 | |||
1524 | } | ||
1525 | break; | ||
1526 | case 31 : | ||
1527 | // InternalCftLanguage.g:1:207: RULE_ML_COMMENT | ||
1528 | { | ||
1529 | mRULE_ML_COMMENT(); | ||
1530 | |||
1531 | } | ||
1532 | break; | ||
1533 | case 32 : | ||
1534 | // InternalCftLanguage.g:1:223: RULE_SL_COMMENT | ||
1535 | { | ||
1536 | mRULE_SL_COMMENT(); | ||
1537 | |||
1538 | } | ||
1539 | break; | ||
1540 | case 33 : | ||
1541 | // InternalCftLanguage.g:1:239: RULE_WS | ||
1542 | { | ||
1543 | mRULE_WS(); | ||
1544 | |||
1545 | } | ||
1546 | break; | ||
1547 | case 34 : | ||
1548 | // InternalCftLanguage.g:1:247: RULE_ANY_OTHER | ||
1549 | { | ||
1550 | mRULE_ANY_OTHER(); | ||
1551 | |||
1552 | } | ||
1553 | break; | ||
1554 | |||
1555 | } | ||
1556 | |||
1557 | } | ||
1558 | |||
1559 | |||
1560 | protected DFA7 dfa7 = new DFA7(this); | ||
1561 | protected DFA19 dfa19 = new DFA19(this); | ||
1562 | static final String DFA7_eotS = | ||
1563 | "\3\uffff\1\4\1\uffff"; | ||
1564 | static final String DFA7_eofS = | ||
1565 | "\5\uffff"; | ||
1566 | static final String DFA7_minS = | ||
1567 | "\1\56\1\60\1\uffff\1\60\1\uffff"; | ||
1568 | static final String DFA7_maxS = | ||
1569 | "\1\145\1\71\1\uffff\1\145\1\uffff"; | ||
1570 | static final String DFA7_acceptS = | ||
1571 | "\2\uffff\1\2\1\uffff\1\1"; | ||
1572 | static final String DFA7_specialS = | ||
1573 | "\5\uffff}>"; | ||
1574 | static final String[] DFA7_transitionS = { | ||
1575 | "\1\1\26\uffff\1\2\37\uffff\1\2", | ||
1576 | "\12\3", | ||
1577 | "", | ||
1578 | "\12\3\13\uffff\1\2\37\uffff\1\2", | ||
1579 | "" | ||
1580 | }; | ||
1581 | |||
1582 | static final short[] DFA7_eot = DFA.unpackEncodedString(DFA7_eotS); | ||
1583 | static final short[] DFA7_eof = DFA.unpackEncodedString(DFA7_eofS); | ||
1584 | static final char[] DFA7_min = DFA.unpackEncodedStringToUnsignedChars(DFA7_minS); | ||
1585 | static final char[] DFA7_max = DFA.unpackEncodedStringToUnsignedChars(DFA7_maxS); | ||
1586 | static final short[] DFA7_accept = DFA.unpackEncodedString(DFA7_acceptS); | ||
1587 | static final short[] DFA7_special = DFA.unpackEncodedString(DFA7_specialS); | ||
1588 | static final short[][] DFA7_transition; | ||
1589 | |||
1590 | static { | ||
1591 | int numStates = DFA7_transitionS.length; | ||
1592 | DFA7_transition = new short[numStates][]; | ||
1593 | for (int i=0; i<numStates; i++) { | ||
1594 | DFA7_transition[i] = DFA.unpackEncodedString(DFA7_transitionS[i]); | ||
1595 | } | ||
1596 | } | ||
1597 | |||
1598 | class DFA7 extends DFA { | ||
1599 | |||
1600 | public DFA7(BaseRecognizer recognizer) { | ||
1601 | this.recognizer = recognizer; | ||
1602 | this.decisionNumber = 7; | ||
1603 | this.eot = DFA7_eot; | ||
1604 | this.eof = DFA7_eof; | ||
1605 | this.min = DFA7_min; | ||
1606 | this.max = DFA7_max; | ||
1607 | this.accept = DFA7_accept; | ||
1608 | this.special = DFA7_special; | ||
1609 | this.transition = DFA7_transition; | ||
1610 | } | ||
1611 | public String getDescription() { | ||
1612 | return "1318:27: ( '.' ( '0' .. '9' )+ | ( '.' ( '0' .. '9' )+ )? ( 'e' | 'E' ) ( '+' | '-' )? ( '0' .. '9' )+ )"; | ||
1613 | } | ||
1614 | } | ||
1615 | static final String DFA19_eotS = | ||
1616 | "\1\uffff\1\36\1\uffff\2\36\1\uffff\1\36\1\uffff\1\34\1\36\1\53\3\36\3\uffff\2\34\2\uffff\1\72\1\34\1\uffff\3\34\2\uffff\1\36\2\uffff\1\36\1\101\1\36\1\uffff\1\36\1\104\2\uffff\2\36\2\uffff\1\36\1\110\3\36\10\uffff\1\72\5\uffff\2\36\1\uffff\1\116\1\117\1\uffff\2\36\1\122\1\uffff\5\36\2\uffff\2\36\1\uffff\13\36\1\145\1\146\1\147\3\36\1\153\3\uffff\2\36\1\156\1\uffff\1\36\1\160\1\uffff\1\36\1\uffff\4\36\1\166\1\uffff"; | ||
1617 | static final String DFA19_eofS = | ||
1618 | "\167\uffff"; | ||
1619 | static final String DFA19_minS = | ||
1620 | "\1\0\1\141\1\uffff\1\155\1\146\1\uffff\1\162\1\uffff\1\135\1\141\1\76\1\156\1\157\1\141\3\uffff\2\75\2\uffff\1\56\1\101\1\uffff\2\0\1\52\2\uffff\1\143\2\uffff\1\160\1\60\1\164\1\uffff\1\164\1\60\2\uffff\1\155\1\157\2\uffff\1\144\1\60\1\141\2\160\10\uffff\1\56\5\uffff\1\153\1\157\1\uffff\2\60\1\uffff\1\142\1\153\1\60\1\uffff\1\156\1\154\1\160\1\141\1\162\2\uffff\1\144\1\165\1\uffff\1\163\1\145\1\151\1\147\1\164\1\141\1\160\1\146\1\166\1\156\1\145\3\60\1\157\1\145\1\147\1\60\3\uffff\1\162\1\154\1\60\1\uffff\1\155\1\60\1\uffff\1\141\1\uffff\1\164\1\151\1\157\1\156\1\60\1\uffff"; | ||
1621 | static final String DFA19_maxS = | ||
1622 | "\1\uffff\1\141\1\uffff\1\156\1\146\1\uffff\1\165\1\uffff\1\135\1\157\1\76\1\163\1\162\1\141\3\uffff\2\75\2\uffff\1\145\1\172\1\uffff\2\uffff\1\57\2\uffff\1\143\2\uffff\1\160\1\172\1\164\1\uffff\1\164\1\172\2\uffff\1\155\1\157\2\uffff\1\144\1\172\1\141\2\160\10\uffff\1\145\5\uffff\1\153\1\157\1\uffff\2\172\1\uffff\1\142\1\153\1\172\1\uffff\1\156\1\154\1\160\1\141\1\162\2\uffff\1\144\1\165\1\uffff\1\163\1\145\1\151\1\147\1\164\1\141\1\160\1\146\1\166\1\156\1\145\3\172\1\157\1\145\1\147\1\172\3\uffff\1\162\1\154\1\172\1\uffff\1\155\1\172\1\uffff\1\141\1\uffff\1\164\1\151\1\157\1\156\1\172\1\uffff"; | ||
1623 | static final String DFA19_acceptS = | ||
1624 | "\2\uffff\1\2\2\uffff\1\5\1\uffff\1\10\6\uffff\1\21\1\22\1\23\2\uffff\1\30\1\32\2\uffff\1\34\3\uffff\1\41\1\42\1\uffff\1\34\1\2\3\uffff\1\5\2\uffff\1\10\1\11\2\uffff\1\31\1\13\5\uffff\1\21\1\22\1\23\1\26\1\27\1\30\1\32\1\33\1\uffff\1\35\1\36\1\37\1\40\1\41\2\uffff\1\6\2\uffff\1\15\3\uffff\1\25\5\uffff\1\4\1\7\2\uffff\1\14\22\uffff\1\3\1\12\1\24\3\uffff\1\1\2\uffff\1\20\1\uffff\1\17\5\uffff\1\16"; | ||
1625 | static final String DFA19_specialS = | ||
1626 | "\1\0\27\uffff\1\2\1\1\135\uffff}>"; | ||
1627 | static final String[] DFA19_transitionS = { | ||
1628 | "\11\34\2\33\2\34\1\33\22\34\1\33\1\34\1\30\4\34\1\31\1\16\1\20\1\24\1\21\1\17\1\34\1\23\1\32\12\25\1\22\1\2\1\34\1\12\3\34\32\27\1\10\2\34\1\26\1\27\1\34\1\13\1\27\1\4\5\27\1\3\2\27\1\11\1\15\1\27\1\6\1\1\3\27\1\14\6\27\1\5\1\34\1\7\uff82\34", | ||
1629 | "\1\35", | ||
1630 | "", | ||
1631 | "\1\40\1\41", | ||
1632 | "\1\42", | ||
1633 | "", | ||
1634 | "\1\45\2\uffff\1\44", | ||
1635 | "", | ||
1636 | "\1\47", | ||
1637 | "\1\50\15\uffff\1\51", | ||
1638 | "\1\52", | ||
1639 | "\1\54\4\uffff\1\55", | ||
1640 | "\1\57\2\uffff\1\56", | ||
1641 | "\1\60", | ||
1642 | "", | ||
1643 | "", | ||
1644 | "", | ||
1645 | "\1\64", | ||
1646 | "\1\65", | ||
1647 | "", | ||
1648 | "", | ||
1649 | "\1\70\1\uffff\12\71\13\uffff\1\70\37\uffff\1\70", | ||
1650 | "\32\36\4\uffff\1\36\1\uffff\32\36", | ||
1651 | "", | ||
1652 | "\0\73", | ||
1653 | "\0\73", | ||
1654 | "\1\74\4\uffff\1\75", | ||
1655 | "", | ||
1656 | "", | ||
1657 | "\1\77", | ||
1658 | "", | ||
1659 | "", | ||
1660 | "\1\100", | ||
1661 | "\12\36\7\uffff\32\36\4\uffff\1\36\1\uffff\32\36", | ||
1662 | "\1\102", | ||
1663 | "", | ||
1664 | "\1\103", | ||
1665 | "\12\36\7\uffff\32\36\4\uffff\1\36\1\uffff\32\36", | ||
1666 | "", | ||
1667 | "", | ||
1668 | "\1\105", | ||
1669 | "\1\106", | ||
1670 | "", | ||
1671 | "", | ||
1672 | "\1\107", | ||
1673 | "\12\36\7\uffff\32\36\4\uffff\1\36\1\uffff\32\36", | ||
1674 | "\1\111", | ||
1675 | "\1\112", | ||
1676 | "\1\113", | ||
1677 | "", | ||
1678 | "", | ||
1679 | "", | ||
1680 | "", | ||
1681 | "", | ||
1682 | "", | ||
1683 | "", | ||
1684 | "", | ||
1685 | "\1\70\1\uffff\12\71\13\uffff\1\70\37\uffff\1\70", | ||
1686 | "", | ||
1687 | "", | ||
1688 | "", | ||
1689 | "", | ||
1690 | "", | ||
1691 | "\1\114", | ||
1692 | "\1\115", | ||
1693 | "", | ||
1694 | "\12\36\7\uffff\32\36\4\uffff\1\36\1\uffff\32\36", | ||
1695 | "\12\36\7\uffff\32\36\4\uffff\1\36\1\uffff\32\36", | ||
1696 | "", | ||
1697 | "\1\120", | ||
1698 | "\1\121", | ||
1699 | "\12\36\7\uffff\32\36\4\uffff\1\36\1\uffff\32\36", | ||
1700 | "", | ||
1701 | "\1\123", | ||
1702 | "\1\124", | ||
1703 | "\1\125", | ||
1704 | "\1\126", | ||
1705 | "\1\127", | ||
1706 | "", | ||
1707 | "", | ||
1708 | "\1\130", | ||
1709 | "\1\131", | ||
1710 | "", | ||
1711 | "\1\132", | ||
1712 | "\1\133", | ||
1713 | "\1\134", | ||
1714 | "\1\135", | ||
1715 | "\1\136", | ||
1716 | "\1\137", | ||
1717 | "\1\140", | ||
1718 | "\1\141", | ||
1719 | "\1\142", | ||
1720 | "\1\143", | ||
1721 | "\1\144", | ||
1722 | "\12\36\7\uffff\32\36\4\uffff\1\36\1\uffff\32\36", | ||
1723 | "\12\36\7\uffff\32\36\4\uffff\1\36\1\uffff\32\36", | ||
1724 | "\12\36\7\uffff\32\36\4\uffff\1\36\1\uffff\32\36", | ||
1725 | "\1\150", | ||
1726 | "\1\151", | ||
1727 | "\1\152", | ||
1728 | "\12\36\7\uffff\32\36\4\uffff\1\36\1\uffff\32\36", | ||
1729 | "", | ||
1730 | "", | ||
1731 | "", | ||
1732 | "\1\154", | ||
1733 | "\1\155", | ||
1734 | "\12\36\7\uffff\32\36\4\uffff\1\36\1\uffff\32\36", | ||
1735 | "", | ||
1736 | "\1\157", | ||
1737 | "\12\36\7\uffff\32\36\4\uffff\1\36\1\uffff\32\36", | ||
1738 | "", | ||
1739 | "\1\161", | ||
1740 | "", | ||
1741 | "\1\162", | ||
1742 | "\1\163", | ||
1743 | "\1\164", | ||
1744 | "\1\165", | ||
1745 | "\12\36\7\uffff\32\36\4\uffff\1\36\1\uffff\32\36", | ||
1746 | "" | ||
1747 | }; | ||
1748 | |||
1749 | static final short[] DFA19_eot = DFA.unpackEncodedString(DFA19_eotS); | ||
1750 | static final short[] DFA19_eof = DFA.unpackEncodedString(DFA19_eofS); | ||
1751 | static final char[] DFA19_min = DFA.unpackEncodedStringToUnsignedChars(DFA19_minS); | ||
1752 | static final char[] DFA19_max = DFA.unpackEncodedStringToUnsignedChars(DFA19_maxS); | ||
1753 | static final short[] DFA19_accept = DFA.unpackEncodedString(DFA19_acceptS); | ||
1754 | static final short[] DFA19_special = DFA.unpackEncodedString(DFA19_specialS); | ||
1755 | static final short[][] DFA19_transition; | ||
1756 | |||
1757 | static { | ||
1758 | int numStates = DFA19_transitionS.length; | ||
1759 | DFA19_transition = new short[numStates][]; | ||
1760 | for (int i=0; i<numStates; i++) { | ||
1761 | DFA19_transition[i] = DFA.unpackEncodedString(DFA19_transitionS[i]); | ||
1762 | } | ||
1763 | } | ||
1764 | |||
1765 | class DFA19 extends DFA { | ||
1766 | |||
1767 | public DFA19(BaseRecognizer recognizer) { | ||
1768 | this.recognizer = recognizer; | ||
1769 | this.decisionNumber = 19; | ||
1770 | this.eot = DFA19_eot; | ||
1771 | this.eof = DFA19_eof; | ||
1772 | this.min = DFA19_min; | ||
1773 | this.max = DFA19_max; | ||
1774 | this.accept = DFA19_accept; | ||
1775 | this.special = DFA19_special; | ||
1776 | this.transition = DFA19_transition; | ||
1777 | } | ||
1778 | public String getDescription() { | ||
1779 | return "1:1: Tokens : ( T__12 | T__13 | T__14 | T__15 | T__16 | T__17 | T__18 | T__19 | T__20 | T__21 | T__22 | T__23 | T__24 | T__25 | T__26 | T__27 | T__28 | T__29 | T__30 | T__31 | T__32 | T__33 | T__34 | T__35 | T__36 | T__37 | RULE_DOULBE | RULE_ID | RULE_INT | RULE_STRING | RULE_ML_COMMENT | RULE_SL_COMMENT | RULE_WS | RULE_ANY_OTHER );"; | ||
1780 | } | ||
1781 | public int specialStateTransition(int s, IntStream _input) throws NoViableAltException { | ||
1782 | IntStream input = _input; | ||
1783 | int _s = s; | ||
1784 | switch ( s ) { | ||
1785 | case 0 : | ||
1786 | int LA19_0 = input.LA(1); | ||
1787 | |||
1788 | s = -1; | ||
1789 | if ( (LA19_0=='p') ) {s = 1;} | ||
1790 | |||
1791 | else if ( (LA19_0==';') ) {s = 2;} | ||
1792 | |||
1793 | else if ( (LA19_0=='i') ) {s = 3;} | ||
1794 | |||
1795 | else if ( (LA19_0=='c') ) {s = 4;} | ||
1796 | |||
1797 | else if ( (LA19_0=='{') ) {s = 5;} | ||
1798 | |||
1799 | else if ( (LA19_0=='o') ) {s = 6;} | ||
1800 | |||
1801 | else if ( (LA19_0=='}') ) {s = 7;} | ||
1802 | |||
1803 | else if ( (LA19_0=='[') ) {s = 8;} | ||
1804 | |||
1805 | else if ( (LA19_0=='l') ) {s = 9;} | ||
1806 | |||
1807 | else if ( (LA19_0=='=') ) {s = 10;} | ||
1808 | |||
1809 | else if ( (LA19_0=='a') ) {s = 11;} | ||
1810 | |||
1811 | else if ( (LA19_0=='t') ) {s = 12;} | ||
1812 | |||
1813 | else if ( (LA19_0=='m') ) {s = 13;} | ||
1814 | |||
1815 | else if ( (LA19_0=='(') ) {s = 14;} | ||
1816 | |||
1817 | else if ( (LA19_0==',') ) {s = 15;} | ||
1818 | |||
1819 | else if ( (LA19_0==')') ) {s = 16;} | ||
1820 | |||
1821 | else if ( (LA19_0=='+') ) {s = 17;} | ||
1822 | |||
1823 | else if ( (LA19_0==':') ) {s = 18;} | ||
1824 | |||
1825 | else if ( (LA19_0=='.') ) {s = 19;} | ||
1826 | |||
1827 | else if ( (LA19_0=='*') ) {s = 20;} | ||
1828 | |||
1829 | else if ( ((LA19_0>='0' && LA19_0<='9')) ) {s = 21;} | ||
1830 | |||
1831 | else if ( (LA19_0=='^') ) {s = 22;} | ||
1832 | |||
1833 | else if ( ((LA19_0>='A' && LA19_0<='Z')||LA19_0=='_'||LA19_0=='b'||(LA19_0>='d' && LA19_0<='h')||(LA19_0>='j' && LA19_0<='k')||LA19_0=='n'||(LA19_0>='q' && LA19_0<='s')||(LA19_0>='u' && LA19_0<='z')) ) {s = 23;} | ||
1834 | |||
1835 | else if ( (LA19_0=='\"') ) {s = 24;} | ||
1836 | |||
1837 | else if ( (LA19_0=='\'') ) {s = 25;} | ||
1838 | |||
1839 | else if ( (LA19_0=='/') ) {s = 26;} | ||
1840 | |||
1841 | else if ( ((LA19_0>='\t' && LA19_0<='\n')||LA19_0=='\r'||LA19_0==' ') ) {s = 27;} | ||
1842 | |||
1843 | else if ( ((LA19_0>='\u0000' && LA19_0<='\b')||(LA19_0>='\u000B' && LA19_0<='\f')||(LA19_0>='\u000E' && LA19_0<='\u001F')||LA19_0=='!'||(LA19_0>='#' && LA19_0<='&')||LA19_0=='-'||LA19_0=='<'||(LA19_0>='>' && LA19_0<='@')||(LA19_0>='\\' && LA19_0<=']')||LA19_0=='`'||LA19_0=='|'||(LA19_0>='~' && LA19_0<='\uFFFF')) ) {s = 28;} | ||
1844 | |||
1845 | if ( s>=0 ) return s; | ||
1846 | break; | ||
1847 | case 1 : | ||
1848 | int LA19_25 = input.LA(1); | ||
1849 | |||
1850 | s = -1; | ||
1851 | if ( ((LA19_25>='\u0000' && LA19_25<='\uFFFF')) ) {s = 59;} | ||
1852 | |||
1853 | else s = 28; | ||
1854 | |||
1855 | if ( s>=0 ) return s; | ||
1856 | break; | ||
1857 | case 2 : | ||
1858 | int LA19_24 = input.LA(1); | ||
1859 | |||
1860 | s = -1; | ||
1861 | if ( ((LA19_24>='\u0000' && LA19_24<='\uFFFF')) ) {s = 59;} | ||
1862 | |||
1863 | else s = 28; | ||
1864 | |||
1865 | if ( s>=0 ) return s; | ||
1866 | break; | ||
1867 | } | ||
1868 | NoViableAltException nvae = | ||
1869 | new NoViableAltException(getDescription(), 19, _s, input); | ||
1870 | error(nvae); | ||
1871 | throw nvae; | ||
1872 | } | ||
1873 | } | ||
1874 | |||
1875 | |||
1876 | } \ No newline at end of file | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/parser/antlr/internal/InternalCftLanguageParser.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/parser/antlr/internal/InternalCftLanguageParser.java new file mode 100644 index 00000000..29c15563 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/parser/antlr/internal/InternalCftLanguageParser.java | |||
@@ -0,0 +1,3449 @@ | |||
1 | package hu.bme.mit.inf.dslreasoner.faulttree.components.parser.antlr.internal; | ||
2 | |||
3 | import org.eclipse.xtext.*; | ||
4 | import org.eclipse.xtext.parser.*; | ||
5 | import org.eclipse.xtext.parser.impl.*; | ||
6 | import org.eclipse.emf.ecore.util.EcoreUtil; | ||
7 | import org.eclipse.emf.ecore.EObject; | ||
8 | import org.eclipse.xtext.parser.antlr.AbstractInternalAntlrParser; | ||
9 | import org.eclipse.xtext.parser.antlr.XtextTokenStream; | ||
10 | import org.eclipse.xtext.parser.antlr.XtextTokenStream.HiddenTokens; | ||
11 | import org.eclipse.xtext.parser.antlr.AntlrDatatypeRuleToken; | ||
12 | import hu.bme.mit.inf.dslreasoner.faulttree.components.services.CftLanguageGrammarAccess; | ||
13 | |||
14 | |||
15 | |||
16 | import org.antlr.runtime.*; | ||
17 | import java.util.Stack; | ||
18 | import java.util.List; | ||
19 | import java.util.ArrayList; | ||
20 | |||
21 | @SuppressWarnings("all") | ||
22 | public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | ||
23 | public static final String[] tokenNames = new String[] { | ||
24 | "<invalid>", "<EOR>", "<DOWN>", "<UP>", "RULE_ID", "RULE_DOULBE", "RULE_INT", "RULE_STRING", "RULE_ML_COMMENT", "RULE_SL_COMMENT", "RULE_WS", "RULE_ANY_OTHER", "'package'", "';'", "'import'", "'cft'", "'{'", "'in'", "'out'", "'}'", "'[]'", "'lambda'", "'='", "'and'", "'or'", "'transformation'", "'toplevel'", "'mapping'", "'('", "','", "')'", "'lookup'", "'as'", "'+='", "':='", "'.'", "'=>'", "'*'" | ||
25 | }; | ||
26 | public static final int RULE_STRING=7; | ||
27 | public static final int RULE_SL_COMMENT=9; | ||
28 | public static final int T__19=19; | ||
29 | public static final int T__15=15; | ||
30 | public static final int T__37=37; | ||
31 | public static final int T__16=16; | ||
32 | public static final int T__17=17; | ||
33 | public static final int T__18=18; | ||
34 | public static final int T__33=33; | ||
35 | public static final int T__12=12; | ||
36 | public static final int T__34=34; | ||
37 | public static final int T__13=13; | ||
38 | public static final int T__35=35; | ||
39 | public static final int T__14=14; | ||
40 | public static final int T__36=36; | ||
41 | public static final int EOF=-1; | ||
42 | public static final int T__30=30; | ||
43 | public static final int T__31=31; | ||
44 | public static final int T__32=32; | ||
45 | public static final int RULE_ID=4; | ||
46 | public static final int RULE_WS=10; | ||
47 | public static final int RULE_DOULBE=5; | ||
48 | public static final int RULE_ANY_OTHER=11; | ||
49 | public static final int T__26=26; | ||
50 | public static final int T__27=27; | ||
51 | public static final int T__28=28; | ||
52 | public static final int RULE_INT=6; | ||
53 | public static final int T__29=29; | ||
54 | public static final int T__22=22; | ||
55 | public static final int RULE_ML_COMMENT=8; | ||
56 | public static final int T__23=23; | ||
57 | public static final int T__24=24; | ||
58 | public static final int T__25=25; | ||
59 | public static final int T__20=20; | ||
60 | public static final int T__21=21; | ||
61 | |||
62 | // delegates | ||
63 | // delegators | ||
64 | |||
65 | |||
66 | public InternalCftLanguageParser(TokenStream input) { | ||
67 | this(input, new RecognizerSharedState()); | ||
68 | } | ||
69 | public InternalCftLanguageParser(TokenStream input, RecognizerSharedState state) { | ||
70 | super(input, state); | ||
71 | |||
72 | } | ||
73 | |||
74 | |||
75 | public String[] getTokenNames() { return InternalCftLanguageParser.tokenNames; } | ||
76 | public String getGrammarFileName() { return "InternalCftLanguage.g"; } | ||
77 | |||
78 | |||
79 | |||
80 | private CftLanguageGrammarAccess grammarAccess; | ||
81 | |||
82 | public InternalCftLanguageParser(TokenStream input, CftLanguageGrammarAccess grammarAccess) { | ||
83 | this(input); | ||
84 | this.grammarAccess = grammarAccess; | ||
85 | registerRules(grammarAccess.getGrammar()); | ||
86 | } | ||
87 | |||
88 | @Override | ||
89 | protected String getFirstRuleName() { | ||
90 | return "CftModel"; | ||
91 | } | ||
92 | |||
93 | @Override | ||
94 | protected CftLanguageGrammarAccess getGrammarAccess() { | ||
95 | return grammarAccess; | ||
96 | } | ||
97 | |||
98 | |||
99 | |||
100 | |||
101 | // $ANTLR start "entryRuleCftModel" | ||
102 | // InternalCftLanguage.g:64:1: entryRuleCftModel returns [EObject current=null] : iv_ruleCftModel= ruleCftModel EOF ; | ||
103 | public final EObject entryRuleCftModel() throws RecognitionException { | ||
104 | EObject current = null; | ||
105 | |||
106 | EObject iv_ruleCftModel = null; | ||
107 | |||
108 | |||
109 | try { | ||
110 | // InternalCftLanguage.g:64:49: (iv_ruleCftModel= ruleCftModel EOF ) | ||
111 | // InternalCftLanguage.g:65:2: iv_ruleCftModel= ruleCftModel EOF | ||
112 | { | ||
113 | newCompositeNode(grammarAccess.getCftModelRule()); | ||
114 | pushFollow(FOLLOW_1); | ||
115 | iv_ruleCftModel=ruleCftModel(); | ||
116 | |||
117 | state._fsp--; | ||
118 | |||
119 | current =iv_ruleCftModel; | ||
120 | match(input,EOF,FOLLOW_2); | ||
121 | |||
122 | } | ||
123 | |||
124 | } | ||
125 | |||
126 | catch (RecognitionException re) { | ||
127 | recover(input,re); | ||
128 | appendSkippedTokens(); | ||
129 | } | ||
130 | finally { | ||
131 | } | ||
132 | return current; | ||
133 | } | ||
134 | // $ANTLR end "entryRuleCftModel" | ||
135 | |||
136 | |||
137 | // $ANTLR start "ruleCftModel" | ||
138 | // InternalCftLanguage.g:71:1: ruleCftModel returns [EObject current=null] : (otherlv_0= 'package' ( (lv_packageName_1_0= ruleQualifiedName ) ) (otherlv_2= ';' )? ( (lv_imports_3_0= ruleImportDeclaration ) )* ( ( (lv_componentDefinitions_4_0= ruleComponentDefinition ) ) | ( (lv_transformationDefinitions_5_0= ruleTransformationDefinition ) ) )* ) ; | ||
139 | public final EObject ruleCftModel() throws RecognitionException { | ||
140 | EObject current = null; | ||
141 | |||
142 | Token otherlv_0=null; | ||
143 | Token otherlv_2=null; | ||
144 | AntlrDatatypeRuleToken lv_packageName_1_0 = null; | ||
145 | |||
146 | EObject lv_imports_3_0 = null; | ||
147 | |||
148 | EObject lv_componentDefinitions_4_0 = null; | ||
149 | |||
150 | EObject lv_transformationDefinitions_5_0 = null; | ||
151 | |||
152 | |||
153 | |||
154 | enterRule(); | ||
155 | |||
156 | try { | ||
157 | // InternalCftLanguage.g:77:2: ( (otherlv_0= 'package' ( (lv_packageName_1_0= ruleQualifiedName ) ) (otherlv_2= ';' )? ( (lv_imports_3_0= ruleImportDeclaration ) )* ( ( (lv_componentDefinitions_4_0= ruleComponentDefinition ) ) | ( (lv_transformationDefinitions_5_0= ruleTransformationDefinition ) ) )* ) ) | ||
158 | // InternalCftLanguage.g:78:2: (otherlv_0= 'package' ( (lv_packageName_1_0= ruleQualifiedName ) ) (otherlv_2= ';' )? ( (lv_imports_3_0= ruleImportDeclaration ) )* ( ( (lv_componentDefinitions_4_0= ruleComponentDefinition ) ) | ( (lv_transformationDefinitions_5_0= ruleTransformationDefinition ) ) )* ) | ||
159 | { | ||
160 | // InternalCftLanguage.g:78:2: (otherlv_0= 'package' ( (lv_packageName_1_0= ruleQualifiedName ) ) (otherlv_2= ';' )? ( (lv_imports_3_0= ruleImportDeclaration ) )* ( ( (lv_componentDefinitions_4_0= ruleComponentDefinition ) ) | ( (lv_transformationDefinitions_5_0= ruleTransformationDefinition ) ) )* ) | ||
161 | // InternalCftLanguage.g:79:3: otherlv_0= 'package' ( (lv_packageName_1_0= ruleQualifiedName ) ) (otherlv_2= ';' )? ( (lv_imports_3_0= ruleImportDeclaration ) )* ( ( (lv_componentDefinitions_4_0= ruleComponentDefinition ) ) | ( (lv_transformationDefinitions_5_0= ruleTransformationDefinition ) ) )* | ||
162 | { | ||
163 | otherlv_0=(Token)match(input,12,FOLLOW_3); | ||
164 | |||
165 | newLeafNode(otherlv_0, grammarAccess.getCftModelAccess().getPackageKeyword_0()); | ||
166 | |||
167 | // InternalCftLanguage.g:83:3: ( (lv_packageName_1_0= ruleQualifiedName ) ) | ||
168 | // InternalCftLanguage.g:84:4: (lv_packageName_1_0= ruleQualifiedName ) | ||
169 | { | ||
170 | // InternalCftLanguage.g:84:4: (lv_packageName_1_0= ruleQualifiedName ) | ||
171 | // InternalCftLanguage.g:85:5: lv_packageName_1_0= ruleQualifiedName | ||
172 | { | ||
173 | |||
174 | newCompositeNode(grammarAccess.getCftModelAccess().getPackageNameQualifiedNameParserRuleCall_1_0()); | ||
175 | |||
176 | pushFollow(FOLLOW_4); | ||
177 | lv_packageName_1_0=ruleQualifiedName(); | ||
178 | |||
179 | state._fsp--; | ||
180 | |||
181 | |||
182 | if (current==null) { | ||
183 | current = createModelElementForParent(grammarAccess.getCftModelRule()); | ||
184 | } | ||
185 | set( | ||
186 | current, | ||
187 | "packageName", | ||
188 | lv_packageName_1_0, | ||
189 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.QualifiedName"); | ||
190 | afterParserOrEnumRuleCall(); | ||
191 | |||
192 | |||
193 | } | ||
194 | |||
195 | |||
196 | } | ||
197 | |||
198 | // InternalCftLanguage.g:102:3: (otherlv_2= ';' )? | ||
199 | int alt1=2; | ||
200 | int LA1_0 = input.LA(1); | ||
201 | |||
202 | if ( (LA1_0==13) ) { | ||
203 | alt1=1; | ||
204 | } | ||
205 | switch (alt1) { | ||
206 | case 1 : | ||
207 | // InternalCftLanguage.g:103:4: otherlv_2= ';' | ||
208 | { | ||
209 | otherlv_2=(Token)match(input,13,FOLLOW_5); | ||
210 | |||
211 | newLeafNode(otherlv_2, grammarAccess.getCftModelAccess().getSemicolonKeyword_2()); | ||
212 | |||
213 | |||
214 | } | ||
215 | break; | ||
216 | |||
217 | } | ||
218 | |||
219 | // InternalCftLanguage.g:108:3: ( (lv_imports_3_0= ruleImportDeclaration ) )* | ||
220 | loop2: | ||
221 | do { | ||
222 | int alt2=2; | ||
223 | int LA2_0 = input.LA(1); | ||
224 | |||
225 | if ( (LA2_0==14) ) { | ||
226 | alt2=1; | ||
227 | } | ||
228 | |||
229 | |||
230 | switch (alt2) { | ||
231 | case 1 : | ||
232 | // InternalCftLanguage.g:109:4: (lv_imports_3_0= ruleImportDeclaration ) | ||
233 | { | ||
234 | // InternalCftLanguage.g:109:4: (lv_imports_3_0= ruleImportDeclaration ) | ||
235 | // InternalCftLanguage.g:110:5: lv_imports_3_0= ruleImportDeclaration | ||
236 | { | ||
237 | |||
238 | newCompositeNode(grammarAccess.getCftModelAccess().getImportsImportDeclarationParserRuleCall_3_0()); | ||
239 | |||
240 | pushFollow(FOLLOW_5); | ||
241 | lv_imports_3_0=ruleImportDeclaration(); | ||
242 | |||
243 | state._fsp--; | ||
244 | |||
245 | |||
246 | if (current==null) { | ||
247 | current = createModelElementForParent(grammarAccess.getCftModelRule()); | ||
248 | } | ||
249 | add( | ||
250 | current, | ||
251 | "imports", | ||
252 | lv_imports_3_0, | ||
253 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.ImportDeclaration"); | ||
254 | afterParserOrEnumRuleCall(); | ||
255 | |||
256 | |||
257 | } | ||
258 | |||
259 | |||
260 | } | ||
261 | break; | ||
262 | |||
263 | default : | ||
264 | break loop2; | ||
265 | } | ||
266 | } while (true); | ||
267 | |||
268 | // InternalCftLanguage.g:127:3: ( ( (lv_componentDefinitions_4_0= ruleComponentDefinition ) ) | ( (lv_transformationDefinitions_5_0= ruleTransformationDefinition ) ) )* | ||
269 | loop3: | ||
270 | do { | ||
271 | int alt3=3; | ||
272 | int LA3_0 = input.LA(1); | ||
273 | |||
274 | if ( (LA3_0==15) ) { | ||
275 | alt3=1; | ||
276 | } | ||
277 | else if ( (LA3_0==25) ) { | ||
278 | alt3=2; | ||
279 | } | ||
280 | |||
281 | |||
282 | switch (alt3) { | ||
283 | case 1 : | ||
284 | // InternalCftLanguage.g:128:4: ( (lv_componentDefinitions_4_0= ruleComponentDefinition ) ) | ||
285 | { | ||
286 | // InternalCftLanguage.g:128:4: ( (lv_componentDefinitions_4_0= ruleComponentDefinition ) ) | ||
287 | // InternalCftLanguage.g:129:5: (lv_componentDefinitions_4_0= ruleComponentDefinition ) | ||
288 | { | ||
289 | // InternalCftLanguage.g:129:5: (lv_componentDefinitions_4_0= ruleComponentDefinition ) | ||
290 | // InternalCftLanguage.g:130:6: lv_componentDefinitions_4_0= ruleComponentDefinition | ||
291 | { | ||
292 | |||
293 | newCompositeNode(grammarAccess.getCftModelAccess().getComponentDefinitionsComponentDefinitionParserRuleCall_4_0_0()); | ||
294 | |||
295 | pushFollow(FOLLOW_6); | ||
296 | lv_componentDefinitions_4_0=ruleComponentDefinition(); | ||
297 | |||
298 | state._fsp--; | ||
299 | |||
300 | |||
301 | if (current==null) { | ||
302 | current = createModelElementForParent(grammarAccess.getCftModelRule()); | ||
303 | } | ||
304 | add( | ||
305 | current, | ||
306 | "componentDefinitions", | ||
307 | lv_componentDefinitions_4_0, | ||
308 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.ComponentDefinition"); | ||
309 | afterParserOrEnumRuleCall(); | ||
310 | |||
311 | |||
312 | } | ||
313 | |||
314 | |||
315 | } | ||
316 | |||
317 | |||
318 | } | ||
319 | break; | ||
320 | case 2 : | ||
321 | // InternalCftLanguage.g:148:4: ( (lv_transformationDefinitions_5_0= ruleTransformationDefinition ) ) | ||
322 | { | ||
323 | // InternalCftLanguage.g:148:4: ( (lv_transformationDefinitions_5_0= ruleTransformationDefinition ) ) | ||
324 | // InternalCftLanguage.g:149:5: (lv_transformationDefinitions_5_0= ruleTransformationDefinition ) | ||
325 | { | ||
326 | // InternalCftLanguage.g:149:5: (lv_transformationDefinitions_5_0= ruleTransformationDefinition ) | ||
327 | // InternalCftLanguage.g:150:6: lv_transformationDefinitions_5_0= ruleTransformationDefinition | ||
328 | { | ||
329 | |||
330 | newCompositeNode(grammarAccess.getCftModelAccess().getTransformationDefinitionsTransformationDefinitionParserRuleCall_4_1_0()); | ||
331 | |||
332 | pushFollow(FOLLOW_6); | ||
333 | lv_transformationDefinitions_5_0=ruleTransformationDefinition(); | ||
334 | |||
335 | state._fsp--; | ||
336 | |||
337 | |||
338 | if (current==null) { | ||
339 | current = createModelElementForParent(grammarAccess.getCftModelRule()); | ||
340 | } | ||
341 | add( | ||
342 | current, | ||
343 | "transformationDefinitions", | ||
344 | lv_transformationDefinitions_5_0, | ||
345 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.TransformationDefinition"); | ||
346 | afterParserOrEnumRuleCall(); | ||
347 | |||
348 | |||
349 | } | ||
350 | |||
351 | |||
352 | } | ||
353 | |||
354 | |||
355 | } | ||
356 | break; | ||
357 | |||
358 | default : | ||
359 | break loop3; | ||
360 | } | ||
361 | } while (true); | ||
362 | |||
363 | |||
364 | } | ||
365 | |||
366 | |||
367 | } | ||
368 | |||
369 | |||
370 | leaveRule(); | ||
371 | |||
372 | } | ||
373 | |||
374 | catch (RecognitionException re) { | ||
375 | recover(input,re); | ||
376 | appendSkippedTokens(); | ||
377 | } | ||
378 | finally { | ||
379 | } | ||
380 | return current; | ||
381 | } | ||
382 | // $ANTLR end "ruleCftModel" | ||
383 | |||
384 | |||
385 | // $ANTLR start "entryRuleImportDeclaration" | ||
386 | // InternalCftLanguage.g:172:1: entryRuleImportDeclaration returns [EObject current=null] : iv_ruleImportDeclaration= ruleImportDeclaration EOF ; | ||
387 | public final EObject entryRuleImportDeclaration() throws RecognitionException { | ||
388 | EObject current = null; | ||
389 | |||
390 | EObject iv_ruleImportDeclaration = null; | ||
391 | |||
392 | |||
393 | try { | ||
394 | // InternalCftLanguage.g:172:58: (iv_ruleImportDeclaration= ruleImportDeclaration EOF ) | ||
395 | // InternalCftLanguage.g:173:2: iv_ruleImportDeclaration= ruleImportDeclaration EOF | ||
396 | { | ||
397 | newCompositeNode(grammarAccess.getImportDeclarationRule()); | ||
398 | pushFollow(FOLLOW_1); | ||
399 | iv_ruleImportDeclaration=ruleImportDeclaration(); | ||
400 | |||
401 | state._fsp--; | ||
402 | |||
403 | current =iv_ruleImportDeclaration; | ||
404 | match(input,EOF,FOLLOW_2); | ||
405 | |||
406 | } | ||
407 | |||
408 | } | ||
409 | |||
410 | catch (RecognitionException re) { | ||
411 | recover(input,re); | ||
412 | appendSkippedTokens(); | ||
413 | } | ||
414 | finally { | ||
415 | } | ||
416 | return current; | ||
417 | } | ||
418 | // $ANTLR end "entryRuleImportDeclaration" | ||
419 | |||
420 | |||
421 | // $ANTLR start "ruleImportDeclaration" | ||
422 | // InternalCftLanguage.g:179:1: ruleImportDeclaration returns [EObject current=null] : (otherlv_0= 'import' ( (lv_importedNamespace_1_0= ruleQualifiedNameWithWildcard ) ) (otherlv_2= ';' )? ) ; | ||
423 | public final EObject ruleImportDeclaration() throws RecognitionException { | ||
424 | EObject current = null; | ||
425 | |||
426 | Token otherlv_0=null; | ||
427 | Token otherlv_2=null; | ||
428 | AntlrDatatypeRuleToken lv_importedNamespace_1_0 = null; | ||
429 | |||
430 | |||
431 | |||
432 | enterRule(); | ||
433 | |||
434 | try { | ||
435 | // InternalCftLanguage.g:185:2: ( (otherlv_0= 'import' ( (lv_importedNamespace_1_0= ruleQualifiedNameWithWildcard ) ) (otherlv_2= ';' )? ) ) | ||
436 | // InternalCftLanguage.g:186:2: (otherlv_0= 'import' ( (lv_importedNamespace_1_0= ruleQualifiedNameWithWildcard ) ) (otherlv_2= ';' )? ) | ||
437 | { | ||
438 | // InternalCftLanguage.g:186:2: (otherlv_0= 'import' ( (lv_importedNamespace_1_0= ruleQualifiedNameWithWildcard ) ) (otherlv_2= ';' )? ) | ||
439 | // InternalCftLanguage.g:187:3: otherlv_0= 'import' ( (lv_importedNamespace_1_0= ruleQualifiedNameWithWildcard ) ) (otherlv_2= ';' )? | ||
440 | { | ||
441 | otherlv_0=(Token)match(input,14,FOLLOW_3); | ||
442 | |||
443 | newLeafNode(otherlv_0, grammarAccess.getImportDeclarationAccess().getImportKeyword_0()); | ||
444 | |||
445 | // InternalCftLanguage.g:191:3: ( (lv_importedNamespace_1_0= ruleQualifiedNameWithWildcard ) ) | ||
446 | // InternalCftLanguage.g:192:4: (lv_importedNamespace_1_0= ruleQualifiedNameWithWildcard ) | ||
447 | { | ||
448 | // InternalCftLanguage.g:192:4: (lv_importedNamespace_1_0= ruleQualifiedNameWithWildcard ) | ||
449 | // InternalCftLanguage.g:193:5: lv_importedNamespace_1_0= ruleQualifiedNameWithWildcard | ||
450 | { | ||
451 | |||
452 | newCompositeNode(grammarAccess.getImportDeclarationAccess().getImportedNamespaceQualifiedNameWithWildcardParserRuleCall_1_0()); | ||
453 | |||
454 | pushFollow(FOLLOW_7); | ||
455 | lv_importedNamespace_1_0=ruleQualifiedNameWithWildcard(); | ||
456 | |||
457 | state._fsp--; | ||
458 | |||
459 | |||
460 | if (current==null) { | ||
461 | current = createModelElementForParent(grammarAccess.getImportDeclarationRule()); | ||
462 | } | ||
463 | set( | ||
464 | current, | ||
465 | "importedNamespace", | ||
466 | lv_importedNamespace_1_0, | ||
467 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.QualifiedNameWithWildcard"); | ||
468 | afterParserOrEnumRuleCall(); | ||
469 | |||
470 | |||
471 | } | ||
472 | |||
473 | |||
474 | } | ||
475 | |||
476 | // InternalCftLanguage.g:210:3: (otherlv_2= ';' )? | ||
477 | int alt4=2; | ||
478 | int LA4_0 = input.LA(1); | ||
479 | |||
480 | if ( (LA4_0==13) ) { | ||
481 | alt4=1; | ||
482 | } | ||
483 | switch (alt4) { | ||
484 | case 1 : | ||
485 | // InternalCftLanguage.g:211:4: otherlv_2= ';' | ||
486 | { | ||
487 | otherlv_2=(Token)match(input,13,FOLLOW_2); | ||
488 | |||
489 | newLeafNode(otherlv_2, grammarAccess.getImportDeclarationAccess().getSemicolonKeyword_2()); | ||
490 | |||
491 | |||
492 | } | ||
493 | break; | ||
494 | |||
495 | } | ||
496 | |||
497 | |||
498 | } | ||
499 | |||
500 | |||
501 | } | ||
502 | |||
503 | |||
504 | leaveRule(); | ||
505 | |||
506 | } | ||
507 | |||
508 | catch (RecognitionException re) { | ||
509 | recover(input,re); | ||
510 | appendSkippedTokens(); | ||
511 | } | ||
512 | finally { | ||
513 | } | ||
514 | return current; | ||
515 | } | ||
516 | // $ANTLR end "ruleImportDeclaration" | ||
517 | |||
518 | |||
519 | // $ANTLR start "entryRuleComponentDefinition" | ||
520 | // InternalCftLanguage.g:220:1: entryRuleComponentDefinition returns [EObject current=null] : iv_ruleComponentDefinition= ruleComponentDefinition EOF ; | ||
521 | public final EObject entryRuleComponentDefinition() throws RecognitionException { | ||
522 | EObject current = null; | ||
523 | |||
524 | EObject iv_ruleComponentDefinition = null; | ||
525 | |||
526 | |||
527 | try { | ||
528 | // InternalCftLanguage.g:220:60: (iv_ruleComponentDefinition= ruleComponentDefinition EOF ) | ||
529 | // InternalCftLanguage.g:221:2: iv_ruleComponentDefinition= ruleComponentDefinition EOF | ||
530 | { | ||
531 | newCompositeNode(grammarAccess.getComponentDefinitionRule()); | ||
532 | pushFollow(FOLLOW_1); | ||
533 | iv_ruleComponentDefinition=ruleComponentDefinition(); | ||
534 | |||
535 | state._fsp--; | ||
536 | |||
537 | current =iv_ruleComponentDefinition; | ||
538 | match(input,EOF,FOLLOW_2); | ||
539 | |||
540 | } | ||
541 | |||
542 | } | ||
543 | |||
544 | catch (RecognitionException re) { | ||
545 | recover(input,re); | ||
546 | appendSkippedTokens(); | ||
547 | } | ||
548 | finally { | ||
549 | } | ||
550 | return current; | ||
551 | } | ||
552 | // $ANTLR end "entryRuleComponentDefinition" | ||
553 | |||
554 | |||
555 | // $ANTLR start "ruleComponentDefinition" | ||
556 | // InternalCftLanguage.g:227:1: ruleComponentDefinition returns [EObject current=null] : (otherlv_0= 'cft' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= '{' ( ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'out' ( (otherlv_8= RULE_ID ) )* otherlv_9= ';' ) ) ) ) )* ) ) ) ( ( (lv_eventDefinitions_10_0= ruleEventDefinition ) ) otherlv_11= ';' )* otherlv_12= '}' ) ; | ||
557 | public final EObject ruleComponentDefinition() throws RecognitionException { | ||
558 | EObject current = null; | ||
559 | |||
560 | Token otherlv_0=null; | ||
561 | Token lv_name_1_0=null; | ||
562 | Token otherlv_2=null; | ||
563 | Token otherlv_4=null; | ||
564 | Token otherlv_6=null; | ||
565 | Token otherlv_7=null; | ||
566 | Token otherlv_8=null; | ||
567 | Token otherlv_9=null; | ||
568 | Token otherlv_11=null; | ||
569 | Token otherlv_12=null; | ||
570 | EObject lv_inputEvents_5_0 = null; | ||
571 | |||
572 | EObject lv_eventDefinitions_10_0 = null; | ||
573 | |||
574 | |||
575 | |||
576 | enterRule(); | ||
577 | |||
578 | try { | ||
579 | // InternalCftLanguage.g:233:2: ( (otherlv_0= 'cft' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= '{' ( ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'out' ( (otherlv_8= RULE_ID ) )* otherlv_9= ';' ) ) ) ) )* ) ) ) ( ( (lv_eventDefinitions_10_0= ruleEventDefinition ) ) otherlv_11= ';' )* otherlv_12= '}' ) ) | ||
580 | // InternalCftLanguage.g:234:2: (otherlv_0= 'cft' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= '{' ( ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'out' ( (otherlv_8= RULE_ID ) )* otherlv_9= ';' ) ) ) ) )* ) ) ) ( ( (lv_eventDefinitions_10_0= ruleEventDefinition ) ) otherlv_11= ';' )* otherlv_12= '}' ) | ||
581 | { | ||
582 | // InternalCftLanguage.g:234:2: (otherlv_0= 'cft' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= '{' ( ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'out' ( (otherlv_8= RULE_ID ) )* otherlv_9= ';' ) ) ) ) )* ) ) ) ( ( (lv_eventDefinitions_10_0= ruleEventDefinition ) ) otherlv_11= ';' )* otherlv_12= '}' ) | ||
583 | // InternalCftLanguage.g:235:3: otherlv_0= 'cft' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= '{' ( ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'out' ( (otherlv_8= RULE_ID ) )* otherlv_9= ';' ) ) ) ) )* ) ) ) ( ( (lv_eventDefinitions_10_0= ruleEventDefinition ) ) otherlv_11= ';' )* otherlv_12= '}' | ||
584 | { | ||
585 | otherlv_0=(Token)match(input,15,FOLLOW_3); | ||
586 | |||
587 | newLeafNode(otherlv_0, grammarAccess.getComponentDefinitionAccess().getCftKeyword_0()); | ||
588 | |||
589 | // InternalCftLanguage.g:239:3: ( (lv_name_1_0= RULE_ID ) ) | ||
590 | // InternalCftLanguage.g:240:4: (lv_name_1_0= RULE_ID ) | ||
591 | { | ||
592 | // InternalCftLanguage.g:240:4: (lv_name_1_0= RULE_ID ) | ||
593 | // InternalCftLanguage.g:241:5: lv_name_1_0= RULE_ID | ||
594 | { | ||
595 | lv_name_1_0=(Token)match(input,RULE_ID,FOLLOW_8); | ||
596 | |||
597 | newLeafNode(lv_name_1_0, grammarAccess.getComponentDefinitionAccess().getNameIDTerminalRuleCall_1_0()); | ||
598 | |||
599 | |||
600 | if (current==null) { | ||
601 | current = createModelElement(grammarAccess.getComponentDefinitionRule()); | ||
602 | } | ||
603 | setWithLastConsumed( | ||
604 | current, | ||
605 | "name", | ||
606 | lv_name_1_0, | ||
607 | "org.eclipse.xtext.common.Terminals.ID"); | ||
608 | |||
609 | |||
610 | } | ||
611 | |||
612 | |||
613 | } | ||
614 | |||
615 | otherlv_2=(Token)match(input,16,FOLLOW_9); | ||
616 | |||
617 | newLeafNode(otherlv_2, grammarAccess.getComponentDefinitionAccess().getLeftCurlyBracketKeyword_2()); | ||
618 | |||
619 | // InternalCftLanguage.g:261:3: ( ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'out' ( (otherlv_8= RULE_ID ) )* otherlv_9= ';' ) ) ) ) )* ) ) ) | ||
620 | // InternalCftLanguage.g:262:4: ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'out' ( (otherlv_8= RULE_ID ) )* otherlv_9= ';' ) ) ) ) )* ) ) | ||
621 | { | ||
622 | // InternalCftLanguage.g:262:4: ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'out' ( (otherlv_8= RULE_ID ) )* otherlv_9= ';' ) ) ) ) )* ) ) | ||
623 | // InternalCftLanguage.g:263:5: ( ( ({...}? => ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'out' ( (otherlv_8= RULE_ID ) )* otherlv_9= ';' ) ) ) ) )* ) | ||
624 | { | ||
625 | |||
626 | getUnorderedGroupHelper().enter(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3()); | ||
627 | |||
628 | // InternalCftLanguage.g:266:5: ( ( ({...}? => ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'out' ( (otherlv_8= RULE_ID ) )* otherlv_9= ';' ) ) ) ) )* ) | ||
629 | // InternalCftLanguage.g:267:6: ( ({...}? => ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'out' ( (otherlv_8= RULE_ID ) )* otherlv_9= ';' ) ) ) ) )* | ||
630 | { | ||
631 | // InternalCftLanguage.g:267:6: ( ({...}? => ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'out' ( (otherlv_8= RULE_ID ) )* otherlv_9= ';' ) ) ) ) )* | ||
632 | loop7: | ||
633 | do { | ||
634 | int alt7=3; | ||
635 | int LA7_0 = input.LA(1); | ||
636 | |||
637 | if ( LA7_0 == 17 && getUnorderedGroupHelper().canSelect(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3(), 0) ) { | ||
638 | alt7=1; | ||
639 | } | ||
640 | else if ( LA7_0 == 18 && getUnorderedGroupHelper().canSelect(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3(), 1) ) { | ||
641 | alt7=2; | ||
642 | } | ||
643 | |||
644 | |||
645 | switch (alt7) { | ||
646 | case 1 : | ||
647 | // InternalCftLanguage.g:268:4: ({...}? => ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) ) | ||
648 | { | ||
649 | // InternalCftLanguage.g:268:4: ({...}? => ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) ) | ||
650 | // InternalCftLanguage.g:269:5: {...}? => ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) | ||
651 | { | ||
652 | if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3(), 0) ) { | ||
653 | throw new FailedPredicateException(input, "ruleComponentDefinition", "getUnorderedGroupHelper().canSelect(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3(), 0)"); | ||
654 | } | ||
655 | // InternalCftLanguage.g:269:116: ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) | ||
656 | // InternalCftLanguage.g:270:6: ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) | ||
657 | { | ||
658 | |||
659 | getUnorderedGroupHelper().select(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3(), 0); | ||
660 | |||
661 | // InternalCftLanguage.g:273:9: ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) | ||
662 | // InternalCftLanguage.g:273:10: {...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) | ||
663 | { | ||
664 | if ( !((true)) ) { | ||
665 | throw new FailedPredicateException(input, "ruleComponentDefinition", "true"); | ||
666 | } | ||
667 | // InternalCftLanguage.g:273:19: (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) | ||
668 | // InternalCftLanguage.g:273:20: otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' | ||
669 | { | ||
670 | otherlv_4=(Token)match(input,17,FOLLOW_10); | ||
671 | |||
672 | newLeafNode(otherlv_4, grammarAccess.getComponentDefinitionAccess().getInKeyword_3_0_0()); | ||
673 | |||
674 | // InternalCftLanguage.g:277:9: ( (lv_inputEvents_5_0= ruleInputEvent ) )* | ||
675 | loop5: | ||
676 | do { | ||
677 | int alt5=2; | ||
678 | int LA5_0 = input.LA(1); | ||
679 | |||
680 | if ( (LA5_0==RULE_ID) ) { | ||
681 | alt5=1; | ||
682 | } | ||
683 | |||
684 | |||
685 | switch (alt5) { | ||
686 | case 1 : | ||
687 | // InternalCftLanguage.g:278:10: (lv_inputEvents_5_0= ruleInputEvent ) | ||
688 | { | ||
689 | // InternalCftLanguage.g:278:10: (lv_inputEvents_5_0= ruleInputEvent ) | ||
690 | // InternalCftLanguage.g:279:11: lv_inputEvents_5_0= ruleInputEvent | ||
691 | { | ||
692 | |||
693 | newCompositeNode(grammarAccess.getComponentDefinitionAccess().getInputEventsInputEventParserRuleCall_3_0_1_0()); | ||
694 | |||
695 | pushFollow(FOLLOW_10); | ||
696 | lv_inputEvents_5_0=ruleInputEvent(); | ||
697 | |||
698 | state._fsp--; | ||
699 | |||
700 | |||
701 | if (current==null) { | ||
702 | current = createModelElementForParent(grammarAccess.getComponentDefinitionRule()); | ||
703 | } | ||
704 | add( | ||
705 | current, | ||
706 | "inputEvents", | ||
707 | lv_inputEvents_5_0, | ||
708 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.InputEvent"); | ||
709 | afterParserOrEnumRuleCall(); | ||
710 | |||
711 | |||
712 | } | ||
713 | |||
714 | |||
715 | } | ||
716 | break; | ||
717 | |||
718 | default : | ||
719 | break loop5; | ||
720 | } | ||
721 | } while (true); | ||
722 | |||
723 | otherlv_6=(Token)match(input,13,FOLLOW_9); | ||
724 | |||
725 | newLeafNode(otherlv_6, grammarAccess.getComponentDefinitionAccess().getSemicolonKeyword_3_0_2()); | ||
726 | |||
727 | |||
728 | } | ||
729 | |||
730 | |||
731 | } | ||
732 | |||
733 | |||
734 | getUnorderedGroupHelper().returnFromSelection(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3()); | ||
735 | |||
736 | |||
737 | } | ||
738 | |||
739 | |||
740 | } | ||
741 | |||
742 | |||
743 | } | ||
744 | break; | ||
745 | case 2 : | ||
746 | // InternalCftLanguage.g:306:4: ({...}? => ( ({...}? => (otherlv_7= 'out' ( (otherlv_8= RULE_ID ) )* otherlv_9= ';' ) ) ) ) | ||
747 | { | ||
748 | // InternalCftLanguage.g:306:4: ({...}? => ( ({...}? => (otherlv_7= 'out' ( (otherlv_8= RULE_ID ) )* otherlv_9= ';' ) ) ) ) | ||
749 | // InternalCftLanguage.g:307:5: {...}? => ( ({...}? => (otherlv_7= 'out' ( (otherlv_8= RULE_ID ) )* otherlv_9= ';' ) ) ) | ||
750 | { | ||
751 | if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3(), 1) ) { | ||
752 | throw new FailedPredicateException(input, "ruleComponentDefinition", "getUnorderedGroupHelper().canSelect(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3(), 1)"); | ||
753 | } | ||
754 | // InternalCftLanguage.g:307:116: ( ({...}? => (otherlv_7= 'out' ( (otherlv_8= RULE_ID ) )* otherlv_9= ';' ) ) ) | ||
755 | // InternalCftLanguage.g:308:6: ({...}? => (otherlv_7= 'out' ( (otherlv_8= RULE_ID ) )* otherlv_9= ';' ) ) | ||
756 | { | ||
757 | |||
758 | getUnorderedGroupHelper().select(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3(), 1); | ||
759 | |||
760 | // InternalCftLanguage.g:311:9: ({...}? => (otherlv_7= 'out' ( (otherlv_8= RULE_ID ) )* otherlv_9= ';' ) ) | ||
761 | // InternalCftLanguage.g:311:10: {...}? => (otherlv_7= 'out' ( (otherlv_8= RULE_ID ) )* otherlv_9= ';' ) | ||
762 | { | ||
763 | if ( !((true)) ) { | ||
764 | throw new FailedPredicateException(input, "ruleComponentDefinition", "true"); | ||
765 | } | ||
766 | // InternalCftLanguage.g:311:19: (otherlv_7= 'out' ( (otherlv_8= RULE_ID ) )* otherlv_9= ';' ) | ||
767 | // InternalCftLanguage.g:311:20: otherlv_7= 'out' ( (otherlv_8= RULE_ID ) )* otherlv_9= ';' | ||
768 | { | ||
769 | otherlv_7=(Token)match(input,18,FOLLOW_10); | ||
770 | |||
771 | newLeafNode(otherlv_7, grammarAccess.getComponentDefinitionAccess().getOutKeyword_3_1_0()); | ||
772 | |||
773 | // InternalCftLanguage.g:315:9: ( (otherlv_8= RULE_ID ) )* | ||
774 | loop6: | ||
775 | do { | ||
776 | int alt6=2; | ||
777 | int LA6_0 = input.LA(1); | ||
778 | |||
779 | if ( (LA6_0==RULE_ID) ) { | ||
780 | alt6=1; | ||
781 | } | ||
782 | |||
783 | |||
784 | switch (alt6) { | ||
785 | case 1 : | ||
786 | // InternalCftLanguage.g:316:10: (otherlv_8= RULE_ID ) | ||
787 | { | ||
788 | // InternalCftLanguage.g:316:10: (otherlv_8= RULE_ID ) | ||
789 | // InternalCftLanguage.g:317:11: otherlv_8= RULE_ID | ||
790 | { | ||
791 | |||
792 | if (current==null) { | ||
793 | current = createModelElement(grammarAccess.getComponentDefinitionRule()); | ||
794 | } | ||
795 | |||
796 | otherlv_8=(Token)match(input,RULE_ID,FOLLOW_10); | ||
797 | |||
798 | newLeafNode(otherlv_8, grammarAccess.getComponentDefinitionAccess().getOutputEventsEventDeclarationCrossReference_3_1_1_0()); | ||
799 | |||
800 | |||
801 | } | ||
802 | |||
803 | |||
804 | } | ||
805 | break; | ||
806 | |||
807 | default : | ||
808 | break loop6; | ||
809 | } | ||
810 | } while (true); | ||
811 | |||
812 | otherlv_9=(Token)match(input,13,FOLLOW_9); | ||
813 | |||
814 | newLeafNode(otherlv_9, grammarAccess.getComponentDefinitionAccess().getSemicolonKeyword_3_1_2()); | ||
815 | |||
816 | |||
817 | } | ||
818 | |||
819 | |||
820 | } | ||
821 | |||
822 | |||
823 | getUnorderedGroupHelper().returnFromSelection(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3()); | ||
824 | |||
825 | |||
826 | } | ||
827 | |||
828 | |||
829 | } | ||
830 | |||
831 | |||
832 | } | ||
833 | break; | ||
834 | |||
835 | default : | ||
836 | break loop7; | ||
837 | } | ||
838 | } while (true); | ||
839 | |||
840 | |||
841 | } | ||
842 | |||
843 | |||
844 | } | ||
845 | |||
846 | |||
847 | getUnorderedGroupHelper().leave(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3()); | ||
848 | |||
849 | |||
850 | } | ||
851 | |||
852 | // InternalCftLanguage.g:345:3: ( ( (lv_eventDefinitions_10_0= ruleEventDefinition ) ) otherlv_11= ';' )* | ||
853 | loop8: | ||
854 | do { | ||
855 | int alt8=2; | ||
856 | int LA8_0 = input.LA(1); | ||
857 | |||
858 | if ( (LA8_0==RULE_ID) ) { | ||
859 | alt8=1; | ||
860 | } | ||
861 | |||
862 | |||
863 | switch (alt8) { | ||
864 | case 1 : | ||
865 | // InternalCftLanguage.g:346:4: ( (lv_eventDefinitions_10_0= ruleEventDefinition ) ) otherlv_11= ';' | ||
866 | { | ||
867 | // InternalCftLanguage.g:346:4: ( (lv_eventDefinitions_10_0= ruleEventDefinition ) ) | ||
868 | // InternalCftLanguage.g:347:5: (lv_eventDefinitions_10_0= ruleEventDefinition ) | ||
869 | { | ||
870 | // InternalCftLanguage.g:347:5: (lv_eventDefinitions_10_0= ruleEventDefinition ) | ||
871 | // InternalCftLanguage.g:348:6: lv_eventDefinitions_10_0= ruleEventDefinition | ||
872 | { | ||
873 | |||
874 | newCompositeNode(grammarAccess.getComponentDefinitionAccess().getEventDefinitionsEventDefinitionParserRuleCall_4_0_0()); | ||
875 | |||
876 | pushFollow(FOLLOW_11); | ||
877 | lv_eventDefinitions_10_0=ruleEventDefinition(); | ||
878 | |||
879 | state._fsp--; | ||
880 | |||
881 | |||
882 | if (current==null) { | ||
883 | current = createModelElementForParent(grammarAccess.getComponentDefinitionRule()); | ||
884 | } | ||
885 | add( | ||
886 | current, | ||
887 | "eventDefinitions", | ||
888 | lv_eventDefinitions_10_0, | ||
889 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.EventDefinition"); | ||
890 | afterParserOrEnumRuleCall(); | ||
891 | |||
892 | |||
893 | } | ||
894 | |||
895 | |||
896 | } | ||
897 | |||
898 | otherlv_11=(Token)match(input,13,FOLLOW_12); | ||
899 | |||
900 | newLeafNode(otherlv_11, grammarAccess.getComponentDefinitionAccess().getSemicolonKeyword_4_1()); | ||
901 | |||
902 | |||
903 | } | ||
904 | break; | ||
905 | |||
906 | default : | ||
907 | break loop8; | ||
908 | } | ||
909 | } while (true); | ||
910 | |||
911 | otherlv_12=(Token)match(input,19,FOLLOW_2); | ||
912 | |||
913 | newLeafNode(otherlv_12, grammarAccess.getComponentDefinitionAccess().getRightCurlyBracketKeyword_5()); | ||
914 | |||
915 | |||
916 | } | ||
917 | |||
918 | |||
919 | } | ||
920 | |||
921 | |||
922 | leaveRule(); | ||
923 | |||
924 | } | ||
925 | |||
926 | catch (RecognitionException re) { | ||
927 | recover(input,re); | ||
928 | appendSkippedTokens(); | ||
929 | } | ||
930 | finally { | ||
931 | } | ||
932 | return current; | ||
933 | } | ||
934 | // $ANTLR end "ruleComponentDefinition" | ||
935 | |||
936 | |||
937 | // $ANTLR start "entryRuleInputEvent" | ||
938 | // InternalCftLanguage.g:378:1: entryRuleInputEvent returns [EObject current=null] : iv_ruleInputEvent= ruleInputEvent EOF ; | ||
939 | public final EObject entryRuleInputEvent() throws RecognitionException { | ||
940 | EObject current = null; | ||
941 | |||
942 | EObject iv_ruleInputEvent = null; | ||
943 | |||
944 | |||
945 | try { | ||
946 | // InternalCftLanguage.g:378:51: (iv_ruleInputEvent= ruleInputEvent EOF ) | ||
947 | // InternalCftLanguage.g:379:2: iv_ruleInputEvent= ruleInputEvent EOF | ||
948 | { | ||
949 | newCompositeNode(grammarAccess.getInputEventRule()); | ||
950 | pushFollow(FOLLOW_1); | ||
951 | iv_ruleInputEvent=ruleInputEvent(); | ||
952 | |||
953 | state._fsp--; | ||
954 | |||
955 | current =iv_ruleInputEvent; | ||
956 | match(input,EOF,FOLLOW_2); | ||
957 | |||
958 | } | ||
959 | |||
960 | } | ||
961 | |||
962 | catch (RecognitionException re) { | ||
963 | recover(input,re); | ||
964 | appendSkippedTokens(); | ||
965 | } | ||
966 | finally { | ||
967 | } | ||
968 | return current; | ||
969 | } | ||
970 | // $ANTLR end "entryRuleInputEvent" | ||
971 | |||
972 | |||
973 | // $ANTLR start "ruleInputEvent" | ||
974 | // InternalCftLanguage.g:385:1: ruleInputEvent returns [EObject current=null] : ( ( (lv_name_0_0= RULE_ID ) ) ( (lv_multiple_1_0= '[]' ) )? ) ; | ||
975 | public final EObject ruleInputEvent() throws RecognitionException { | ||
976 | EObject current = null; | ||
977 | |||
978 | Token lv_name_0_0=null; | ||
979 | Token lv_multiple_1_0=null; | ||
980 | |||
981 | |||
982 | enterRule(); | ||
983 | |||
984 | try { | ||
985 | // InternalCftLanguage.g:391:2: ( ( ( (lv_name_0_0= RULE_ID ) ) ( (lv_multiple_1_0= '[]' ) )? ) ) | ||
986 | // InternalCftLanguage.g:392:2: ( ( (lv_name_0_0= RULE_ID ) ) ( (lv_multiple_1_0= '[]' ) )? ) | ||
987 | { | ||
988 | // InternalCftLanguage.g:392:2: ( ( (lv_name_0_0= RULE_ID ) ) ( (lv_multiple_1_0= '[]' ) )? ) | ||
989 | // InternalCftLanguage.g:393:3: ( (lv_name_0_0= RULE_ID ) ) ( (lv_multiple_1_0= '[]' ) )? | ||
990 | { | ||
991 | // InternalCftLanguage.g:393:3: ( (lv_name_0_0= RULE_ID ) ) | ||
992 | // InternalCftLanguage.g:394:4: (lv_name_0_0= RULE_ID ) | ||
993 | { | ||
994 | // InternalCftLanguage.g:394:4: (lv_name_0_0= RULE_ID ) | ||
995 | // InternalCftLanguage.g:395:5: lv_name_0_0= RULE_ID | ||
996 | { | ||
997 | lv_name_0_0=(Token)match(input,RULE_ID,FOLLOW_13); | ||
998 | |||
999 | newLeafNode(lv_name_0_0, grammarAccess.getInputEventAccess().getNameIDTerminalRuleCall_0_0()); | ||
1000 | |||
1001 | |||
1002 | if (current==null) { | ||
1003 | current = createModelElement(grammarAccess.getInputEventRule()); | ||
1004 | } | ||
1005 | setWithLastConsumed( | ||
1006 | current, | ||
1007 | "name", | ||
1008 | lv_name_0_0, | ||
1009 | "org.eclipse.xtext.common.Terminals.ID"); | ||
1010 | |||
1011 | |||
1012 | } | ||
1013 | |||
1014 | |||
1015 | } | ||
1016 | |||
1017 | // InternalCftLanguage.g:411:3: ( (lv_multiple_1_0= '[]' ) )? | ||
1018 | int alt9=2; | ||
1019 | int LA9_0 = input.LA(1); | ||
1020 | |||
1021 | if ( (LA9_0==20) ) { | ||
1022 | alt9=1; | ||
1023 | } | ||
1024 | switch (alt9) { | ||
1025 | case 1 : | ||
1026 | // InternalCftLanguage.g:412:4: (lv_multiple_1_0= '[]' ) | ||
1027 | { | ||
1028 | // InternalCftLanguage.g:412:4: (lv_multiple_1_0= '[]' ) | ||
1029 | // InternalCftLanguage.g:413:5: lv_multiple_1_0= '[]' | ||
1030 | { | ||
1031 | lv_multiple_1_0=(Token)match(input,20,FOLLOW_2); | ||
1032 | |||
1033 | newLeafNode(lv_multiple_1_0, grammarAccess.getInputEventAccess().getMultipleLeftSquareBracketRightSquareBracketKeyword_1_0()); | ||
1034 | |||
1035 | |||
1036 | if (current==null) { | ||
1037 | current = createModelElement(grammarAccess.getInputEventRule()); | ||
1038 | } | ||
1039 | setWithLastConsumed(current, "multiple", true, "[]"); | ||
1040 | |||
1041 | |||
1042 | } | ||
1043 | |||
1044 | |||
1045 | } | ||
1046 | break; | ||
1047 | |||
1048 | } | ||
1049 | |||
1050 | |||
1051 | } | ||
1052 | |||
1053 | |||
1054 | } | ||
1055 | |||
1056 | |||
1057 | leaveRule(); | ||
1058 | |||
1059 | } | ||
1060 | |||
1061 | catch (RecognitionException re) { | ||
1062 | recover(input,re); | ||
1063 | appendSkippedTokens(); | ||
1064 | } | ||
1065 | finally { | ||
1066 | } | ||
1067 | return current; | ||
1068 | } | ||
1069 | // $ANTLR end "ruleInputEvent" | ||
1070 | |||
1071 | |||
1072 | // $ANTLR start "entryRuleEventDefinition" | ||
1073 | // InternalCftLanguage.g:429:1: entryRuleEventDefinition returns [EObject current=null] : iv_ruleEventDefinition= ruleEventDefinition EOF ; | ||
1074 | public final EObject entryRuleEventDefinition() throws RecognitionException { | ||
1075 | EObject current = null; | ||
1076 | |||
1077 | EObject iv_ruleEventDefinition = null; | ||
1078 | |||
1079 | |||
1080 | try { | ||
1081 | // InternalCftLanguage.g:429:56: (iv_ruleEventDefinition= ruleEventDefinition EOF ) | ||
1082 | // InternalCftLanguage.g:430:2: iv_ruleEventDefinition= ruleEventDefinition EOF | ||
1083 | { | ||
1084 | newCompositeNode(grammarAccess.getEventDefinitionRule()); | ||
1085 | pushFollow(FOLLOW_1); | ||
1086 | iv_ruleEventDefinition=ruleEventDefinition(); | ||
1087 | |||
1088 | state._fsp--; | ||
1089 | |||
1090 | current =iv_ruleEventDefinition; | ||
1091 | match(input,EOF,FOLLOW_2); | ||
1092 | |||
1093 | } | ||
1094 | |||
1095 | } | ||
1096 | |||
1097 | catch (RecognitionException re) { | ||
1098 | recover(input,re); | ||
1099 | appendSkippedTokens(); | ||
1100 | } | ||
1101 | finally { | ||
1102 | } | ||
1103 | return current; | ||
1104 | } | ||
1105 | // $ANTLR end "entryRuleEventDefinition" | ||
1106 | |||
1107 | |||
1108 | // $ANTLR start "ruleEventDefinition" | ||
1109 | // InternalCftLanguage.g:436:1: ruleEventDefinition returns [EObject current=null] : (this_BasicEventDefinition_0= ruleBasicEventDefinition | this_GateDefinition_1= ruleGateDefinition ) ; | ||
1110 | public final EObject ruleEventDefinition() throws RecognitionException { | ||
1111 | EObject current = null; | ||
1112 | |||
1113 | EObject this_BasicEventDefinition_0 = null; | ||
1114 | |||
1115 | EObject this_GateDefinition_1 = null; | ||
1116 | |||
1117 | |||
1118 | |||
1119 | enterRule(); | ||
1120 | |||
1121 | try { | ||
1122 | // InternalCftLanguage.g:442:2: ( (this_BasicEventDefinition_0= ruleBasicEventDefinition | this_GateDefinition_1= ruleGateDefinition ) ) | ||
1123 | // InternalCftLanguage.g:443:2: (this_BasicEventDefinition_0= ruleBasicEventDefinition | this_GateDefinition_1= ruleGateDefinition ) | ||
1124 | { | ||
1125 | // InternalCftLanguage.g:443:2: (this_BasicEventDefinition_0= ruleBasicEventDefinition | this_GateDefinition_1= ruleGateDefinition ) | ||
1126 | int alt10=2; | ||
1127 | int LA10_0 = input.LA(1); | ||
1128 | |||
1129 | if ( (LA10_0==RULE_ID) ) { | ||
1130 | int LA10_1 = input.LA(2); | ||
1131 | |||
1132 | if ( ((LA10_1>=23 && LA10_1<=24)) ) { | ||
1133 | alt10=2; | ||
1134 | } | ||
1135 | else if ( (LA10_1==21) ) { | ||
1136 | alt10=1; | ||
1137 | } | ||
1138 | else { | ||
1139 | NoViableAltException nvae = | ||
1140 | new NoViableAltException("", 10, 1, input); | ||
1141 | |||
1142 | throw nvae; | ||
1143 | } | ||
1144 | } | ||
1145 | else { | ||
1146 | NoViableAltException nvae = | ||
1147 | new NoViableAltException("", 10, 0, input); | ||
1148 | |||
1149 | throw nvae; | ||
1150 | } | ||
1151 | switch (alt10) { | ||
1152 | case 1 : | ||
1153 | // InternalCftLanguage.g:444:3: this_BasicEventDefinition_0= ruleBasicEventDefinition | ||
1154 | { | ||
1155 | |||
1156 | newCompositeNode(grammarAccess.getEventDefinitionAccess().getBasicEventDefinitionParserRuleCall_0()); | ||
1157 | |||
1158 | pushFollow(FOLLOW_2); | ||
1159 | this_BasicEventDefinition_0=ruleBasicEventDefinition(); | ||
1160 | |||
1161 | state._fsp--; | ||
1162 | |||
1163 | |||
1164 | current = this_BasicEventDefinition_0; | ||
1165 | afterParserOrEnumRuleCall(); | ||
1166 | |||
1167 | |||
1168 | } | ||
1169 | break; | ||
1170 | case 2 : | ||
1171 | // InternalCftLanguage.g:453:3: this_GateDefinition_1= ruleGateDefinition | ||
1172 | { | ||
1173 | |||
1174 | newCompositeNode(grammarAccess.getEventDefinitionAccess().getGateDefinitionParserRuleCall_1()); | ||
1175 | |||
1176 | pushFollow(FOLLOW_2); | ||
1177 | this_GateDefinition_1=ruleGateDefinition(); | ||
1178 | |||
1179 | state._fsp--; | ||
1180 | |||
1181 | |||
1182 | current = this_GateDefinition_1; | ||
1183 | afterParserOrEnumRuleCall(); | ||
1184 | |||
1185 | |||
1186 | } | ||
1187 | break; | ||
1188 | |||
1189 | } | ||
1190 | |||
1191 | |||
1192 | } | ||
1193 | |||
1194 | |||
1195 | leaveRule(); | ||
1196 | |||
1197 | } | ||
1198 | |||
1199 | catch (RecognitionException re) { | ||
1200 | recover(input,re); | ||
1201 | appendSkippedTokens(); | ||
1202 | } | ||
1203 | finally { | ||
1204 | } | ||
1205 | return current; | ||
1206 | } | ||
1207 | // $ANTLR end "ruleEventDefinition" | ||
1208 | |||
1209 | |||
1210 | // $ANTLR start "entryRuleBasicEventDefinition" | ||
1211 | // InternalCftLanguage.g:465:1: entryRuleBasicEventDefinition returns [EObject current=null] : iv_ruleBasicEventDefinition= ruleBasicEventDefinition EOF ; | ||
1212 | public final EObject entryRuleBasicEventDefinition() throws RecognitionException { | ||
1213 | EObject current = null; | ||
1214 | |||
1215 | EObject iv_ruleBasicEventDefinition = null; | ||
1216 | |||
1217 | |||
1218 | try { | ||
1219 | // InternalCftLanguage.g:465:61: (iv_ruleBasicEventDefinition= ruleBasicEventDefinition EOF ) | ||
1220 | // InternalCftLanguage.g:466:2: iv_ruleBasicEventDefinition= ruleBasicEventDefinition EOF | ||
1221 | { | ||
1222 | newCompositeNode(grammarAccess.getBasicEventDefinitionRule()); | ||
1223 | pushFollow(FOLLOW_1); | ||
1224 | iv_ruleBasicEventDefinition=ruleBasicEventDefinition(); | ||
1225 | |||
1226 | state._fsp--; | ||
1227 | |||
1228 | current =iv_ruleBasicEventDefinition; | ||
1229 | match(input,EOF,FOLLOW_2); | ||
1230 | |||
1231 | } | ||
1232 | |||
1233 | } | ||
1234 | |||
1235 | catch (RecognitionException re) { | ||
1236 | recover(input,re); | ||
1237 | appendSkippedTokens(); | ||
1238 | } | ||
1239 | finally { | ||
1240 | } | ||
1241 | return current; | ||
1242 | } | ||
1243 | // $ANTLR end "entryRuleBasicEventDefinition" | ||
1244 | |||
1245 | |||
1246 | // $ANTLR start "ruleBasicEventDefinition" | ||
1247 | // InternalCftLanguage.g:472:1: ruleBasicEventDefinition returns [EObject current=null] : ( ( (lv_name_0_0= RULE_ID ) ) otherlv_1= 'lambda' otherlv_2= '=' ( (lv_rate_3_0= RULE_DOULBE ) ) ) ; | ||
1248 | public final EObject ruleBasicEventDefinition() throws RecognitionException { | ||
1249 | EObject current = null; | ||
1250 | |||
1251 | Token lv_name_0_0=null; | ||
1252 | Token otherlv_1=null; | ||
1253 | Token otherlv_2=null; | ||
1254 | Token lv_rate_3_0=null; | ||
1255 | |||
1256 | |||
1257 | enterRule(); | ||
1258 | |||
1259 | try { | ||
1260 | // InternalCftLanguage.g:478:2: ( ( ( (lv_name_0_0= RULE_ID ) ) otherlv_1= 'lambda' otherlv_2= '=' ( (lv_rate_3_0= RULE_DOULBE ) ) ) ) | ||
1261 | // InternalCftLanguage.g:479:2: ( ( (lv_name_0_0= RULE_ID ) ) otherlv_1= 'lambda' otherlv_2= '=' ( (lv_rate_3_0= RULE_DOULBE ) ) ) | ||
1262 | { | ||
1263 | // InternalCftLanguage.g:479:2: ( ( (lv_name_0_0= RULE_ID ) ) otherlv_1= 'lambda' otherlv_2= '=' ( (lv_rate_3_0= RULE_DOULBE ) ) ) | ||
1264 | // InternalCftLanguage.g:480:3: ( (lv_name_0_0= RULE_ID ) ) otherlv_1= 'lambda' otherlv_2= '=' ( (lv_rate_3_0= RULE_DOULBE ) ) | ||
1265 | { | ||
1266 | // InternalCftLanguage.g:480:3: ( (lv_name_0_0= RULE_ID ) ) | ||
1267 | // InternalCftLanguage.g:481:4: (lv_name_0_0= RULE_ID ) | ||
1268 | { | ||
1269 | // InternalCftLanguage.g:481:4: (lv_name_0_0= RULE_ID ) | ||
1270 | // InternalCftLanguage.g:482:5: lv_name_0_0= RULE_ID | ||
1271 | { | ||
1272 | lv_name_0_0=(Token)match(input,RULE_ID,FOLLOW_14); | ||
1273 | |||
1274 | newLeafNode(lv_name_0_0, grammarAccess.getBasicEventDefinitionAccess().getNameIDTerminalRuleCall_0_0()); | ||
1275 | |||
1276 | |||
1277 | if (current==null) { | ||
1278 | current = createModelElement(grammarAccess.getBasicEventDefinitionRule()); | ||
1279 | } | ||
1280 | setWithLastConsumed( | ||
1281 | current, | ||
1282 | "name", | ||
1283 | lv_name_0_0, | ||
1284 | "org.eclipse.xtext.common.Terminals.ID"); | ||
1285 | |||
1286 | |||
1287 | } | ||
1288 | |||
1289 | |||
1290 | } | ||
1291 | |||
1292 | otherlv_1=(Token)match(input,21,FOLLOW_15); | ||
1293 | |||
1294 | newLeafNode(otherlv_1, grammarAccess.getBasicEventDefinitionAccess().getLambdaKeyword_1()); | ||
1295 | |||
1296 | otherlv_2=(Token)match(input,22,FOLLOW_16); | ||
1297 | |||
1298 | newLeafNode(otherlv_2, grammarAccess.getBasicEventDefinitionAccess().getEqualsSignKeyword_2()); | ||
1299 | |||
1300 | // InternalCftLanguage.g:506:3: ( (lv_rate_3_0= RULE_DOULBE ) ) | ||
1301 | // InternalCftLanguage.g:507:4: (lv_rate_3_0= RULE_DOULBE ) | ||
1302 | { | ||
1303 | // InternalCftLanguage.g:507:4: (lv_rate_3_0= RULE_DOULBE ) | ||
1304 | // InternalCftLanguage.g:508:5: lv_rate_3_0= RULE_DOULBE | ||
1305 | { | ||
1306 | lv_rate_3_0=(Token)match(input,RULE_DOULBE,FOLLOW_2); | ||
1307 | |||
1308 | newLeafNode(lv_rate_3_0, grammarAccess.getBasicEventDefinitionAccess().getRateDOULBETerminalRuleCall_3_0()); | ||
1309 | |||
1310 | |||
1311 | if (current==null) { | ||
1312 | current = createModelElement(grammarAccess.getBasicEventDefinitionRule()); | ||
1313 | } | ||
1314 | setWithLastConsumed( | ||
1315 | current, | ||
1316 | "rate", | ||
1317 | lv_rate_3_0, | ||
1318 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.DOULBE"); | ||
1319 | |||
1320 | |||
1321 | } | ||
1322 | |||
1323 | |||
1324 | } | ||
1325 | |||
1326 | |||
1327 | } | ||
1328 | |||
1329 | |||
1330 | } | ||
1331 | |||
1332 | |||
1333 | leaveRule(); | ||
1334 | |||
1335 | } | ||
1336 | |||
1337 | catch (RecognitionException re) { | ||
1338 | recover(input,re); | ||
1339 | appendSkippedTokens(); | ||
1340 | } | ||
1341 | finally { | ||
1342 | } | ||
1343 | return current; | ||
1344 | } | ||
1345 | // $ANTLR end "ruleBasicEventDefinition" | ||
1346 | |||
1347 | |||
1348 | // $ANTLR start "entryRuleGateDefinition" | ||
1349 | // InternalCftLanguage.g:528:1: entryRuleGateDefinition returns [EObject current=null] : iv_ruleGateDefinition= ruleGateDefinition EOF ; | ||
1350 | public final EObject entryRuleGateDefinition() throws RecognitionException { | ||
1351 | EObject current = null; | ||
1352 | |||
1353 | EObject iv_ruleGateDefinition = null; | ||
1354 | |||
1355 | |||
1356 | try { | ||
1357 | // InternalCftLanguage.g:528:55: (iv_ruleGateDefinition= ruleGateDefinition EOF ) | ||
1358 | // InternalCftLanguage.g:529:2: iv_ruleGateDefinition= ruleGateDefinition EOF | ||
1359 | { | ||
1360 | newCompositeNode(grammarAccess.getGateDefinitionRule()); | ||
1361 | pushFollow(FOLLOW_1); | ||
1362 | iv_ruleGateDefinition=ruleGateDefinition(); | ||
1363 | |||
1364 | state._fsp--; | ||
1365 | |||
1366 | current =iv_ruleGateDefinition; | ||
1367 | match(input,EOF,FOLLOW_2); | ||
1368 | |||
1369 | } | ||
1370 | |||
1371 | } | ||
1372 | |||
1373 | catch (RecognitionException re) { | ||
1374 | recover(input,re); | ||
1375 | appendSkippedTokens(); | ||
1376 | } | ||
1377 | finally { | ||
1378 | } | ||
1379 | return current; | ||
1380 | } | ||
1381 | // $ANTLR end "entryRuleGateDefinition" | ||
1382 | |||
1383 | |||
1384 | // $ANTLR start "ruleGateDefinition" | ||
1385 | // InternalCftLanguage.g:535:1: ruleGateDefinition returns [EObject current=null] : (this_AndGate_0= ruleAndGate | this_OrGate_1= ruleOrGate ) ; | ||
1386 | public final EObject ruleGateDefinition() throws RecognitionException { | ||
1387 | EObject current = null; | ||
1388 | |||
1389 | EObject this_AndGate_0 = null; | ||
1390 | |||
1391 | EObject this_OrGate_1 = null; | ||
1392 | |||
1393 | |||
1394 | |||
1395 | enterRule(); | ||
1396 | |||
1397 | try { | ||
1398 | // InternalCftLanguage.g:541:2: ( (this_AndGate_0= ruleAndGate | this_OrGate_1= ruleOrGate ) ) | ||
1399 | // InternalCftLanguage.g:542:2: (this_AndGate_0= ruleAndGate | this_OrGate_1= ruleOrGate ) | ||
1400 | { | ||
1401 | // InternalCftLanguage.g:542:2: (this_AndGate_0= ruleAndGate | this_OrGate_1= ruleOrGate ) | ||
1402 | int alt11=2; | ||
1403 | int LA11_0 = input.LA(1); | ||
1404 | |||
1405 | if ( (LA11_0==RULE_ID) ) { | ||
1406 | int LA11_1 = input.LA(2); | ||
1407 | |||
1408 | if ( (LA11_1==24) ) { | ||
1409 | alt11=2; | ||
1410 | } | ||
1411 | else if ( (LA11_1==23) ) { | ||
1412 | alt11=1; | ||
1413 | } | ||
1414 | else { | ||
1415 | NoViableAltException nvae = | ||
1416 | new NoViableAltException("", 11, 1, input); | ||
1417 | |||
1418 | throw nvae; | ||
1419 | } | ||
1420 | } | ||
1421 | else { | ||
1422 | NoViableAltException nvae = | ||
1423 | new NoViableAltException("", 11, 0, input); | ||
1424 | |||
1425 | throw nvae; | ||
1426 | } | ||
1427 | switch (alt11) { | ||
1428 | case 1 : | ||
1429 | // InternalCftLanguage.g:543:3: this_AndGate_0= ruleAndGate | ||
1430 | { | ||
1431 | |||
1432 | newCompositeNode(grammarAccess.getGateDefinitionAccess().getAndGateParserRuleCall_0()); | ||
1433 | |||
1434 | pushFollow(FOLLOW_2); | ||
1435 | this_AndGate_0=ruleAndGate(); | ||
1436 | |||
1437 | state._fsp--; | ||
1438 | |||
1439 | |||
1440 | current = this_AndGate_0; | ||
1441 | afterParserOrEnumRuleCall(); | ||
1442 | |||
1443 | |||
1444 | } | ||
1445 | break; | ||
1446 | case 2 : | ||
1447 | // InternalCftLanguage.g:552:3: this_OrGate_1= ruleOrGate | ||
1448 | { | ||
1449 | |||
1450 | newCompositeNode(grammarAccess.getGateDefinitionAccess().getOrGateParserRuleCall_1()); | ||
1451 | |||
1452 | pushFollow(FOLLOW_2); | ||
1453 | this_OrGate_1=ruleOrGate(); | ||
1454 | |||
1455 | state._fsp--; | ||
1456 | |||
1457 | |||
1458 | current = this_OrGate_1; | ||
1459 | afterParserOrEnumRuleCall(); | ||
1460 | |||
1461 | |||
1462 | } | ||
1463 | break; | ||
1464 | |||
1465 | } | ||
1466 | |||
1467 | |||
1468 | } | ||
1469 | |||
1470 | |||
1471 | leaveRule(); | ||
1472 | |||
1473 | } | ||
1474 | |||
1475 | catch (RecognitionException re) { | ||
1476 | recover(input,re); | ||
1477 | appendSkippedTokens(); | ||
1478 | } | ||
1479 | finally { | ||
1480 | } | ||
1481 | return current; | ||
1482 | } | ||
1483 | // $ANTLR end "ruleGateDefinition" | ||
1484 | |||
1485 | |||
1486 | // $ANTLR start "entryRuleAndGate" | ||
1487 | // InternalCftLanguage.g:564:1: entryRuleAndGate returns [EObject current=null] : iv_ruleAndGate= ruleAndGate EOF ; | ||
1488 | public final EObject entryRuleAndGate() throws RecognitionException { | ||
1489 | EObject current = null; | ||
1490 | |||
1491 | EObject iv_ruleAndGate = null; | ||
1492 | |||
1493 | |||
1494 | try { | ||
1495 | // InternalCftLanguage.g:564:48: (iv_ruleAndGate= ruleAndGate EOF ) | ||
1496 | // InternalCftLanguage.g:565:2: iv_ruleAndGate= ruleAndGate EOF | ||
1497 | { | ||
1498 | newCompositeNode(grammarAccess.getAndGateRule()); | ||
1499 | pushFollow(FOLLOW_1); | ||
1500 | iv_ruleAndGate=ruleAndGate(); | ||
1501 | |||
1502 | state._fsp--; | ||
1503 | |||
1504 | current =iv_ruleAndGate; | ||
1505 | match(input,EOF,FOLLOW_2); | ||
1506 | |||
1507 | } | ||
1508 | |||
1509 | } | ||
1510 | |||
1511 | catch (RecognitionException re) { | ||
1512 | recover(input,re); | ||
1513 | appendSkippedTokens(); | ||
1514 | } | ||
1515 | finally { | ||
1516 | } | ||
1517 | return current; | ||
1518 | } | ||
1519 | // $ANTLR end "entryRuleAndGate" | ||
1520 | |||
1521 | |||
1522 | // $ANTLR start "ruleAndGate" | ||
1523 | // InternalCftLanguage.g:571:1: ruleAndGate returns [EObject current=null] : ( ( (lv_name_0_0= RULE_ID ) ) otherlv_1= 'and' ( (otherlv_2= RULE_ID ) )* ) ; | ||
1524 | public final EObject ruleAndGate() throws RecognitionException { | ||
1525 | EObject current = null; | ||
1526 | |||
1527 | Token lv_name_0_0=null; | ||
1528 | Token otherlv_1=null; | ||
1529 | Token otherlv_2=null; | ||
1530 | |||
1531 | |||
1532 | enterRule(); | ||
1533 | |||
1534 | try { | ||
1535 | // InternalCftLanguage.g:577:2: ( ( ( (lv_name_0_0= RULE_ID ) ) otherlv_1= 'and' ( (otherlv_2= RULE_ID ) )* ) ) | ||
1536 | // InternalCftLanguage.g:578:2: ( ( (lv_name_0_0= RULE_ID ) ) otherlv_1= 'and' ( (otherlv_2= RULE_ID ) )* ) | ||
1537 | { | ||
1538 | // InternalCftLanguage.g:578:2: ( ( (lv_name_0_0= RULE_ID ) ) otherlv_1= 'and' ( (otherlv_2= RULE_ID ) )* ) | ||
1539 | // InternalCftLanguage.g:579:3: ( (lv_name_0_0= RULE_ID ) ) otherlv_1= 'and' ( (otherlv_2= RULE_ID ) )* | ||
1540 | { | ||
1541 | // InternalCftLanguage.g:579:3: ( (lv_name_0_0= RULE_ID ) ) | ||
1542 | // InternalCftLanguage.g:580:4: (lv_name_0_0= RULE_ID ) | ||
1543 | { | ||
1544 | // InternalCftLanguage.g:580:4: (lv_name_0_0= RULE_ID ) | ||
1545 | // InternalCftLanguage.g:581:5: lv_name_0_0= RULE_ID | ||
1546 | { | ||
1547 | lv_name_0_0=(Token)match(input,RULE_ID,FOLLOW_17); | ||
1548 | |||
1549 | newLeafNode(lv_name_0_0, grammarAccess.getAndGateAccess().getNameIDTerminalRuleCall_0_0()); | ||
1550 | |||
1551 | |||
1552 | if (current==null) { | ||
1553 | current = createModelElement(grammarAccess.getAndGateRule()); | ||
1554 | } | ||
1555 | setWithLastConsumed( | ||
1556 | current, | ||
1557 | "name", | ||
1558 | lv_name_0_0, | ||
1559 | "org.eclipse.xtext.common.Terminals.ID"); | ||
1560 | |||
1561 | |||
1562 | } | ||
1563 | |||
1564 | |||
1565 | } | ||
1566 | |||
1567 | otherlv_1=(Token)match(input,23,FOLLOW_18); | ||
1568 | |||
1569 | newLeafNode(otherlv_1, grammarAccess.getAndGateAccess().getAndKeyword_1()); | ||
1570 | |||
1571 | // InternalCftLanguage.g:601:3: ( (otherlv_2= RULE_ID ) )* | ||
1572 | loop12: | ||
1573 | do { | ||
1574 | int alt12=2; | ||
1575 | int LA12_0 = input.LA(1); | ||
1576 | |||
1577 | if ( (LA12_0==RULE_ID) ) { | ||
1578 | alt12=1; | ||
1579 | } | ||
1580 | |||
1581 | |||
1582 | switch (alt12) { | ||
1583 | case 1 : | ||
1584 | // InternalCftLanguage.g:602:4: (otherlv_2= RULE_ID ) | ||
1585 | { | ||
1586 | // InternalCftLanguage.g:602:4: (otherlv_2= RULE_ID ) | ||
1587 | // InternalCftLanguage.g:603:5: otherlv_2= RULE_ID | ||
1588 | { | ||
1589 | |||
1590 | if (current==null) { | ||
1591 | current = createModelElement(grammarAccess.getAndGateRule()); | ||
1592 | } | ||
1593 | |||
1594 | otherlv_2=(Token)match(input,RULE_ID,FOLLOW_18); | ||
1595 | |||
1596 | newLeafNode(otherlv_2, grammarAccess.getAndGateAccess().getInputEventsEventDeclarationCrossReference_2_0()); | ||
1597 | |||
1598 | |||
1599 | } | ||
1600 | |||
1601 | |||
1602 | } | ||
1603 | break; | ||
1604 | |||
1605 | default : | ||
1606 | break loop12; | ||
1607 | } | ||
1608 | } while (true); | ||
1609 | |||
1610 | |||
1611 | } | ||
1612 | |||
1613 | |||
1614 | } | ||
1615 | |||
1616 | |||
1617 | leaveRule(); | ||
1618 | |||
1619 | } | ||
1620 | |||
1621 | catch (RecognitionException re) { | ||
1622 | recover(input,re); | ||
1623 | appendSkippedTokens(); | ||
1624 | } | ||
1625 | finally { | ||
1626 | } | ||
1627 | return current; | ||
1628 | } | ||
1629 | // $ANTLR end "ruleAndGate" | ||
1630 | |||
1631 | |||
1632 | // $ANTLR start "entryRuleOrGate" | ||
1633 | // InternalCftLanguage.g:618:1: entryRuleOrGate returns [EObject current=null] : iv_ruleOrGate= ruleOrGate EOF ; | ||
1634 | public final EObject entryRuleOrGate() throws RecognitionException { | ||
1635 | EObject current = null; | ||
1636 | |||
1637 | EObject iv_ruleOrGate = null; | ||
1638 | |||
1639 | |||
1640 | try { | ||
1641 | // InternalCftLanguage.g:618:47: (iv_ruleOrGate= ruleOrGate EOF ) | ||
1642 | // InternalCftLanguage.g:619:2: iv_ruleOrGate= ruleOrGate EOF | ||
1643 | { | ||
1644 | newCompositeNode(grammarAccess.getOrGateRule()); | ||
1645 | pushFollow(FOLLOW_1); | ||
1646 | iv_ruleOrGate=ruleOrGate(); | ||
1647 | |||
1648 | state._fsp--; | ||
1649 | |||
1650 | current =iv_ruleOrGate; | ||
1651 | match(input,EOF,FOLLOW_2); | ||
1652 | |||
1653 | } | ||
1654 | |||
1655 | } | ||
1656 | |||
1657 | catch (RecognitionException re) { | ||
1658 | recover(input,re); | ||
1659 | appendSkippedTokens(); | ||
1660 | } | ||
1661 | finally { | ||
1662 | } | ||
1663 | return current; | ||
1664 | } | ||
1665 | // $ANTLR end "entryRuleOrGate" | ||
1666 | |||
1667 | |||
1668 | // $ANTLR start "ruleOrGate" | ||
1669 | // InternalCftLanguage.g:625:1: ruleOrGate returns [EObject current=null] : ( ( (lv_name_0_0= RULE_ID ) ) otherlv_1= 'or' ( (otherlv_2= RULE_ID ) )* ) ; | ||
1670 | public final EObject ruleOrGate() throws RecognitionException { | ||
1671 | EObject current = null; | ||
1672 | |||
1673 | Token lv_name_0_0=null; | ||
1674 | Token otherlv_1=null; | ||
1675 | Token otherlv_2=null; | ||
1676 | |||
1677 | |||
1678 | enterRule(); | ||
1679 | |||
1680 | try { | ||
1681 | // InternalCftLanguage.g:631:2: ( ( ( (lv_name_0_0= RULE_ID ) ) otherlv_1= 'or' ( (otherlv_2= RULE_ID ) )* ) ) | ||
1682 | // InternalCftLanguage.g:632:2: ( ( (lv_name_0_0= RULE_ID ) ) otherlv_1= 'or' ( (otherlv_2= RULE_ID ) )* ) | ||
1683 | { | ||
1684 | // InternalCftLanguage.g:632:2: ( ( (lv_name_0_0= RULE_ID ) ) otherlv_1= 'or' ( (otherlv_2= RULE_ID ) )* ) | ||
1685 | // InternalCftLanguage.g:633:3: ( (lv_name_0_0= RULE_ID ) ) otherlv_1= 'or' ( (otherlv_2= RULE_ID ) )* | ||
1686 | { | ||
1687 | // InternalCftLanguage.g:633:3: ( (lv_name_0_0= RULE_ID ) ) | ||
1688 | // InternalCftLanguage.g:634:4: (lv_name_0_0= RULE_ID ) | ||
1689 | { | ||
1690 | // InternalCftLanguage.g:634:4: (lv_name_0_0= RULE_ID ) | ||
1691 | // InternalCftLanguage.g:635:5: lv_name_0_0= RULE_ID | ||
1692 | { | ||
1693 | lv_name_0_0=(Token)match(input,RULE_ID,FOLLOW_19); | ||
1694 | |||
1695 | newLeafNode(lv_name_0_0, grammarAccess.getOrGateAccess().getNameIDTerminalRuleCall_0_0()); | ||
1696 | |||
1697 | |||
1698 | if (current==null) { | ||
1699 | current = createModelElement(grammarAccess.getOrGateRule()); | ||
1700 | } | ||
1701 | setWithLastConsumed( | ||
1702 | current, | ||
1703 | "name", | ||
1704 | lv_name_0_0, | ||
1705 | "org.eclipse.xtext.common.Terminals.ID"); | ||
1706 | |||
1707 | |||
1708 | } | ||
1709 | |||
1710 | |||
1711 | } | ||
1712 | |||
1713 | otherlv_1=(Token)match(input,24,FOLLOW_18); | ||
1714 | |||
1715 | newLeafNode(otherlv_1, grammarAccess.getOrGateAccess().getOrKeyword_1()); | ||
1716 | |||
1717 | // InternalCftLanguage.g:655:3: ( (otherlv_2= RULE_ID ) )* | ||
1718 | loop13: | ||
1719 | do { | ||
1720 | int alt13=2; | ||
1721 | int LA13_0 = input.LA(1); | ||
1722 | |||
1723 | if ( (LA13_0==RULE_ID) ) { | ||
1724 | alt13=1; | ||
1725 | } | ||
1726 | |||
1727 | |||
1728 | switch (alt13) { | ||
1729 | case 1 : | ||
1730 | // InternalCftLanguage.g:656:4: (otherlv_2= RULE_ID ) | ||
1731 | { | ||
1732 | // InternalCftLanguage.g:656:4: (otherlv_2= RULE_ID ) | ||
1733 | // InternalCftLanguage.g:657:5: otherlv_2= RULE_ID | ||
1734 | { | ||
1735 | |||
1736 | if (current==null) { | ||
1737 | current = createModelElement(grammarAccess.getOrGateRule()); | ||
1738 | } | ||
1739 | |||
1740 | otherlv_2=(Token)match(input,RULE_ID,FOLLOW_18); | ||
1741 | |||
1742 | newLeafNode(otherlv_2, grammarAccess.getOrGateAccess().getInputEventsEventDeclarationCrossReference_2_0()); | ||
1743 | |||
1744 | |||
1745 | } | ||
1746 | |||
1747 | |||
1748 | } | ||
1749 | break; | ||
1750 | |||
1751 | default : | ||
1752 | break loop13; | ||
1753 | } | ||
1754 | } while (true); | ||
1755 | |||
1756 | |||
1757 | } | ||
1758 | |||
1759 | |||
1760 | } | ||
1761 | |||
1762 | |||
1763 | leaveRule(); | ||
1764 | |||
1765 | } | ||
1766 | |||
1767 | catch (RecognitionException re) { | ||
1768 | recover(input,re); | ||
1769 | appendSkippedTokens(); | ||
1770 | } | ||
1771 | finally { | ||
1772 | } | ||
1773 | return current; | ||
1774 | } | ||
1775 | // $ANTLR end "ruleOrGate" | ||
1776 | |||
1777 | |||
1778 | // $ANTLR start "entryRuleTransformationDefinition" | ||
1779 | // InternalCftLanguage.g:672:1: entryRuleTransformationDefinition returns [EObject current=null] : iv_ruleTransformationDefinition= ruleTransformationDefinition EOF ; | ||
1780 | public final EObject entryRuleTransformationDefinition() throws RecognitionException { | ||
1781 | EObject current = null; | ||
1782 | |||
1783 | EObject iv_ruleTransformationDefinition = null; | ||
1784 | |||
1785 | |||
1786 | try { | ||
1787 | // InternalCftLanguage.g:672:65: (iv_ruleTransformationDefinition= ruleTransformationDefinition EOF ) | ||
1788 | // InternalCftLanguage.g:673:2: iv_ruleTransformationDefinition= ruleTransformationDefinition EOF | ||
1789 | { | ||
1790 | newCompositeNode(grammarAccess.getTransformationDefinitionRule()); | ||
1791 | pushFollow(FOLLOW_1); | ||
1792 | iv_ruleTransformationDefinition=ruleTransformationDefinition(); | ||
1793 | |||
1794 | state._fsp--; | ||
1795 | |||
1796 | current =iv_ruleTransformationDefinition; | ||
1797 | match(input,EOF,FOLLOW_2); | ||
1798 | |||
1799 | } | ||
1800 | |||
1801 | } | ||
1802 | |||
1803 | catch (RecognitionException re) { | ||
1804 | recover(input,re); | ||
1805 | appendSkippedTokens(); | ||
1806 | } | ||
1807 | finally { | ||
1808 | } | ||
1809 | return current; | ||
1810 | } | ||
1811 | // $ANTLR end "entryRuleTransformationDefinition" | ||
1812 | |||
1813 | |||
1814 | // $ANTLR start "ruleTransformationDefinition" | ||
1815 | // InternalCftLanguage.g:679:1: ruleTransformationDefinition returns [EObject current=null] : (otherlv_0= 'transformation' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= '{' ( (lv_mappingDefinitions_3_0= ruleMappingDefinition ) )* otherlv_4= '}' ) ; | ||
1816 | public final EObject ruleTransformationDefinition() throws RecognitionException { | ||
1817 | EObject current = null; | ||
1818 | |||
1819 | Token otherlv_0=null; | ||
1820 | Token lv_name_1_0=null; | ||
1821 | Token otherlv_2=null; | ||
1822 | Token otherlv_4=null; | ||
1823 | EObject lv_mappingDefinitions_3_0 = null; | ||
1824 | |||
1825 | |||
1826 | |||
1827 | enterRule(); | ||
1828 | |||
1829 | try { | ||
1830 | // InternalCftLanguage.g:685:2: ( (otherlv_0= 'transformation' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= '{' ( (lv_mappingDefinitions_3_0= ruleMappingDefinition ) )* otherlv_4= '}' ) ) | ||
1831 | // InternalCftLanguage.g:686:2: (otherlv_0= 'transformation' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= '{' ( (lv_mappingDefinitions_3_0= ruleMappingDefinition ) )* otherlv_4= '}' ) | ||
1832 | { | ||
1833 | // InternalCftLanguage.g:686:2: (otherlv_0= 'transformation' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= '{' ( (lv_mappingDefinitions_3_0= ruleMappingDefinition ) )* otherlv_4= '}' ) | ||
1834 | // InternalCftLanguage.g:687:3: otherlv_0= 'transformation' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= '{' ( (lv_mappingDefinitions_3_0= ruleMappingDefinition ) )* otherlv_4= '}' | ||
1835 | { | ||
1836 | otherlv_0=(Token)match(input,25,FOLLOW_3); | ||
1837 | |||
1838 | newLeafNode(otherlv_0, grammarAccess.getTransformationDefinitionAccess().getTransformationKeyword_0()); | ||
1839 | |||
1840 | // InternalCftLanguage.g:691:3: ( (lv_name_1_0= RULE_ID ) ) | ||
1841 | // InternalCftLanguage.g:692:4: (lv_name_1_0= RULE_ID ) | ||
1842 | { | ||
1843 | // InternalCftLanguage.g:692:4: (lv_name_1_0= RULE_ID ) | ||
1844 | // InternalCftLanguage.g:693:5: lv_name_1_0= RULE_ID | ||
1845 | { | ||
1846 | lv_name_1_0=(Token)match(input,RULE_ID,FOLLOW_8); | ||
1847 | |||
1848 | newLeafNode(lv_name_1_0, grammarAccess.getTransformationDefinitionAccess().getNameIDTerminalRuleCall_1_0()); | ||
1849 | |||
1850 | |||
1851 | if (current==null) { | ||
1852 | current = createModelElement(grammarAccess.getTransformationDefinitionRule()); | ||
1853 | } | ||
1854 | setWithLastConsumed( | ||
1855 | current, | ||
1856 | "name", | ||
1857 | lv_name_1_0, | ||
1858 | "org.eclipse.xtext.common.Terminals.ID"); | ||
1859 | |||
1860 | |||
1861 | } | ||
1862 | |||
1863 | |||
1864 | } | ||
1865 | |||
1866 | otherlv_2=(Token)match(input,16,FOLLOW_20); | ||
1867 | |||
1868 | newLeafNode(otherlv_2, grammarAccess.getTransformationDefinitionAccess().getLeftCurlyBracketKeyword_2()); | ||
1869 | |||
1870 | // InternalCftLanguage.g:713:3: ( (lv_mappingDefinitions_3_0= ruleMappingDefinition ) )* | ||
1871 | loop14: | ||
1872 | do { | ||
1873 | int alt14=2; | ||
1874 | int LA14_0 = input.LA(1); | ||
1875 | |||
1876 | if ( ((LA14_0>=26 && LA14_0<=27)) ) { | ||
1877 | alt14=1; | ||
1878 | } | ||
1879 | |||
1880 | |||
1881 | switch (alt14) { | ||
1882 | case 1 : | ||
1883 | // InternalCftLanguage.g:714:4: (lv_mappingDefinitions_3_0= ruleMappingDefinition ) | ||
1884 | { | ||
1885 | // InternalCftLanguage.g:714:4: (lv_mappingDefinitions_3_0= ruleMappingDefinition ) | ||
1886 | // InternalCftLanguage.g:715:5: lv_mappingDefinitions_3_0= ruleMappingDefinition | ||
1887 | { | ||
1888 | |||
1889 | newCompositeNode(grammarAccess.getTransformationDefinitionAccess().getMappingDefinitionsMappingDefinitionParserRuleCall_3_0()); | ||
1890 | |||
1891 | pushFollow(FOLLOW_20); | ||
1892 | lv_mappingDefinitions_3_0=ruleMappingDefinition(); | ||
1893 | |||
1894 | state._fsp--; | ||
1895 | |||
1896 | |||
1897 | if (current==null) { | ||
1898 | current = createModelElementForParent(grammarAccess.getTransformationDefinitionRule()); | ||
1899 | } | ||
1900 | add( | ||
1901 | current, | ||
1902 | "mappingDefinitions", | ||
1903 | lv_mappingDefinitions_3_0, | ||
1904 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.MappingDefinition"); | ||
1905 | afterParserOrEnumRuleCall(); | ||
1906 | |||
1907 | |||
1908 | } | ||
1909 | |||
1910 | |||
1911 | } | ||
1912 | break; | ||
1913 | |||
1914 | default : | ||
1915 | break loop14; | ||
1916 | } | ||
1917 | } while (true); | ||
1918 | |||
1919 | otherlv_4=(Token)match(input,19,FOLLOW_2); | ||
1920 | |||
1921 | newLeafNode(otherlv_4, grammarAccess.getTransformationDefinitionAccess().getRightCurlyBracketKeyword_4()); | ||
1922 | |||
1923 | |||
1924 | } | ||
1925 | |||
1926 | |||
1927 | } | ||
1928 | |||
1929 | |||
1930 | leaveRule(); | ||
1931 | |||
1932 | } | ||
1933 | |||
1934 | catch (RecognitionException re) { | ||
1935 | recover(input,re); | ||
1936 | appendSkippedTokens(); | ||
1937 | } | ||
1938 | finally { | ||
1939 | } | ||
1940 | return current; | ||
1941 | } | ||
1942 | // $ANTLR end "ruleTransformationDefinition" | ||
1943 | |||
1944 | |||
1945 | // $ANTLR start "entryRuleMappingDefinition" | ||
1946 | // InternalCftLanguage.g:740:1: entryRuleMappingDefinition returns [EObject current=null] : iv_ruleMappingDefinition= ruleMappingDefinition EOF ; | ||
1947 | public final EObject entryRuleMappingDefinition() throws RecognitionException { | ||
1948 | EObject current = null; | ||
1949 | |||
1950 | EObject iv_ruleMappingDefinition = null; | ||
1951 | |||
1952 | |||
1953 | try { | ||
1954 | // InternalCftLanguage.g:740:58: (iv_ruleMappingDefinition= ruleMappingDefinition EOF ) | ||
1955 | // InternalCftLanguage.g:741:2: iv_ruleMappingDefinition= ruleMappingDefinition EOF | ||
1956 | { | ||
1957 | newCompositeNode(grammarAccess.getMappingDefinitionRule()); | ||
1958 | pushFollow(FOLLOW_1); | ||
1959 | iv_ruleMappingDefinition=ruleMappingDefinition(); | ||
1960 | |||
1961 | state._fsp--; | ||
1962 | |||
1963 | current =iv_ruleMappingDefinition; | ||
1964 | match(input,EOF,FOLLOW_2); | ||
1965 | |||
1966 | } | ||
1967 | |||
1968 | } | ||
1969 | |||
1970 | catch (RecognitionException re) { | ||
1971 | recover(input,re); | ||
1972 | appendSkippedTokens(); | ||
1973 | } | ||
1974 | finally { | ||
1975 | } | ||
1976 | return current; | ||
1977 | } | ||
1978 | // $ANTLR end "entryRuleMappingDefinition" | ||
1979 | |||
1980 | |||
1981 | // $ANTLR start "ruleMappingDefinition" | ||
1982 | // InternalCftLanguage.g:747:1: ruleMappingDefinition returns [EObject current=null] : ( ( (lv_topLevel_0_0= 'toplevel' ) )? otherlv_1= 'mapping' ( ( ruleQualifiedName ) ) otherlv_3= '(' ( (lv_parameters_4_0= ruleMappingParameter ) ) (otherlv_5= ',' ( (lv_parameters_6_0= ruleMappingParameter ) ) )* otherlv_7= ')' ( (lv_componentInstance_8_0= ruleComponentInstance ) )? (otherlv_9= '{' ( ( ( (lv_lookupDefinitions_10_0= ruleLookupDefinition ) ) | ( (lv_assignments_11_0= ruleAssignment ) ) ) otherlv_12= ';' )* otherlv_13= '}' )? ) ; | ||
1983 | public final EObject ruleMappingDefinition() throws RecognitionException { | ||
1984 | EObject current = null; | ||
1985 | |||
1986 | Token lv_topLevel_0_0=null; | ||
1987 | Token otherlv_1=null; | ||
1988 | Token otherlv_3=null; | ||
1989 | Token otherlv_5=null; | ||
1990 | Token otherlv_7=null; | ||
1991 | Token otherlv_9=null; | ||
1992 | Token otherlv_12=null; | ||
1993 | Token otherlv_13=null; | ||
1994 | EObject lv_parameters_4_0 = null; | ||
1995 | |||
1996 | EObject lv_parameters_6_0 = null; | ||
1997 | |||
1998 | EObject lv_componentInstance_8_0 = null; | ||
1999 | |||
2000 | EObject lv_lookupDefinitions_10_0 = null; | ||
2001 | |||
2002 | EObject lv_assignments_11_0 = null; | ||
2003 | |||
2004 | |||
2005 | |||
2006 | enterRule(); | ||
2007 | |||
2008 | try { | ||
2009 | // InternalCftLanguage.g:753:2: ( ( ( (lv_topLevel_0_0= 'toplevel' ) )? otherlv_1= 'mapping' ( ( ruleQualifiedName ) ) otherlv_3= '(' ( (lv_parameters_4_0= ruleMappingParameter ) ) (otherlv_5= ',' ( (lv_parameters_6_0= ruleMappingParameter ) ) )* otherlv_7= ')' ( (lv_componentInstance_8_0= ruleComponentInstance ) )? (otherlv_9= '{' ( ( ( (lv_lookupDefinitions_10_0= ruleLookupDefinition ) ) | ( (lv_assignments_11_0= ruleAssignment ) ) ) otherlv_12= ';' )* otherlv_13= '}' )? ) ) | ||
2010 | // InternalCftLanguage.g:754:2: ( ( (lv_topLevel_0_0= 'toplevel' ) )? otherlv_1= 'mapping' ( ( ruleQualifiedName ) ) otherlv_3= '(' ( (lv_parameters_4_0= ruleMappingParameter ) ) (otherlv_5= ',' ( (lv_parameters_6_0= ruleMappingParameter ) ) )* otherlv_7= ')' ( (lv_componentInstance_8_0= ruleComponentInstance ) )? (otherlv_9= '{' ( ( ( (lv_lookupDefinitions_10_0= ruleLookupDefinition ) ) | ( (lv_assignments_11_0= ruleAssignment ) ) ) otherlv_12= ';' )* otherlv_13= '}' )? ) | ||
2011 | { | ||
2012 | // InternalCftLanguage.g:754:2: ( ( (lv_topLevel_0_0= 'toplevel' ) )? otherlv_1= 'mapping' ( ( ruleQualifiedName ) ) otherlv_3= '(' ( (lv_parameters_4_0= ruleMappingParameter ) ) (otherlv_5= ',' ( (lv_parameters_6_0= ruleMappingParameter ) ) )* otherlv_7= ')' ( (lv_componentInstance_8_0= ruleComponentInstance ) )? (otherlv_9= '{' ( ( ( (lv_lookupDefinitions_10_0= ruleLookupDefinition ) ) | ( (lv_assignments_11_0= ruleAssignment ) ) ) otherlv_12= ';' )* otherlv_13= '}' )? ) | ||
2013 | // InternalCftLanguage.g:755:3: ( (lv_topLevel_0_0= 'toplevel' ) )? otherlv_1= 'mapping' ( ( ruleQualifiedName ) ) otherlv_3= '(' ( (lv_parameters_4_0= ruleMappingParameter ) ) (otherlv_5= ',' ( (lv_parameters_6_0= ruleMappingParameter ) ) )* otherlv_7= ')' ( (lv_componentInstance_8_0= ruleComponentInstance ) )? (otherlv_9= '{' ( ( ( (lv_lookupDefinitions_10_0= ruleLookupDefinition ) ) | ( (lv_assignments_11_0= ruleAssignment ) ) ) otherlv_12= ';' )* otherlv_13= '}' )? | ||
2014 | { | ||
2015 | // InternalCftLanguage.g:755:3: ( (lv_topLevel_0_0= 'toplevel' ) )? | ||
2016 | int alt15=2; | ||
2017 | int LA15_0 = input.LA(1); | ||
2018 | |||
2019 | if ( (LA15_0==26) ) { | ||
2020 | alt15=1; | ||
2021 | } | ||
2022 | switch (alt15) { | ||
2023 | case 1 : | ||
2024 | // InternalCftLanguage.g:756:4: (lv_topLevel_0_0= 'toplevel' ) | ||
2025 | { | ||
2026 | // InternalCftLanguage.g:756:4: (lv_topLevel_0_0= 'toplevel' ) | ||
2027 | // InternalCftLanguage.g:757:5: lv_topLevel_0_0= 'toplevel' | ||
2028 | { | ||
2029 | lv_topLevel_0_0=(Token)match(input,26,FOLLOW_21); | ||
2030 | |||
2031 | newLeafNode(lv_topLevel_0_0, grammarAccess.getMappingDefinitionAccess().getTopLevelToplevelKeyword_0_0()); | ||
2032 | |||
2033 | |||
2034 | if (current==null) { | ||
2035 | current = createModelElement(grammarAccess.getMappingDefinitionRule()); | ||
2036 | } | ||
2037 | setWithLastConsumed(current, "topLevel", true, "toplevel"); | ||
2038 | |||
2039 | |||
2040 | } | ||
2041 | |||
2042 | |||
2043 | } | ||
2044 | break; | ||
2045 | |||
2046 | } | ||
2047 | |||
2048 | otherlv_1=(Token)match(input,27,FOLLOW_3); | ||
2049 | |||
2050 | newLeafNode(otherlv_1, grammarAccess.getMappingDefinitionAccess().getMappingKeyword_1()); | ||
2051 | |||
2052 | // InternalCftLanguage.g:773:3: ( ( ruleQualifiedName ) ) | ||
2053 | // InternalCftLanguage.g:774:4: ( ruleQualifiedName ) | ||
2054 | { | ||
2055 | // InternalCftLanguage.g:774:4: ( ruleQualifiedName ) | ||
2056 | // InternalCftLanguage.g:775:5: ruleQualifiedName | ||
2057 | { | ||
2058 | |||
2059 | if (current==null) { | ||
2060 | current = createModelElement(grammarAccess.getMappingDefinitionRule()); | ||
2061 | } | ||
2062 | |||
2063 | |||
2064 | newCompositeNode(grammarAccess.getMappingDefinitionAccess().getPatternPatternCrossReference_2_0()); | ||
2065 | |||
2066 | pushFollow(FOLLOW_22); | ||
2067 | ruleQualifiedName(); | ||
2068 | |||
2069 | state._fsp--; | ||
2070 | |||
2071 | |||
2072 | afterParserOrEnumRuleCall(); | ||
2073 | |||
2074 | |||
2075 | } | ||
2076 | |||
2077 | |||
2078 | } | ||
2079 | |||
2080 | otherlv_3=(Token)match(input,28,FOLLOW_3); | ||
2081 | |||
2082 | newLeafNode(otherlv_3, grammarAccess.getMappingDefinitionAccess().getLeftParenthesisKeyword_3()); | ||
2083 | |||
2084 | // InternalCftLanguage.g:793:3: ( (lv_parameters_4_0= ruleMappingParameter ) ) | ||
2085 | // InternalCftLanguage.g:794:4: (lv_parameters_4_0= ruleMappingParameter ) | ||
2086 | { | ||
2087 | // InternalCftLanguage.g:794:4: (lv_parameters_4_0= ruleMappingParameter ) | ||
2088 | // InternalCftLanguage.g:795:5: lv_parameters_4_0= ruleMappingParameter | ||
2089 | { | ||
2090 | |||
2091 | newCompositeNode(grammarAccess.getMappingDefinitionAccess().getParametersMappingParameterParserRuleCall_4_0()); | ||
2092 | |||
2093 | pushFollow(FOLLOW_23); | ||
2094 | lv_parameters_4_0=ruleMappingParameter(); | ||
2095 | |||
2096 | state._fsp--; | ||
2097 | |||
2098 | |||
2099 | if (current==null) { | ||
2100 | current = createModelElementForParent(grammarAccess.getMappingDefinitionRule()); | ||
2101 | } | ||
2102 | add( | ||
2103 | current, | ||
2104 | "parameters", | ||
2105 | lv_parameters_4_0, | ||
2106 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.MappingParameter"); | ||
2107 | afterParserOrEnumRuleCall(); | ||
2108 | |||
2109 | |||
2110 | } | ||
2111 | |||
2112 | |||
2113 | } | ||
2114 | |||
2115 | // InternalCftLanguage.g:812:3: (otherlv_5= ',' ( (lv_parameters_6_0= ruleMappingParameter ) ) )* | ||
2116 | loop16: | ||
2117 | do { | ||
2118 | int alt16=2; | ||
2119 | int LA16_0 = input.LA(1); | ||
2120 | |||
2121 | if ( (LA16_0==29) ) { | ||
2122 | alt16=1; | ||
2123 | } | ||
2124 | |||
2125 | |||
2126 | switch (alt16) { | ||
2127 | case 1 : | ||
2128 | // InternalCftLanguage.g:813:4: otherlv_5= ',' ( (lv_parameters_6_0= ruleMappingParameter ) ) | ||
2129 | { | ||
2130 | otherlv_5=(Token)match(input,29,FOLLOW_3); | ||
2131 | |||
2132 | newLeafNode(otherlv_5, grammarAccess.getMappingDefinitionAccess().getCommaKeyword_5_0()); | ||
2133 | |||
2134 | // InternalCftLanguage.g:817:4: ( (lv_parameters_6_0= ruleMappingParameter ) ) | ||
2135 | // InternalCftLanguage.g:818:5: (lv_parameters_6_0= ruleMappingParameter ) | ||
2136 | { | ||
2137 | // InternalCftLanguage.g:818:5: (lv_parameters_6_0= ruleMappingParameter ) | ||
2138 | // InternalCftLanguage.g:819:6: lv_parameters_6_0= ruleMappingParameter | ||
2139 | { | ||
2140 | |||
2141 | newCompositeNode(grammarAccess.getMappingDefinitionAccess().getParametersMappingParameterParserRuleCall_5_1_0()); | ||
2142 | |||
2143 | pushFollow(FOLLOW_23); | ||
2144 | lv_parameters_6_0=ruleMappingParameter(); | ||
2145 | |||
2146 | state._fsp--; | ||
2147 | |||
2148 | |||
2149 | if (current==null) { | ||
2150 | current = createModelElementForParent(grammarAccess.getMappingDefinitionRule()); | ||
2151 | } | ||
2152 | add( | ||
2153 | current, | ||
2154 | "parameters", | ||
2155 | lv_parameters_6_0, | ||
2156 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.MappingParameter"); | ||
2157 | afterParserOrEnumRuleCall(); | ||
2158 | |||
2159 | |||
2160 | } | ||
2161 | |||
2162 | |||
2163 | } | ||
2164 | |||
2165 | |||
2166 | } | ||
2167 | break; | ||
2168 | |||
2169 | default : | ||
2170 | break loop16; | ||
2171 | } | ||
2172 | } while (true); | ||
2173 | |||
2174 | otherlv_7=(Token)match(input,30,FOLLOW_24); | ||
2175 | |||
2176 | newLeafNode(otherlv_7, grammarAccess.getMappingDefinitionAccess().getRightParenthesisKeyword_6()); | ||
2177 | |||
2178 | // InternalCftLanguage.g:841:3: ( (lv_componentInstance_8_0= ruleComponentInstance ) )? | ||
2179 | int alt17=2; | ||
2180 | int LA17_0 = input.LA(1); | ||
2181 | |||
2182 | if ( (LA17_0==36) ) { | ||
2183 | alt17=1; | ||
2184 | } | ||
2185 | switch (alt17) { | ||
2186 | case 1 : | ||
2187 | // InternalCftLanguage.g:842:4: (lv_componentInstance_8_0= ruleComponentInstance ) | ||
2188 | { | ||
2189 | // InternalCftLanguage.g:842:4: (lv_componentInstance_8_0= ruleComponentInstance ) | ||
2190 | // InternalCftLanguage.g:843:5: lv_componentInstance_8_0= ruleComponentInstance | ||
2191 | { | ||
2192 | |||
2193 | newCompositeNode(grammarAccess.getMappingDefinitionAccess().getComponentInstanceComponentInstanceParserRuleCall_7_0()); | ||
2194 | |||
2195 | pushFollow(FOLLOW_25); | ||
2196 | lv_componentInstance_8_0=ruleComponentInstance(); | ||
2197 | |||
2198 | state._fsp--; | ||
2199 | |||
2200 | |||
2201 | if (current==null) { | ||
2202 | current = createModelElementForParent(grammarAccess.getMappingDefinitionRule()); | ||
2203 | } | ||
2204 | set( | ||
2205 | current, | ||
2206 | "componentInstance", | ||
2207 | lv_componentInstance_8_0, | ||
2208 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.ComponentInstance"); | ||
2209 | afterParserOrEnumRuleCall(); | ||
2210 | |||
2211 | |||
2212 | } | ||
2213 | |||
2214 | |||
2215 | } | ||
2216 | break; | ||
2217 | |||
2218 | } | ||
2219 | |||
2220 | // InternalCftLanguage.g:860:3: (otherlv_9= '{' ( ( ( (lv_lookupDefinitions_10_0= ruleLookupDefinition ) ) | ( (lv_assignments_11_0= ruleAssignment ) ) ) otherlv_12= ';' )* otherlv_13= '}' )? | ||
2221 | int alt20=2; | ||
2222 | int LA20_0 = input.LA(1); | ||
2223 | |||
2224 | if ( (LA20_0==16) ) { | ||
2225 | alt20=1; | ||
2226 | } | ||
2227 | switch (alt20) { | ||
2228 | case 1 : | ||
2229 | // InternalCftLanguage.g:861:4: otherlv_9= '{' ( ( ( (lv_lookupDefinitions_10_0= ruleLookupDefinition ) ) | ( (lv_assignments_11_0= ruleAssignment ) ) ) otherlv_12= ';' )* otherlv_13= '}' | ||
2230 | { | ||
2231 | otherlv_9=(Token)match(input,16,FOLLOW_26); | ||
2232 | |||
2233 | newLeafNode(otherlv_9, grammarAccess.getMappingDefinitionAccess().getLeftCurlyBracketKeyword_8_0()); | ||
2234 | |||
2235 | // InternalCftLanguage.g:865:4: ( ( ( (lv_lookupDefinitions_10_0= ruleLookupDefinition ) ) | ( (lv_assignments_11_0= ruleAssignment ) ) ) otherlv_12= ';' )* | ||
2236 | loop19: | ||
2237 | do { | ||
2238 | int alt19=2; | ||
2239 | int LA19_0 = input.LA(1); | ||
2240 | |||
2241 | if ( (LA19_0==RULE_ID||LA19_0==31) ) { | ||
2242 | alt19=1; | ||
2243 | } | ||
2244 | |||
2245 | |||
2246 | switch (alt19) { | ||
2247 | case 1 : | ||
2248 | // InternalCftLanguage.g:866:5: ( ( (lv_lookupDefinitions_10_0= ruleLookupDefinition ) ) | ( (lv_assignments_11_0= ruleAssignment ) ) ) otherlv_12= ';' | ||
2249 | { | ||
2250 | // InternalCftLanguage.g:866:5: ( ( (lv_lookupDefinitions_10_0= ruleLookupDefinition ) ) | ( (lv_assignments_11_0= ruleAssignment ) ) ) | ||
2251 | int alt18=2; | ||
2252 | int LA18_0 = input.LA(1); | ||
2253 | |||
2254 | if ( (LA18_0==31) ) { | ||
2255 | alt18=1; | ||
2256 | } | ||
2257 | else if ( (LA18_0==RULE_ID) ) { | ||
2258 | alt18=2; | ||
2259 | } | ||
2260 | else { | ||
2261 | NoViableAltException nvae = | ||
2262 | new NoViableAltException("", 18, 0, input); | ||
2263 | |||
2264 | throw nvae; | ||
2265 | } | ||
2266 | switch (alt18) { | ||
2267 | case 1 : | ||
2268 | // InternalCftLanguage.g:867:6: ( (lv_lookupDefinitions_10_0= ruleLookupDefinition ) ) | ||
2269 | { | ||
2270 | // InternalCftLanguage.g:867:6: ( (lv_lookupDefinitions_10_0= ruleLookupDefinition ) ) | ||
2271 | // InternalCftLanguage.g:868:7: (lv_lookupDefinitions_10_0= ruleLookupDefinition ) | ||
2272 | { | ||
2273 | // InternalCftLanguage.g:868:7: (lv_lookupDefinitions_10_0= ruleLookupDefinition ) | ||
2274 | // InternalCftLanguage.g:869:8: lv_lookupDefinitions_10_0= ruleLookupDefinition | ||
2275 | { | ||
2276 | |||
2277 | newCompositeNode(grammarAccess.getMappingDefinitionAccess().getLookupDefinitionsLookupDefinitionParserRuleCall_8_1_0_0_0()); | ||
2278 | |||
2279 | pushFollow(FOLLOW_11); | ||
2280 | lv_lookupDefinitions_10_0=ruleLookupDefinition(); | ||
2281 | |||
2282 | state._fsp--; | ||
2283 | |||
2284 | |||
2285 | if (current==null) { | ||
2286 | current = createModelElementForParent(grammarAccess.getMappingDefinitionRule()); | ||
2287 | } | ||
2288 | add( | ||
2289 | current, | ||
2290 | "lookupDefinitions", | ||
2291 | lv_lookupDefinitions_10_0, | ||
2292 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.LookupDefinition"); | ||
2293 | afterParserOrEnumRuleCall(); | ||
2294 | |||
2295 | |||
2296 | } | ||
2297 | |||
2298 | |||
2299 | } | ||
2300 | |||
2301 | |||
2302 | } | ||
2303 | break; | ||
2304 | case 2 : | ||
2305 | // InternalCftLanguage.g:887:6: ( (lv_assignments_11_0= ruleAssignment ) ) | ||
2306 | { | ||
2307 | // InternalCftLanguage.g:887:6: ( (lv_assignments_11_0= ruleAssignment ) ) | ||
2308 | // InternalCftLanguage.g:888:7: (lv_assignments_11_0= ruleAssignment ) | ||
2309 | { | ||
2310 | // InternalCftLanguage.g:888:7: (lv_assignments_11_0= ruleAssignment ) | ||
2311 | // InternalCftLanguage.g:889:8: lv_assignments_11_0= ruleAssignment | ||
2312 | { | ||
2313 | |||
2314 | newCompositeNode(grammarAccess.getMappingDefinitionAccess().getAssignmentsAssignmentParserRuleCall_8_1_0_1_0()); | ||
2315 | |||
2316 | pushFollow(FOLLOW_11); | ||
2317 | lv_assignments_11_0=ruleAssignment(); | ||
2318 | |||
2319 | state._fsp--; | ||
2320 | |||
2321 | |||
2322 | if (current==null) { | ||
2323 | current = createModelElementForParent(grammarAccess.getMappingDefinitionRule()); | ||
2324 | } | ||
2325 | add( | ||
2326 | current, | ||
2327 | "assignments", | ||
2328 | lv_assignments_11_0, | ||
2329 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.Assignment"); | ||
2330 | afterParserOrEnumRuleCall(); | ||
2331 | |||
2332 | |||
2333 | } | ||
2334 | |||
2335 | |||
2336 | } | ||
2337 | |||
2338 | |||
2339 | } | ||
2340 | break; | ||
2341 | |||
2342 | } | ||
2343 | |||
2344 | otherlv_12=(Token)match(input,13,FOLLOW_26); | ||
2345 | |||
2346 | newLeafNode(otherlv_12, grammarAccess.getMappingDefinitionAccess().getSemicolonKeyword_8_1_1()); | ||
2347 | |||
2348 | |||
2349 | } | ||
2350 | break; | ||
2351 | |||
2352 | default : | ||
2353 | break loop19; | ||
2354 | } | ||
2355 | } while (true); | ||
2356 | |||
2357 | otherlv_13=(Token)match(input,19,FOLLOW_2); | ||
2358 | |||
2359 | newLeafNode(otherlv_13, grammarAccess.getMappingDefinitionAccess().getRightCurlyBracketKeyword_8_2()); | ||
2360 | |||
2361 | |||
2362 | } | ||
2363 | break; | ||
2364 | |||
2365 | } | ||
2366 | |||
2367 | |||
2368 | } | ||
2369 | |||
2370 | |||
2371 | } | ||
2372 | |||
2373 | |||
2374 | leaveRule(); | ||
2375 | |||
2376 | } | ||
2377 | |||
2378 | catch (RecognitionException re) { | ||
2379 | recover(input,re); | ||
2380 | appendSkippedTokens(); | ||
2381 | } | ||
2382 | finally { | ||
2383 | } | ||
2384 | return current; | ||
2385 | } | ||
2386 | // $ANTLR end "ruleMappingDefinition" | ||
2387 | |||
2388 | |||
2389 | // $ANTLR start "entryRuleMappingParameter" | ||
2390 | // InternalCftLanguage.g:921:1: entryRuleMappingParameter returns [EObject current=null] : iv_ruleMappingParameter= ruleMappingParameter EOF ; | ||
2391 | public final EObject entryRuleMappingParameter() throws RecognitionException { | ||
2392 | EObject current = null; | ||
2393 | |||
2394 | EObject iv_ruleMappingParameter = null; | ||
2395 | |||
2396 | |||
2397 | try { | ||
2398 | // InternalCftLanguage.g:921:57: (iv_ruleMappingParameter= ruleMappingParameter EOF ) | ||
2399 | // InternalCftLanguage.g:922:2: iv_ruleMappingParameter= ruleMappingParameter EOF | ||
2400 | { | ||
2401 | newCompositeNode(grammarAccess.getMappingParameterRule()); | ||
2402 | pushFollow(FOLLOW_1); | ||
2403 | iv_ruleMappingParameter=ruleMappingParameter(); | ||
2404 | |||
2405 | state._fsp--; | ||
2406 | |||
2407 | current =iv_ruleMappingParameter; | ||
2408 | match(input,EOF,FOLLOW_2); | ||
2409 | |||
2410 | } | ||
2411 | |||
2412 | } | ||
2413 | |||
2414 | catch (RecognitionException re) { | ||
2415 | recover(input,re); | ||
2416 | appendSkippedTokens(); | ||
2417 | } | ||
2418 | finally { | ||
2419 | } | ||
2420 | return current; | ||
2421 | } | ||
2422 | // $ANTLR end "entryRuleMappingParameter" | ||
2423 | |||
2424 | |||
2425 | // $ANTLR start "ruleMappingParameter" | ||
2426 | // InternalCftLanguage.g:928:1: ruleMappingParameter returns [EObject current=null] : ( (lv_name_0_0= RULE_ID ) ) ; | ||
2427 | public final EObject ruleMappingParameter() throws RecognitionException { | ||
2428 | EObject current = null; | ||
2429 | |||
2430 | Token lv_name_0_0=null; | ||
2431 | |||
2432 | |||
2433 | enterRule(); | ||
2434 | |||
2435 | try { | ||
2436 | // InternalCftLanguage.g:934:2: ( ( (lv_name_0_0= RULE_ID ) ) ) | ||
2437 | // InternalCftLanguage.g:935:2: ( (lv_name_0_0= RULE_ID ) ) | ||
2438 | { | ||
2439 | // InternalCftLanguage.g:935:2: ( (lv_name_0_0= RULE_ID ) ) | ||
2440 | // InternalCftLanguage.g:936:3: (lv_name_0_0= RULE_ID ) | ||
2441 | { | ||
2442 | // InternalCftLanguage.g:936:3: (lv_name_0_0= RULE_ID ) | ||
2443 | // InternalCftLanguage.g:937:4: lv_name_0_0= RULE_ID | ||
2444 | { | ||
2445 | lv_name_0_0=(Token)match(input,RULE_ID,FOLLOW_2); | ||
2446 | |||
2447 | newLeafNode(lv_name_0_0, grammarAccess.getMappingParameterAccess().getNameIDTerminalRuleCall_0()); | ||
2448 | |||
2449 | |||
2450 | if (current==null) { | ||
2451 | current = createModelElement(grammarAccess.getMappingParameterRule()); | ||
2452 | } | ||
2453 | setWithLastConsumed( | ||
2454 | current, | ||
2455 | "name", | ||
2456 | lv_name_0_0, | ||
2457 | "org.eclipse.xtext.common.Terminals.ID"); | ||
2458 | |||
2459 | |||
2460 | } | ||
2461 | |||
2462 | |||
2463 | } | ||
2464 | |||
2465 | |||
2466 | } | ||
2467 | |||
2468 | |||
2469 | leaveRule(); | ||
2470 | |||
2471 | } | ||
2472 | |||
2473 | catch (RecognitionException re) { | ||
2474 | recover(input,re); | ||
2475 | appendSkippedTokens(); | ||
2476 | } | ||
2477 | finally { | ||
2478 | } | ||
2479 | return current; | ||
2480 | } | ||
2481 | // $ANTLR end "ruleMappingParameter" | ||
2482 | |||
2483 | |||
2484 | // $ANTLR start "entryRuleLookupDefinition" | ||
2485 | // InternalCftLanguage.g:956:1: entryRuleLookupDefinition returns [EObject current=null] : iv_ruleLookupDefinition= ruleLookupDefinition EOF ; | ||
2486 | public final EObject entryRuleLookupDefinition() throws RecognitionException { | ||
2487 | EObject current = null; | ||
2488 | |||
2489 | EObject iv_ruleLookupDefinition = null; | ||
2490 | |||
2491 | |||
2492 | try { | ||
2493 | // InternalCftLanguage.g:956:57: (iv_ruleLookupDefinition= ruleLookupDefinition EOF ) | ||
2494 | // InternalCftLanguage.g:957:2: iv_ruleLookupDefinition= ruleLookupDefinition EOF | ||
2495 | { | ||
2496 | newCompositeNode(grammarAccess.getLookupDefinitionRule()); | ||
2497 | pushFollow(FOLLOW_1); | ||
2498 | iv_ruleLookupDefinition=ruleLookupDefinition(); | ||
2499 | |||
2500 | state._fsp--; | ||
2501 | |||
2502 | current =iv_ruleLookupDefinition; | ||
2503 | match(input,EOF,FOLLOW_2); | ||
2504 | |||
2505 | } | ||
2506 | |||
2507 | } | ||
2508 | |||
2509 | catch (RecognitionException re) { | ||
2510 | recover(input,re); | ||
2511 | appendSkippedTokens(); | ||
2512 | } | ||
2513 | finally { | ||
2514 | } | ||
2515 | return current; | ||
2516 | } | ||
2517 | // $ANTLR end "entryRuleLookupDefinition" | ||
2518 | |||
2519 | |||
2520 | // $ANTLR start "ruleLookupDefinition" | ||
2521 | // InternalCftLanguage.g:963:1: ruleLookupDefinition returns [EObject current=null] : (otherlv_0= 'lookup' ( (otherlv_1= RULE_ID ) ) otherlv_2= '(' ( (otherlv_3= RULE_ID ) ) (otherlv_4= ',' ( (otherlv_5= RULE_ID ) ) )* otherlv_6= ')' otherlv_7= 'as' ( (lv_name_8_0= RULE_ID ) ) ) ; | ||
2522 | public final EObject ruleLookupDefinition() throws RecognitionException { | ||
2523 | EObject current = null; | ||
2524 | |||
2525 | Token otherlv_0=null; | ||
2526 | Token otherlv_1=null; | ||
2527 | Token otherlv_2=null; | ||
2528 | Token otherlv_3=null; | ||
2529 | Token otherlv_4=null; | ||
2530 | Token otherlv_5=null; | ||
2531 | Token otherlv_6=null; | ||
2532 | Token otherlv_7=null; | ||
2533 | Token lv_name_8_0=null; | ||
2534 | |||
2535 | |||
2536 | enterRule(); | ||
2537 | |||
2538 | try { | ||
2539 | // InternalCftLanguage.g:969:2: ( (otherlv_0= 'lookup' ( (otherlv_1= RULE_ID ) ) otherlv_2= '(' ( (otherlv_3= RULE_ID ) ) (otherlv_4= ',' ( (otherlv_5= RULE_ID ) ) )* otherlv_6= ')' otherlv_7= 'as' ( (lv_name_8_0= RULE_ID ) ) ) ) | ||
2540 | // InternalCftLanguage.g:970:2: (otherlv_0= 'lookup' ( (otherlv_1= RULE_ID ) ) otherlv_2= '(' ( (otherlv_3= RULE_ID ) ) (otherlv_4= ',' ( (otherlv_5= RULE_ID ) ) )* otherlv_6= ')' otherlv_7= 'as' ( (lv_name_8_0= RULE_ID ) ) ) | ||
2541 | { | ||
2542 | // InternalCftLanguage.g:970:2: (otherlv_0= 'lookup' ( (otherlv_1= RULE_ID ) ) otherlv_2= '(' ( (otherlv_3= RULE_ID ) ) (otherlv_4= ',' ( (otherlv_5= RULE_ID ) ) )* otherlv_6= ')' otherlv_7= 'as' ( (lv_name_8_0= RULE_ID ) ) ) | ||
2543 | // InternalCftLanguage.g:971:3: otherlv_0= 'lookup' ( (otherlv_1= RULE_ID ) ) otherlv_2= '(' ( (otherlv_3= RULE_ID ) ) (otherlv_4= ',' ( (otherlv_5= RULE_ID ) ) )* otherlv_6= ')' otherlv_7= 'as' ( (lv_name_8_0= RULE_ID ) ) | ||
2544 | { | ||
2545 | otherlv_0=(Token)match(input,31,FOLLOW_3); | ||
2546 | |||
2547 | newLeafNode(otherlv_0, grammarAccess.getLookupDefinitionAccess().getLookupKeyword_0()); | ||
2548 | |||
2549 | // InternalCftLanguage.g:975:3: ( (otherlv_1= RULE_ID ) ) | ||
2550 | // InternalCftLanguage.g:976:4: (otherlv_1= RULE_ID ) | ||
2551 | { | ||
2552 | // InternalCftLanguage.g:976:4: (otherlv_1= RULE_ID ) | ||
2553 | // InternalCftLanguage.g:977:5: otherlv_1= RULE_ID | ||
2554 | { | ||
2555 | |||
2556 | if (current==null) { | ||
2557 | current = createModelElement(grammarAccess.getLookupDefinitionRule()); | ||
2558 | } | ||
2559 | |||
2560 | otherlv_1=(Token)match(input,RULE_ID,FOLLOW_22); | ||
2561 | |||
2562 | newLeafNode(otherlv_1, grammarAccess.getLookupDefinitionAccess().getMappingMappingDefinitionCrossReference_1_0()); | ||
2563 | |||
2564 | |||
2565 | } | ||
2566 | |||
2567 | |||
2568 | } | ||
2569 | |||
2570 | otherlv_2=(Token)match(input,28,FOLLOW_3); | ||
2571 | |||
2572 | newLeafNode(otherlv_2, grammarAccess.getLookupDefinitionAccess().getLeftParenthesisKeyword_2()); | ||
2573 | |||
2574 | // InternalCftLanguage.g:992:3: ( (otherlv_3= RULE_ID ) ) | ||
2575 | // InternalCftLanguage.g:993:4: (otherlv_3= RULE_ID ) | ||
2576 | { | ||
2577 | // InternalCftLanguage.g:993:4: (otherlv_3= RULE_ID ) | ||
2578 | // InternalCftLanguage.g:994:5: otherlv_3= RULE_ID | ||
2579 | { | ||
2580 | |||
2581 | if (current==null) { | ||
2582 | current = createModelElement(grammarAccess.getLookupDefinitionRule()); | ||
2583 | } | ||
2584 | |||
2585 | otherlv_3=(Token)match(input,RULE_ID,FOLLOW_23); | ||
2586 | |||
2587 | newLeafNode(otherlv_3, grammarAccess.getLookupDefinitionAccess().getArgumentsMappingParameterCrossReference_3_0()); | ||
2588 | |||
2589 | |||
2590 | } | ||
2591 | |||
2592 | |||
2593 | } | ||
2594 | |||
2595 | // InternalCftLanguage.g:1005:3: (otherlv_4= ',' ( (otherlv_5= RULE_ID ) ) )* | ||
2596 | loop21: | ||
2597 | do { | ||
2598 | int alt21=2; | ||
2599 | int LA21_0 = input.LA(1); | ||
2600 | |||
2601 | if ( (LA21_0==29) ) { | ||
2602 | alt21=1; | ||
2603 | } | ||
2604 | |||
2605 | |||
2606 | switch (alt21) { | ||
2607 | case 1 : | ||
2608 | // InternalCftLanguage.g:1006:4: otherlv_4= ',' ( (otherlv_5= RULE_ID ) ) | ||
2609 | { | ||
2610 | otherlv_4=(Token)match(input,29,FOLLOW_3); | ||
2611 | |||
2612 | newLeafNode(otherlv_4, grammarAccess.getLookupDefinitionAccess().getCommaKeyword_4_0()); | ||
2613 | |||
2614 | // InternalCftLanguage.g:1010:4: ( (otherlv_5= RULE_ID ) ) | ||
2615 | // InternalCftLanguage.g:1011:5: (otherlv_5= RULE_ID ) | ||
2616 | { | ||
2617 | // InternalCftLanguage.g:1011:5: (otherlv_5= RULE_ID ) | ||
2618 | // InternalCftLanguage.g:1012:6: otherlv_5= RULE_ID | ||
2619 | { | ||
2620 | |||
2621 | if (current==null) { | ||
2622 | current = createModelElement(grammarAccess.getLookupDefinitionRule()); | ||
2623 | } | ||
2624 | |||
2625 | otherlv_5=(Token)match(input,RULE_ID,FOLLOW_23); | ||
2626 | |||
2627 | newLeafNode(otherlv_5, grammarAccess.getLookupDefinitionAccess().getArgumentsMappingParameterCrossReference_4_1_0()); | ||
2628 | |||
2629 | |||
2630 | } | ||
2631 | |||
2632 | |||
2633 | } | ||
2634 | |||
2635 | |||
2636 | } | ||
2637 | break; | ||
2638 | |||
2639 | default : | ||
2640 | break loop21; | ||
2641 | } | ||
2642 | } while (true); | ||
2643 | |||
2644 | otherlv_6=(Token)match(input,30,FOLLOW_27); | ||
2645 | |||
2646 | newLeafNode(otherlv_6, grammarAccess.getLookupDefinitionAccess().getRightParenthesisKeyword_5()); | ||
2647 | |||
2648 | otherlv_7=(Token)match(input,32,FOLLOW_3); | ||
2649 | |||
2650 | newLeafNode(otherlv_7, grammarAccess.getLookupDefinitionAccess().getAsKeyword_6()); | ||
2651 | |||
2652 | // InternalCftLanguage.g:1032:3: ( (lv_name_8_0= RULE_ID ) ) | ||
2653 | // InternalCftLanguage.g:1033:4: (lv_name_8_0= RULE_ID ) | ||
2654 | { | ||
2655 | // InternalCftLanguage.g:1033:4: (lv_name_8_0= RULE_ID ) | ||
2656 | // InternalCftLanguage.g:1034:5: lv_name_8_0= RULE_ID | ||
2657 | { | ||
2658 | lv_name_8_0=(Token)match(input,RULE_ID,FOLLOW_2); | ||
2659 | |||
2660 | newLeafNode(lv_name_8_0, grammarAccess.getLookupDefinitionAccess().getNameIDTerminalRuleCall_7_0()); | ||
2661 | |||
2662 | |||
2663 | if (current==null) { | ||
2664 | current = createModelElement(grammarAccess.getLookupDefinitionRule()); | ||
2665 | } | ||
2666 | setWithLastConsumed( | ||
2667 | current, | ||
2668 | "name", | ||
2669 | lv_name_8_0, | ||
2670 | "org.eclipse.xtext.common.Terminals.ID"); | ||
2671 | |||
2672 | |||
2673 | } | ||
2674 | |||
2675 | |||
2676 | } | ||
2677 | |||
2678 | |||
2679 | } | ||
2680 | |||
2681 | |||
2682 | } | ||
2683 | |||
2684 | |||
2685 | leaveRule(); | ||
2686 | |||
2687 | } | ||
2688 | |||
2689 | catch (RecognitionException re) { | ||
2690 | recover(input,re); | ||
2691 | appendSkippedTokens(); | ||
2692 | } | ||
2693 | finally { | ||
2694 | } | ||
2695 | return current; | ||
2696 | } | ||
2697 | // $ANTLR end "ruleLookupDefinition" | ||
2698 | |||
2699 | |||
2700 | // $ANTLR start "entryRuleAssignment" | ||
2701 | // InternalCftLanguage.g:1054:1: entryRuleAssignment returns [EObject current=null] : iv_ruleAssignment= ruleAssignment EOF ; | ||
2702 | public final EObject entryRuleAssignment() throws RecognitionException { | ||
2703 | EObject current = null; | ||
2704 | |||
2705 | EObject iv_ruleAssignment = null; | ||
2706 | |||
2707 | |||
2708 | try { | ||
2709 | // InternalCftLanguage.g:1054:51: (iv_ruleAssignment= ruleAssignment EOF ) | ||
2710 | // InternalCftLanguage.g:1055:2: iv_ruleAssignment= ruleAssignment EOF | ||
2711 | { | ||
2712 | newCompositeNode(grammarAccess.getAssignmentRule()); | ||
2713 | pushFollow(FOLLOW_1); | ||
2714 | iv_ruleAssignment=ruleAssignment(); | ||
2715 | |||
2716 | state._fsp--; | ||
2717 | |||
2718 | current =iv_ruleAssignment; | ||
2719 | match(input,EOF,FOLLOW_2); | ||
2720 | |||
2721 | } | ||
2722 | |||
2723 | } | ||
2724 | |||
2725 | catch (RecognitionException re) { | ||
2726 | recover(input,re); | ||
2727 | appendSkippedTokens(); | ||
2728 | } | ||
2729 | finally { | ||
2730 | } | ||
2731 | return current; | ||
2732 | } | ||
2733 | // $ANTLR end "entryRuleAssignment" | ||
2734 | |||
2735 | |||
2736 | // $ANTLR start "ruleAssignment" | ||
2737 | // InternalCftLanguage.g:1061:1: ruleAssignment returns [EObject current=null] : ( ( (lv_input_0_0= ruleEventReference ) ) ( ( (lv_multiple_1_0= '+=' ) ) | otherlv_2= ':=' ) ( (lv_output_3_0= ruleEventReference ) ) ) ; | ||
2738 | public final EObject ruleAssignment() throws RecognitionException { | ||
2739 | EObject current = null; | ||
2740 | |||
2741 | Token lv_multiple_1_0=null; | ||
2742 | Token otherlv_2=null; | ||
2743 | EObject lv_input_0_0 = null; | ||
2744 | |||
2745 | EObject lv_output_3_0 = null; | ||
2746 | |||
2747 | |||
2748 | |||
2749 | enterRule(); | ||
2750 | |||
2751 | try { | ||
2752 | // InternalCftLanguage.g:1067:2: ( ( ( (lv_input_0_0= ruleEventReference ) ) ( ( (lv_multiple_1_0= '+=' ) ) | otherlv_2= ':=' ) ( (lv_output_3_0= ruleEventReference ) ) ) ) | ||
2753 | // InternalCftLanguage.g:1068:2: ( ( (lv_input_0_0= ruleEventReference ) ) ( ( (lv_multiple_1_0= '+=' ) ) | otherlv_2= ':=' ) ( (lv_output_3_0= ruleEventReference ) ) ) | ||
2754 | { | ||
2755 | // InternalCftLanguage.g:1068:2: ( ( (lv_input_0_0= ruleEventReference ) ) ( ( (lv_multiple_1_0= '+=' ) ) | otherlv_2= ':=' ) ( (lv_output_3_0= ruleEventReference ) ) ) | ||
2756 | // InternalCftLanguage.g:1069:3: ( (lv_input_0_0= ruleEventReference ) ) ( ( (lv_multiple_1_0= '+=' ) ) | otherlv_2= ':=' ) ( (lv_output_3_0= ruleEventReference ) ) | ||
2757 | { | ||
2758 | // InternalCftLanguage.g:1069:3: ( (lv_input_0_0= ruleEventReference ) ) | ||
2759 | // InternalCftLanguage.g:1070:4: (lv_input_0_0= ruleEventReference ) | ||
2760 | { | ||
2761 | // InternalCftLanguage.g:1070:4: (lv_input_0_0= ruleEventReference ) | ||
2762 | // InternalCftLanguage.g:1071:5: lv_input_0_0= ruleEventReference | ||
2763 | { | ||
2764 | |||
2765 | newCompositeNode(grammarAccess.getAssignmentAccess().getInputEventReferenceParserRuleCall_0_0()); | ||
2766 | |||
2767 | pushFollow(FOLLOW_28); | ||
2768 | lv_input_0_0=ruleEventReference(); | ||
2769 | |||
2770 | state._fsp--; | ||
2771 | |||
2772 | |||
2773 | if (current==null) { | ||
2774 | current = createModelElementForParent(grammarAccess.getAssignmentRule()); | ||
2775 | } | ||
2776 | set( | ||
2777 | current, | ||
2778 | "input", | ||
2779 | lv_input_0_0, | ||
2780 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.EventReference"); | ||
2781 | afterParserOrEnumRuleCall(); | ||
2782 | |||
2783 | |||
2784 | } | ||
2785 | |||
2786 | |||
2787 | } | ||
2788 | |||
2789 | // InternalCftLanguage.g:1088:3: ( ( (lv_multiple_1_0= '+=' ) ) | otherlv_2= ':=' ) | ||
2790 | int alt22=2; | ||
2791 | int LA22_0 = input.LA(1); | ||
2792 | |||
2793 | if ( (LA22_0==33) ) { | ||
2794 | alt22=1; | ||
2795 | } | ||
2796 | else if ( (LA22_0==34) ) { | ||
2797 | alt22=2; | ||
2798 | } | ||
2799 | else { | ||
2800 | NoViableAltException nvae = | ||
2801 | new NoViableAltException("", 22, 0, input); | ||
2802 | |||
2803 | throw nvae; | ||
2804 | } | ||
2805 | switch (alt22) { | ||
2806 | case 1 : | ||
2807 | // InternalCftLanguage.g:1089:4: ( (lv_multiple_1_0= '+=' ) ) | ||
2808 | { | ||
2809 | // InternalCftLanguage.g:1089:4: ( (lv_multiple_1_0= '+=' ) ) | ||
2810 | // InternalCftLanguage.g:1090:5: (lv_multiple_1_0= '+=' ) | ||
2811 | { | ||
2812 | // InternalCftLanguage.g:1090:5: (lv_multiple_1_0= '+=' ) | ||
2813 | // InternalCftLanguage.g:1091:6: lv_multiple_1_0= '+=' | ||
2814 | { | ||
2815 | lv_multiple_1_0=(Token)match(input,33,FOLLOW_29); | ||
2816 | |||
2817 | newLeafNode(lv_multiple_1_0, grammarAccess.getAssignmentAccess().getMultiplePlusSignEqualsSignKeyword_1_0_0()); | ||
2818 | |||
2819 | |||
2820 | if (current==null) { | ||
2821 | current = createModelElement(grammarAccess.getAssignmentRule()); | ||
2822 | } | ||
2823 | setWithLastConsumed(current, "multiple", true, "+="); | ||
2824 | |||
2825 | |||
2826 | } | ||
2827 | |||
2828 | |||
2829 | } | ||
2830 | |||
2831 | |||
2832 | } | ||
2833 | break; | ||
2834 | case 2 : | ||
2835 | // InternalCftLanguage.g:1104:4: otherlv_2= ':=' | ||
2836 | { | ||
2837 | otherlv_2=(Token)match(input,34,FOLLOW_29); | ||
2838 | |||
2839 | newLeafNode(otherlv_2, grammarAccess.getAssignmentAccess().getColonEqualsSignKeyword_1_1()); | ||
2840 | |||
2841 | |||
2842 | } | ||
2843 | break; | ||
2844 | |||
2845 | } | ||
2846 | |||
2847 | // InternalCftLanguage.g:1109:3: ( (lv_output_3_0= ruleEventReference ) ) | ||
2848 | // InternalCftLanguage.g:1110:4: (lv_output_3_0= ruleEventReference ) | ||
2849 | { | ||
2850 | // InternalCftLanguage.g:1110:4: (lv_output_3_0= ruleEventReference ) | ||
2851 | // InternalCftLanguage.g:1111:5: lv_output_3_0= ruleEventReference | ||
2852 | { | ||
2853 | |||
2854 | newCompositeNode(grammarAccess.getAssignmentAccess().getOutputEventReferenceParserRuleCall_2_0()); | ||
2855 | |||
2856 | pushFollow(FOLLOW_2); | ||
2857 | lv_output_3_0=ruleEventReference(); | ||
2858 | |||
2859 | state._fsp--; | ||
2860 | |||
2861 | |||
2862 | if (current==null) { | ||
2863 | current = createModelElementForParent(grammarAccess.getAssignmentRule()); | ||
2864 | } | ||
2865 | set( | ||
2866 | current, | ||
2867 | "output", | ||
2868 | lv_output_3_0, | ||
2869 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.EventReference"); | ||
2870 | afterParserOrEnumRuleCall(); | ||
2871 | |||
2872 | |||
2873 | } | ||
2874 | |||
2875 | |||
2876 | } | ||
2877 | |||
2878 | |||
2879 | } | ||
2880 | |||
2881 | |||
2882 | } | ||
2883 | |||
2884 | |||
2885 | leaveRule(); | ||
2886 | |||
2887 | } | ||
2888 | |||
2889 | catch (RecognitionException re) { | ||
2890 | recover(input,re); | ||
2891 | appendSkippedTokens(); | ||
2892 | } | ||
2893 | finally { | ||
2894 | } | ||
2895 | return current; | ||
2896 | } | ||
2897 | // $ANTLR end "ruleAssignment" | ||
2898 | |||
2899 | |||
2900 | // $ANTLR start "entryRuleEventReference" | ||
2901 | // InternalCftLanguage.g:1132:1: entryRuleEventReference returns [EObject current=null] : iv_ruleEventReference= ruleEventReference EOF ; | ||
2902 | public final EObject entryRuleEventReference() throws RecognitionException { | ||
2903 | EObject current = null; | ||
2904 | |||
2905 | EObject iv_ruleEventReference = null; | ||
2906 | |||
2907 | |||
2908 | try { | ||
2909 | // InternalCftLanguage.g:1132:55: (iv_ruleEventReference= ruleEventReference EOF ) | ||
2910 | // InternalCftLanguage.g:1133:2: iv_ruleEventReference= ruleEventReference EOF | ||
2911 | { | ||
2912 | newCompositeNode(grammarAccess.getEventReferenceRule()); | ||
2913 | pushFollow(FOLLOW_1); | ||
2914 | iv_ruleEventReference=ruleEventReference(); | ||
2915 | |||
2916 | state._fsp--; | ||
2917 | |||
2918 | current =iv_ruleEventReference; | ||
2919 | match(input,EOF,FOLLOW_2); | ||
2920 | |||
2921 | } | ||
2922 | |||
2923 | } | ||
2924 | |||
2925 | catch (RecognitionException re) { | ||
2926 | recover(input,re); | ||
2927 | appendSkippedTokens(); | ||
2928 | } | ||
2929 | finally { | ||
2930 | } | ||
2931 | return current; | ||
2932 | } | ||
2933 | // $ANTLR end "entryRuleEventReference" | ||
2934 | |||
2935 | |||
2936 | // $ANTLR start "ruleEventReference" | ||
2937 | // InternalCftLanguage.g:1139:1: ruleEventReference returns [EObject current=null] : ( ( (otherlv_0= RULE_ID ) ) otherlv_1= '.' ( (otherlv_2= RULE_ID ) ) ) ; | ||
2938 | public final EObject ruleEventReference() throws RecognitionException { | ||
2939 | EObject current = null; | ||
2940 | |||
2941 | Token otherlv_0=null; | ||
2942 | Token otherlv_1=null; | ||
2943 | Token otherlv_2=null; | ||
2944 | |||
2945 | |||
2946 | enterRule(); | ||
2947 | |||
2948 | try { | ||
2949 | // InternalCftLanguage.g:1145:2: ( ( ( (otherlv_0= RULE_ID ) ) otherlv_1= '.' ( (otherlv_2= RULE_ID ) ) ) ) | ||
2950 | // InternalCftLanguage.g:1146:2: ( ( (otherlv_0= RULE_ID ) ) otherlv_1= '.' ( (otherlv_2= RULE_ID ) ) ) | ||
2951 | { | ||
2952 | // InternalCftLanguage.g:1146:2: ( ( (otherlv_0= RULE_ID ) ) otherlv_1= '.' ( (otherlv_2= RULE_ID ) ) ) | ||
2953 | // InternalCftLanguage.g:1147:3: ( (otherlv_0= RULE_ID ) ) otherlv_1= '.' ( (otherlv_2= RULE_ID ) ) | ||
2954 | { | ||
2955 | // InternalCftLanguage.g:1147:3: ( (otherlv_0= RULE_ID ) ) | ||
2956 | // InternalCftLanguage.g:1148:4: (otherlv_0= RULE_ID ) | ||
2957 | { | ||
2958 | // InternalCftLanguage.g:1148:4: (otherlv_0= RULE_ID ) | ||
2959 | // InternalCftLanguage.g:1149:5: otherlv_0= RULE_ID | ||
2960 | { | ||
2961 | |||
2962 | if (current==null) { | ||
2963 | current = createModelElement(grammarAccess.getEventReferenceRule()); | ||
2964 | } | ||
2965 | |||
2966 | otherlv_0=(Token)match(input,RULE_ID,FOLLOW_30); | ||
2967 | |||
2968 | newLeafNode(otherlv_0, grammarAccess.getEventReferenceAccess().getComponentVariableCrossReference_0_0()); | ||
2969 | |||
2970 | |||
2971 | } | ||
2972 | |||
2973 | |||
2974 | } | ||
2975 | |||
2976 | otherlv_1=(Token)match(input,35,FOLLOW_3); | ||
2977 | |||
2978 | newLeafNode(otherlv_1, grammarAccess.getEventReferenceAccess().getFullStopKeyword_1()); | ||
2979 | |||
2980 | // InternalCftLanguage.g:1164:3: ( (otherlv_2= RULE_ID ) ) | ||
2981 | // InternalCftLanguage.g:1165:4: (otherlv_2= RULE_ID ) | ||
2982 | { | ||
2983 | // InternalCftLanguage.g:1165:4: (otherlv_2= RULE_ID ) | ||
2984 | // InternalCftLanguage.g:1166:5: otherlv_2= RULE_ID | ||
2985 | { | ||
2986 | |||
2987 | if (current==null) { | ||
2988 | current = createModelElement(grammarAccess.getEventReferenceRule()); | ||
2989 | } | ||
2990 | |||
2991 | otherlv_2=(Token)match(input,RULE_ID,FOLLOW_2); | ||
2992 | |||
2993 | newLeafNode(otherlv_2, grammarAccess.getEventReferenceAccess().getEventEventDeclarationCrossReference_2_0()); | ||
2994 | |||
2995 | |||
2996 | } | ||
2997 | |||
2998 | |||
2999 | } | ||
3000 | |||
3001 | |||
3002 | } | ||
3003 | |||
3004 | |||
3005 | } | ||
3006 | |||
3007 | |||
3008 | leaveRule(); | ||
3009 | |||
3010 | } | ||
3011 | |||
3012 | catch (RecognitionException re) { | ||
3013 | recover(input,re); | ||
3014 | appendSkippedTokens(); | ||
3015 | } | ||
3016 | finally { | ||
3017 | } | ||
3018 | return current; | ||
3019 | } | ||
3020 | // $ANTLR end "ruleEventReference" | ||
3021 | |||
3022 | |||
3023 | // $ANTLR start "entryRuleComponentInstance" | ||
3024 | // InternalCftLanguage.g:1181:1: entryRuleComponentInstance returns [EObject current=null] : iv_ruleComponentInstance= ruleComponentInstance EOF ; | ||
3025 | public final EObject entryRuleComponentInstance() throws RecognitionException { | ||
3026 | EObject current = null; | ||
3027 | |||
3028 | EObject iv_ruleComponentInstance = null; | ||
3029 | |||
3030 | |||
3031 | try { | ||
3032 | // InternalCftLanguage.g:1181:58: (iv_ruleComponentInstance= ruleComponentInstance EOF ) | ||
3033 | // InternalCftLanguage.g:1182:2: iv_ruleComponentInstance= ruleComponentInstance EOF | ||
3034 | { | ||
3035 | newCompositeNode(grammarAccess.getComponentInstanceRule()); | ||
3036 | pushFollow(FOLLOW_1); | ||
3037 | iv_ruleComponentInstance=ruleComponentInstance(); | ||
3038 | |||
3039 | state._fsp--; | ||
3040 | |||
3041 | current =iv_ruleComponentInstance; | ||
3042 | match(input,EOF,FOLLOW_2); | ||
3043 | |||
3044 | } | ||
3045 | |||
3046 | } | ||
3047 | |||
3048 | catch (RecognitionException re) { | ||
3049 | recover(input,re); | ||
3050 | appendSkippedTokens(); | ||
3051 | } | ||
3052 | finally { | ||
3053 | } | ||
3054 | return current; | ||
3055 | } | ||
3056 | // $ANTLR end "entryRuleComponentInstance" | ||
3057 | |||
3058 | |||
3059 | // $ANTLR start "ruleComponentInstance" | ||
3060 | // InternalCftLanguage.g:1188:1: ruleComponentInstance returns [EObject current=null] : (otherlv_0= '=>' ( ( ruleQualifiedName ) ) ( (lv_name_2_0= RULE_ID ) )? ) ; | ||
3061 | public final EObject ruleComponentInstance() throws RecognitionException { | ||
3062 | EObject current = null; | ||
3063 | |||
3064 | Token otherlv_0=null; | ||
3065 | Token lv_name_2_0=null; | ||
3066 | |||
3067 | |||
3068 | enterRule(); | ||
3069 | |||
3070 | try { | ||
3071 | // InternalCftLanguage.g:1194:2: ( (otherlv_0= '=>' ( ( ruleQualifiedName ) ) ( (lv_name_2_0= RULE_ID ) )? ) ) | ||
3072 | // InternalCftLanguage.g:1195:2: (otherlv_0= '=>' ( ( ruleQualifiedName ) ) ( (lv_name_2_0= RULE_ID ) )? ) | ||
3073 | { | ||
3074 | // InternalCftLanguage.g:1195:2: (otherlv_0= '=>' ( ( ruleQualifiedName ) ) ( (lv_name_2_0= RULE_ID ) )? ) | ||
3075 | // InternalCftLanguage.g:1196:3: otherlv_0= '=>' ( ( ruleQualifiedName ) ) ( (lv_name_2_0= RULE_ID ) )? | ||
3076 | { | ||
3077 | otherlv_0=(Token)match(input,36,FOLLOW_3); | ||
3078 | |||
3079 | newLeafNode(otherlv_0, grammarAccess.getComponentInstanceAccess().getEqualsSignGreaterThanSignKeyword_0()); | ||
3080 | |||
3081 | // InternalCftLanguage.g:1200:3: ( ( ruleQualifiedName ) ) | ||
3082 | // InternalCftLanguage.g:1201:4: ( ruleQualifiedName ) | ||
3083 | { | ||
3084 | // InternalCftLanguage.g:1201:4: ( ruleQualifiedName ) | ||
3085 | // InternalCftLanguage.g:1202:5: ruleQualifiedName | ||
3086 | { | ||
3087 | |||
3088 | if (current==null) { | ||
3089 | current = createModelElement(grammarAccess.getComponentInstanceRule()); | ||
3090 | } | ||
3091 | |||
3092 | |||
3093 | newCompositeNode(grammarAccess.getComponentInstanceAccess().getComponentTypeComponentDefinitionCrossReference_1_0()); | ||
3094 | |||
3095 | pushFollow(FOLLOW_18); | ||
3096 | ruleQualifiedName(); | ||
3097 | |||
3098 | state._fsp--; | ||
3099 | |||
3100 | |||
3101 | afterParserOrEnumRuleCall(); | ||
3102 | |||
3103 | |||
3104 | } | ||
3105 | |||
3106 | |||
3107 | } | ||
3108 | |||
3109 | // InternalCftLanguage.g:1216:3: ( (lv_name_2_0= RULE_ID ) )? | ||
3110 | int alt23=2; | ||
3111 | int LA23_0 = input.LA(1); | ||
3112 | |||
3113 | if ( (LA23_0==RULE_ID) ) { | ||
3114 | alt23=1; | ||
3115 | } | ||
3116 | switch (alt23) { | ||
3117 | case 1 : | ||
3118 | // InternalCftLanguage.g:1217:4: (lv_name_2_0= RULE_ID ) | ||
3119 | { | ||
3120 | // InternalCftLanguage.g:1217:4: (lv_name_2_0= RULE_ID ) | ||
3121 | // InternalCftLanguage.g:1218:5: lv_name_2_0= RULE_ID | ||
3122 | { | ||
3123 | lv_name_2_0=(Token)match(input,RULE_ID,FOLLOW_2); | ||
3124 | |||
3125 | newLeafNode(lv_name_2_0, grammarAccess.getComponentInstanceAccess().getNameIDTerminalRuleCall_2_0()); | ||
3126 | |||
3127 | |||
3128 | if (current==null) { | ||
3129 | current = createModelElement(grammarAccess.getComponentInstanceRule()); | ||
3130 | } | ||
3131 | setWithLastConsumed( | ||
3132 | current, | ||
3133 | "name", | ||
3134 | lv_name_2_0, | ||
3135 | "org.eclipse.xtext.common.Terminals.ID"); | ||
3136 | |||
3137 | |||
3138 | } | ||
3139 | |||
3140 | |||
3141 | } | ||
3142 | break; | ||
3143 | |||
3144 | } | ||
3145 | |||
3146 | |||
3147 | } | ||
3148 | |||
3149 | |||
3150 | } | ||
3151 | |||
3152 | |||
3153 | leaveRule(); | ||
3154 | |||
3155 | } | ||
3156 | |||
3157 | catch (RecognitionException re) { | ||
3158 | recover(input,re); | ||
3159 | appendSkippedTokens(); | ||
3160 | } | ||
3161 | finally { | ||
3162 | } | ||
3163 | return current; | ||
3164 | } | ||
3165 | // $ANTLR end "ruleComponentInstance" | ||
3166 | |||
3167 | |||
3168 | // $ANTLR start "entryRuleQualifiedName" | ||
3169 | // InternalCftLanguage.g:1238:1: entryRuleQualifiedName returns [String current=null] : iv_ruleQualifiedName= ruleQualifiedName EOF ; | ||
3170 | public final String entryRuleQualifiedName() throws RecognitionException { | ||
3171 | String current = null; | ||
3172 | |||
3173 | AntlrDatatypeRuleToken iv_ruleQualifiedName = null; | ||
3174 | |||
3175 | |||
3176 | try { | ||
3177 | // InternalCftLanguage.g:1238:53: (iv_ruleQualifiedName= ruleQualifiedName EOF ) | ||
3178 | // InternalCftLanguage.g:1239:2: iv_ruleQualifiedName= ruleQualifiedName EOF | ||
3179 | { | ||
3180 | newCompositeNode(grammarAccess.getQualifiedNameRule()); | ||
3181 | pushFollow(FOLLOW_1); | ||
3182 | iv_ruleQualifiedName=ruleQualifiedName(); | ||
3183 | |||
3184 | state._fsp--; | ||
3185 | |||
3186 | current =iv_ruleQualifiedName.getText(); | ||
3187 | match(input,EOF,FOLLOW_2); | ||
3188 | |||
3189 | } | ||
3190 | |||
3191 | } | ||
3192 | |||
3193 | catch (RecognitionException re) { | ||
3194 | recover(input,re); | ||
3195 | appendSkippedTokens(); | ||
3196 | } | ||
3197 | finally { | ||
3198 | } | ||
3199 | return current; | ||
3200 | } | ||
3201 | // $ANTLR end "entryRuleQualifiedName" | ||
3202 | |||
3203 | |||
3204 | // $ANTLR start "ruleQualifiedName" | ||
3205 | // InternalCftLanguage.g:1245:1: ruleQualifiedName returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (this_ID_0= RULE_ID (kw= '.' this_ID_2= RULE_ID )* ) ; | ||
3206 | public final AntlrDatatypeRuleToken ruleQualifiedName() throws RecognitionException { | ||
3207 | AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); | ||
3208 | |||
3209 | Token this_ID_0=null; | ||
3210 | Token kw=null; | ||
3211 | Token this_ID_2=null; | ||
3212 | |||
3213 | |||
3214 | enterRule(); | ||
3215 | |||
3216 | try { | ||
3217 | // InternalCftLanguage.g:1251:2: ( (this_ID_0= RULE_ID (kw= '.' this_ID_2= RULE_ID )* ) ) | ||
3218 | // InternalCftLanguage.g:1252:2: (this_ID_0= RULE_ID (kw= '.' this_ID_2= RULE_ID )* ) | ||
3219 | { | ||
3220 | // InternalCftLanguage.g:1252:2: (this_ID_0= RULE_ID (kw= '.' this_ID_2= RULE_ID )* ) | ||
3221 | // InternalCftLanguage.g:1253:3: this_ID_0= RULE_ID (kw= '.' this_ID_2= RULE_ID )* | ||
3222 | { | ||
3223 | this_ID_0=(Token)match(input,RULE_ID,FOLLOW_31); | ||
3224 | |||
3225 | current.merge(this_ID_0); | ||
3226 | |||
3227 | |||
3228 | newLeafNode(this_ID_0, grammarAccess.getQualifiedNameAccess().getIDTerminalRuleCall_0()); | ||
3229 | |||
3230 | // InternalCftLanguage.g:1260:3: (kw= '.' this_ID_2= RULE_ID )* | ||
3231 | loop24: | ||
3232 | do { | ||
3233 | int alt24=2; | ||
3234 | int LA24_0 = input.LA(1); | ||
3235 | |||
3236 | if ( (LA24_0==35) ) { | ||
3237 | int LA24_2 = input.LA(2); | ||
3238 | |||
3239 | if ( (LA24_2==RULE_ID) ) { | ||
3240 | alt24=1; | ||
3241 | } | ||
3242 | |||
3243 | |||
3244 | } | ||
3245 | |||
3246 | |||
3247 | switch (alt24) { | ||
3248 | case 1 : | ||
3249 | // InternalCftLanguage.g:1261:4: kw= '.' this_ID_2= RULE_ID | ||
3250 | { | ||
3251 | kw=(Token)match(input,35,FOLLOW_3); | ||
3252 | |||
3253 | current.merge(kw); | ||
3254 | newLeafNode(kw, grammarAccess.getQualifiedNameAccess().getFullStopKeyword_1_0()); | ||
3255 | |||
3256 | this_ID_2=(Token)match(input,RULE_ID,FOLLOW_31); | ||
3257 | |||
3258 | current.merge(this_ID_2); | ||
3259 | |||
3260 | |||
3261 | newLeafNode(this_ID_2, grammarAccess.getQualifiedNameAccess().getIDTerminalRuleCall_1_1()); | ||
3262 | |||
3263 | |||
3264 | } | ||
3265 | break; | ||
3266 | |||
3267 | default : | ||
3268 | break loop24; | ||
3269 | } | ||
3270 | } while (true); | ||
3271 | |||
3272 | |||
3273 | } | ||
3274 | |||
3275 | |||
3276 | } | ||
3277 | |||
3278 | |||
3279 | leaveRule(); | ||
3280 | |||
3281 | } | ||
3282 | |||
3283 | catch (RecognitionException re) { | ||
3284 | recover(input,re); | ||
3285 | appendSkippedTokens(); | ||
3286 | } | ||
3287 | finally { | ||
3288 | } | ||
3289 | return current; | ||
3290 | } | ||
3291 | // $ANTLR end "ruleQualifiedName" | ||
3292 | |||
3293 | |||
3294 | // $ANTLR start "entryRuleQualifiedNameWithWildcard" | ||
3295 | // InternalCftLanguage.g:1278:1: entryRuleQualifiedNameWithWildcard returns [String current=null] : iv_ruleQualifiedNameWithWildcard= ruleQualifiedNameWithWildcard EOF ; | ||
3296 | public final String entryRuleQualifiedNameWithWildcard() throws RecognitionException { | ||
3297 | String current = null; | ||
3298 | |||
3299 | AntlrDatatypeRuleToken iv_ruleQualifiedNameWithWildcard = null; | ||
3300 | |||
3301 | |||
3302 | try { | ||
3303 | // InternalCftLanguage.g:1278:65: (iv_ruleQualifiedNameWithWildcard= ruleQualifiedNameWithWildcard EOF ) | ||
3304 | // InternalCftLanguage.g:1279:2: iv_ruleQualifiedNameWithWildcard= ruleQualifiedNameWithWildcard EOF | ||
3305 | { | ||
3306 | newCompositeNode(grammarAccess.getQualifiedNameWithWildcardRule()); | ||
3307 | pushFollow(FOLLOW_1); | ||
3308 | iv_ruleQualifiedNameWithWildcard=ruleQualifiedNameWithWildcard(); | ||
3309 | |||
3310 | state._fsp--; | ||
3311 | |||
3312 | current =iv_ruleQualifiedNameWithWildcard.getText(); | ||
3313 | match(input,EOF,FOLLOW_2); | ||
3314 | |||
3315 | } | ||
3316 | |||
3317 | } | ||
3318 | |||
3319 | catch (RecognitionException re) { | ||
3320 | recover(input,re); | ||
3321 | appendSkippedTokens(); | ||
3322 | } | ||
3323 | finally { | ||
3324 | } | ||
3325 | return current; | ||
3326 | } | ||
3327 | // $ANTLR end "entryRuleQualifiedNameWithWildcard" | ||
3328 | |||
3329 | |||
3330 | // $ANTLR start "ruleQualifiedNameWithWildcard" | ||
3331 | // InternalCftLanguage.g:1285:1: ruleQualifiedNameWithWildcard returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (this_QualifiedName_0= ruleQualifiedName (kw= '.' kw= '*' )? ) ; | ||
3332 | public final AntlrDatatypeRuleToken ruleQualifiedNameWithWildcard() throws RecognitionException { | ||
3333 | AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); | ||
3334 | |||
3335 | Token kw=null; | ||
3336 | AntlrDatatypeRuleToken this_QualifiedName_0 = null; | ||
3337 | |||
3338 | |||
3339 | |||
3340 | enterRule(); | ||
3341 | |||
3342 | try { | ||
3343 | // InternalCftLanguage.g:1291:2: ( (this_QualifiedName_0= ruleQualifiedName (kw= '.' kw= '*' )? ) ) | ||
3344 | // InternalCftLanguage.g:1292:2: (this_QualifiedName_0= ruleQualifiedName (kw= '.' kw= '*' )? ) | ||
3345 | { | ||
3346 | // InternalCftLanguage.g:1292:2: (this_QualifiedName_0= ruleQualifiedName (kw= '.' kw= '*' )? ) | ||
3347 | // InternalCftLanguage.g:1293:3: this_QualifiedName_0= ruleQualifiedName (kw= '.' kw= '*' )? | ||
3348 | { | ||
3349 | |||
3350 | newCompositeNode(grammarAccess.getQualifiedNameWithWildcardAccess().getQualifiedNameParserRuleCall_0()); | ||
3351 | |||
3352 | pushFollow(FOLLOW_31); | ||
3353 | this_QualifiedName_0=ruleQualifiedName(); | ||
3354 | |||
3355 | state._fsp--; | ||
3356 | |||
3357 | |||
3358 | current.merge(this_QualifiedName_0); | ||
3359 | |||
3360 | |||
3361 | afterParserOrEnumRuleCall(); | ||
3362 | |||
3363 | // InternalCftLanguage.g:1303:3: (kw= '.' kw= '*' )? | ||
3364 | int alt25=2; | ||
3365 | int LA25_0 = input.LA(1); | ||
3366 | |||
3367 | if ( (LA25_0==35) ) { | ||
3368 | alt25=1; | ||
3369 | } | ||
3370 | switch (alt25) { | ||
3371 | case 1 : | ||
3372 | // InternalCftLanguage.g:1304:4: kw= '.' kw= '*' | ||
3373 | { | ||
3374 | kw=(Token)match(input,35,FOLLOW_32); | ||
3375 | |||
3376 | current.merge(kw); | ||
3377 | newLeafNode(kw, grammarAccess.getQualifiedNameWithWildcardAccess().getFullStopKeyword_1_0()); | ||
3378 | |||
3379 | kw=(Token)match(input,37,FOLLOW_2); | ||
3380 | |||
3381 | current.merge(kw); | ||
3382 | newLeafNode(kw, grammarAccess.getQualifiedNameWithWildcardAccess().getAsteriskKeyword_1_1()); | ||
3383 | |||
3384 | |||
3385 | } | ||
3386 | break; | ||
3387 | |||
3388 | } | ||
3389 | |||
3390 | |||
3391 | } | ||
3392 | |||
3393 | |||
3394 | } | ||
3395 | |||
3396 | |||
3397 | leaveRule(); | ||
3398 | |||
3399 | } | ||
3400 | |||
3401 | catch (RecognitionException re) { | ||
3402 | recover(input,re); | ||
3403 | appendSkippedTokens(); | ||
3404 | } | ||
3405 | finally { | ||
3406 | } | ||
3407 | return current; | ||
3408 | } | ||
3409 | // $ANTLR end "ruleQualifiedNameWithWildcard" | ||
3410 | |||
3411 | // Delegated rules | ||
3412 | |||
3413 | |||
3414 | |||
3415 | |||
3416 | public static final BitSet FOLLOW_1 = new BitSet(new long[]{0x0000000000000000L}); | ||
3417 | public static final BitSet FOLLOW_2 = new BitSet(new long[]{0x0000000000000002L}); | ||
3418 | public static final BitSet FOLLOW_3 = new BitSet(new long[]{0x0000000000000010L}); | ||
3419 | public static final BitSet FOLLOW_4 = new BitSet(new long[]{0x000000000200E002L}); | ||
3420 | public static final BitSet FOLLOW_5 = new BitSet(new long[]{0x000000000200C002L}); | ||
3421 | public static final BitSet FOLLOW_6 = new BitSet(new long[]{0x0000000002008002L}); | ||
3422 | public static final BitSet FOLLOW_7 = new BitSet(new long[]{0x0000000000002002L}); | ||
3423 | public static final BitSet FOLLOW_8 = new BitSet(new long[]{0x0000000000010000L}); | ||
3424 | public static final BitSet FOLLOW_9 = new BitSet(new long[]{0x00000000000E0010L}); | ||
3425 | public static final BitSet FOLLOW_10 = new BitSet(new long[]{0x0000000000002010L}); | ||
3426 | public static final BitSet FOLLOW_11 = new BitSet(new long[]{0x0000000000002000L}); | ||
3427 | public static final BitSet FOLLOW_12 = new BitSet(new long[]{0x0000000000080010L}); | ||
3428 | public static final BitSet FOLLOW_13 = new BitSet(new long[]{0x0000000000100002L}); | ||
3429 | public static final BitSet FOLLOW_14 = new BitSet(new long[]{0x0000000000200000L}); | ||
3430 | public static final BitSet FOLLOW_15 = new BitSet(new long[]{0x0000000000400000L}); | ||
3431 | public static final BitSet FOLLOW_16 = new BitSet(new long[]{0x0000000000000020L}); | ||
3432 | public static final BitSet FOLLOW_17 = new BitSet(new long[]{0x0000000000800000L}); | ||
3433 | public static final BitSet FOLLOW_18 = new BitSet(new long[]{0x0000000000000012L}); | ||
3434 | public static final BitSet FOLLOW_19 = new BitSet(new long[]{0x0000000001000000L}); | ||
3435 | public static final BitSet FOLLOW_20 = new BitSet(new long[]{0x000000000C080000L}); | ||
3436 | public static final BitSet FOLLOW_21 = new BitSet(new long[]{0x0000000008000000L}); | ||
3437 | public static final BitSet FOLLOW_22 = new BitSet(new long[]{0x0000000010000000L}); | ||
3438 | public static final BitSet FOLLOW_23 = new BitSet(new long[]{0x0000000060000000L}); | ||
3439 | public static final BitSet FOLLOW_24 = new BitSet(new long[]{0x0000001000010002L}); | ||
3440 | public static final BitSet FOLLOW_25 = new BitSet(new long[]{0x0000000000010002L}); | ||
3441 | public static final BitSet FOLLOW_26 = new BitSet(new long[]{0x0000000080080010L}); | ||
3442 | public static final BitSet FOLLOW_27 = new BitSet(new long[]{0x0000000100000000L}); | ||
3443 | public static final BitSet FOLLOW_28 = new BitSet(new long[]{0x0000000600000000L}); | ||
3444 | public static final BitSet FOLLOW_29 = new BitSet(new long[]{0x0000000080000010L}); | ||
3445 | public static final BitSet FOLLOW_30 = new BitSet(new long[]{0x0000000800000000L}); | ||
3446 | public static final BitSet FOLLOW_31 = new BitSet(new long[]{0x0000000800000002L}); | ||
3447 | public static final BitSet FOLLOW_32 = new BitSet(new long[]{0x0000002000000000L}); | ||
3448 | |||
3449 | } | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/scoping/AbstractCftLanguageScopeProvider.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/scoping/AbstractCftLanguageScopeProvider.java new file mode 100644 index 00000000..def0ebe9 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/scoping/AbstractCftLanguageScopeProvider.java | |||
@@ -0,0 +1,9 @@ | |||
1 | /* | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.scoping; | ||
5 | |||
6 | import org.eclipse.xtext.scoping.impl.DelegatingScopeProvider; | ||
7 | |||
8 | public abstract class AbstractCftLanguageScopeProvider extends DelegatingScopeProvider { | ||
9 | } | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/serializer/CftLanguageSemanticSequencer.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/serializer/CftLanguageSemanticSequencer.java new file mode 100644 index 00000000..18682f69 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/serializer/CftLanguageSemanticSequencer.java | |||
@@ -0,0 +1,315 @@ | |||
1 | /* | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.serializer; | ||
5 | |||
6 | import com.google.inject.Inject; | ||
7 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.AndGate; | ||
8 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.Assignment; | ||
9 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.BasicEventDefinition; | ||
10 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage; | ||
11 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftModel; | ||
12 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ComponentDefinition; | ||
13 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ComponentInstance; | ||
14 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.EventReference; | ||
15 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ImportDeclaration; | ||
16 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.InputEvent; | ||
17 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.LookupDefinition; | ||
18 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.MappingDefinition; | ||
19 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.MappingParameter; | ||
20 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.OrGate; | ||
21 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.TransformationDefinition; | ||
22 | import hu.bme.mit.inf.dslreasoner.faulttree.components.services.CftLanguageGrammarAccess; | ||
23 | import java.util.Set; | ||
24 | import org.eclipse.emf.ecore.EObject; | ||
25 | import org.eclipse.emf.ecore.EPackage; | ||
26 | import org.eclipse.xtext.Action; | ||
27 | import org.eclipse.xtext.Parameter; | ||
28 | import org.eclipse.xtext.ParserRule; | ||
29 | import org.eclipse.xtext.serializer.ISerializationContext; | ||
30 | import org.eclipse.xtext.serializer.acceptor.SequenceFeeder; | ||
31 | import org.eclipse.xtext.serializer.sequencer.AbstractDelegatingSemanticSequencer; | ||
32 | import org.eclipse.xtext.serializer.sequencer.ITransientValueService.ValueTransient; | ||
33 | |||
34 | @SuppressWarnings("all") | ||
35 | public class CftLanguageSemanticSequencer extends AbstractDelegatingSemanticSequencer { | ||
36 | |||
37 | @Inject | ||
38 | private CftLanguageGrammarAccess grammarAccess; | ||
39 | |||
40 | @Override | ||
41 | public void sequence(ISerializationContext context, EObject semanticObject) { | ||
42 | EPackage epackage = semanticObject.eClass().getEPackage(); | ||
43 | ParserRule rule = context.getParserRule(); | ||
44 | Action action = context.getAssignedAction(); | ||
45 | Set<Parameter> parameters = context.getEnabledBooleanParameters(); | ||
46 | if (epackage == CftLanguagePackage.eINSTANCE) | ||
47 | switch (semanticObject.eClass().getClassifierID()) { | ||
48 | case CftLanguagePackage.AND_GATE: | ||
49 | sequence_AndGate(context, (AndGate) semanticObject); | ||
50 | return; | ||
51 | case CftLanguagePackage.ASSIGNMENT: | ||
52 | sequence_Assignment(context, (Assignment) semanticObject); | ||
53 | return; | ||
54 | case CftLanguagePackage.BASIC_EVENT_DEFINITION: | ||
55 | sequence_BasicEventDefinition(context, (BasicEventDefinition) semanticObject); | ||
56 | return; | ||
57 | case CftLanguagePackage.CFT_MODEL: | ||
58 | sequence_CftModel(context, (CftModel) semanticObject); | ||
59 | return; | ||
60 | case CftLanguagePackage.COMPONENT_DEFINITION: | ||
61 | sequence_ComponentDefinition(context, (ComponentDefinition) semanticObject); | ||
62 | return; | ||
63 | case CftLanguagePackage.COMPONENT_INSTANCE: | ||
64 | sequence_ComponentInstance(context, (ComponentInstance) semanticObject); | ||
65 | return; | ||
66 | case CftLanguagePackage.EVENT_REFERENCE: | ||
67 | sequence_EventReference(context, (EventReference) semanticObject); | ||
68 | return; | ||
69 | case CftLanguagePackage.IMPORT_DECLARATION: | ||
70 | sequence_ImportDeclaration(context, (ImportDeclaration) semanticObject); | ||
71 | return; | ||
72 | case CftLanguagePackage.INPUT_EVENT: | ||
73 | sequence_InputEvent(context, (InputEvent) semanticObject); | ||
74 | return; | ||
75 | case CftLanguagePackage.LOOKUP_DEFINITION: | ||
76 | sequence_LookupDefinition(context, (LookupDefinition) semanticObject); | ||
77 | return; | ||
78 | case CftLanguagePackage.MAPPING_DEFINITION: | ||
79 | sequence_MappingDefinition(context, (MappingDefinition) semanticObject); | ||
80 | return; | ||
81 | case CftLanguagePackage.MAPPING_PARAMETER: | ||
82 | sequence_MappingParameter(context, (MappingParameter) semanticObject); | ||
83 | return; | ||
84 | case CftLanguagePackage.OR_GATE: | ||
85 | sequence_OrGate(context, (OrGate) semanticObject); | ||
86 | return; | ||
87 | case CftLanguagePackage.TRANSFORMATION_DEFINITION: | ||
88 | sequence_TransformationDefinition(context, (TransformationDefinition) semanticObject); | ||
89 | return; | ||
90 | } | ||
91 | if (errorAcceptor != null) | ||
92 | errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context)); | ||
93 | } | ||
94 | |||
95 | /** | ||
96 | * Contexts: | ||
97 | * EventDeclaration returns AndGate | ||
98 | * EventDefinition returns AndGate | ||
99 | * GateDefinition returns AndGate | ||
100 | * AndGate returns AndGate | ||
101 | * | ||
102 | * Constraint: | ||
103 | * (name=ID inputEvents+=[EventDeclaration|ID]*) | ||
104 | */ | ||
105 | protected void sequence_AndGate(ISerializationContext context, AndGate semanticObject) { | ||
106 | genericSequencer.createSequence(context, semanticObject); | ||
107 | } | ||
108 | |||
109 | |||
110 | /** | ||
111 | * Contexts: | ||
112 | * Assignment returns Assignment | ||
113 | * | ||
114 | * Constraint: | ||
115 | * (input=EventReference multiple?='+='? output=EventReference) | ||
116 | */ | ||
117 | protected void sequence_Assignment(ISerializationContext context, Assignment semanticObject) { | ||
118 | genericSequencer.createSequence(context, semanticObject); | ||
119 | } | ||
120 | |||
121 | |||
122 | /** | ||
123 | * Contexts: | ||
124 | * EventDeclaration returns BasicEventDefinition | ||
125 | * EventDefinition returns BasicEventDefinition | ||
126 | * BasicEventDefinition returns BasicEventDefinition | ||
127 | * | ||
128 | * Constraint: | ||
129 | * (name=ID rate=DOULBE) | ||
130 | */ | ||
131 | protected void sequence_BasicEventDefinition(ISerializationContext context, BasicEventDefinition semanticObject) { | ||
132 | if (errorAcceptor != null) { | ||
133 | if (transientValues.isValueTransient(semanticObject, CftLanguagePackage.Literals.EVENT_DECLARATION__NAME) == ValueTransient.YES) | ||
134 | errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, CftLanguagePackage.Literals.EVENT_DECLARATION__NAME)); | ||
135 | if (transientValues.isValueTransient(semanticObject, CftLanguagePackage.Literals.BASIC_EVENT_DEFINITION__RATE) == ValueTransient.YES) | ||
136 | errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, CftLanguagePackage.Literals.BASIC_EVENT_DEFINITION__RATE)); | ||
137 | } | ||
138 | SequenceFeeder feeder = createSequencerFeeder(context, semanticObject); | ||
139 | feeder.accept(grammarAccess.getBasicEventDefinitionAccess().getNameIDTerminalRuleCall_0_0(), semanticObject.getName()); | ||
140 | feeder.accept(grammarAccess.getBasicEventDefinitionAccess().getRateDOULBETerminalRuleCall_3_0(), semanticObject.getRate()); | ||
141 | feeder.finish(); | ||
142 | } | ||
143 | |||
144 | |||
145 | /** | ||
146 | * Contexts: | ||
147 | * CftModel returns CftModel | ||
148 | * | ||
149 | * Constraint: | ||
150 | * ( | ||
151 | * packageName=QualifiedName | ||
152 | * imports+=ImportDeclaration* | ||
153 | * (componentDefinitions+=ComponentDefinition | transformationDefinitions+=TransformationDefinition)* | ||
154 | * ) | ||
155 | */ | ||
156 | protected void sequence_CftModel(ISerializationContext context, CftModel semanticObject) { | ||
157 | genericSequencer.createSequence(context, semanticObject); | ||
158 | } | ||
159 | |||
160 | |||
161 | /** | ||
162 | * Contexts: | ||
163 | * ComponentDefinition returns ComponentDefinition | ||
164 | * | ||
165 | * Constraint: | ||
166 | * (name=ID (inputEvents+=InputEvent | outputEvents+=[EventDeclaration|ID])* eventDefinitions+=EventDefinition*) | ||
167 | */ | ||
168 | protected void sequence_ComponentDefinition(ISerializationContext context, ComponentDefinition semanticObject) { | ||
169 | genericSequencer.createSequence(context, semanticObject); | ||
170 | } | ||
171 | |||
172 | |||
173 | /** | ||
174 | * Contexts: | ||
175 | * Variable returns ComponentInstance | ||
176 | * ComponentInstance returns ComponentInstance | ||
177 | * | ||
178 | * Constraint: | ||
179 | * (componentType=[ComponentDefinition|QualifiedName] name=ID?) | ||
180 | */ | ||
181 | protected void sequence_ComponentInstance(ISerializationContext context, ComponentInstance semanticObject) { | ||
182 | genericSequencer.createSequence(context, semanticObject); | ||
183 | } | ||
184 | |||
185 | |||
186 | /** | ||
187 | * Contexts: | ||
188 | * EventReference returns EventReference | ||
189 | * | ||
190 | * Constraint: | ||
191 | * (component=[Variable|ID] event=[EventDeclaration|ID]) | ||
192 | */ | ||
193 | protected void sequence_EventReference(ISerializationContext context, EventReference semanticObject) { | ||
194 | if (errorAcceptor != null) { | ||
195 | if (transientValues.isValueTransient(semanticObject, CftLanguagePackage.Literals.EVENT_REFERENCE__COMPONENT) == ValueTransient.YES) | ||
196 | errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, CftLanguagePackage.Literals.EVENT_REFERENCE__COMPONENT)); | ||
197 | if (transientValues.isValueTransient(semanticObject, CftLanguagePackage.Literals.EVENT_REFERENCE__EVENT) == ValueTransient.YES) | ||
198 | errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, CftLanguagePackage.Literals.EVENT_REFERENCE__EVENT)); | ||
199 | } | ||
200 | SequenceFeeder feeder = createSequencerFeeder(context, semanticObject); | ||
201 | feeder.accept(grammarAccess.getEventReferenceAccess().getComponentVariableIDTerminalRuleCall_0_0_1(), semanticObject.eGet(CftLanguagePackage.Literals.EVENT_REFERENCE__COMPONENT, false)); | ||
202 | feeder.accept(grammarAccess.getEventReferenceAccess().getEventEventDeclarationIDTerminalRuleCall_2_0_1(), semanticObject.eGet(CftLanguagePackage.Literals.EVENT_REFERENCE__EVENT, false)); | ||
203 | feeder.finish(); | ||
204 | } | ||
205 | |||
206 | |||
207 | /** | ||
208 | * Contexts: | ||
209 | * ImportDeclaration returns ImportDeclaration | ||
210 | * | ||
211 | * Constraint: | ||
212 | * importedNamespace=QualifiedNameWithWildcard | ||
213 | */ | ||
214 | protected void sequence_ImportDeclaration(ISerializationContext context, ImportDeclaration semanticObject) { | ||
215 | if (errorAcceptor != null) { | ||
216 | if (transientValues.isValueTransient(semanticObject, CftLanguagePackage.Literals.IMPORT_DECLARATION__IMPORTED_NAMESPACE) == ValueTransient.YES) | ||
217 | errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, CftLanguagePackage.Literals.IMPORT_DECLARATION__IMPORTED_NAMESPACE)); | ||
218 | } | ||
219 | SequenceFeeder feeder = createSequencerFeeder(context, semanticObject); | ||
220 | feeder.accept(grammarAccess.getImportDeclarationAccess().getImportedNamespaceQualifiedNameWithWildcardParserRuleCall_1_0(), semanticObject.getImportedNamespace()); | ||
221 | feeder.finish(); | ||
222 | } | ||
223 | |||
224 | |||
225 | /** | ||
226 | * Contexts: | ||
227 | * EventDeclaration returns InputEvent | ||
228 | * InputEvent returns InputEvent | ||
229 | * | ||
230 | * Constraint: | ||
231 | * (name=ID multiple?='[]'?) | ||
232 | */ | ||
233 | protected void sequence_InputEvent(ISerializationContext context, InputEvent semanticObject) { | ||
234 | genericSequencer.createSequence(context, semanticObject); | ||
235 | } | ||
236 | |||
237 | |||
238 | /** | ||
239 | * Contexts: | ||
240 | * LookupDefinition returns LookupDefinition | ||
241 | * Variable returns LookupDefinition | ||
242 | * | ||
243 | * Constraint: | ||
244 | * (mapping=[MappingDefinition|ID] arguments+=[MappingParameter|ID] arguments+=[MappingParameter|ID]* name=ID) | ||
245 | */ | ||
246 | protected void sequence_LookupDefinition(ISerializationContext context, LookupDefinition semanticObject) { | ||
247 | genericSequencer.createSequence(context, semanticObject); | ||
248 | } | ||
249 | |||
250 | |||
251 | /** | ||
252 | * Contexts: | ||
253 | * MappingDefinition returns MappingDefinition | ||
254 | * | ||
255 | * Constraint: | ||
256 | * ( | ||
257 | * topLevel?='toplevel'? | ||
258 | * pattern=[Pattern|QualifiedName] | ||
259 | * parameters+=MappingParameter | ||
260 | * parameters+=MappingParameter* | ||
261 | * componentInstance=ComponentInstance? | ||
262 | * (lookupDefinitions+=LookupDefinition | assignments+=Assignment)* | ||
263 | * ) | ||
264 | */ | ||
265 | protected void sequence_MappingDefinition(ISerializationContext context, MappingDefinition semanticObject) { | ||
266 | genericSequencer.createSequence(context, semanticObject); | ||
267 | } | ||
268 | |||
269 | |||
270 | /** | ||
271 | * Contexts: | ||
272 | * MappingParameter returns MappingParameter | ||
273 | * | ||
274 | * Constraint: | ||
275 | * name=ID | ||
276 | */ | ||
277 | protected void sequence_MappingParameter(ISerializationContext context, MappingParameter semanticObject) { | ||
278 | if (errorAcceptor != null) { | ||
279 | if (transientValues.isValueTransient(semanticObject, CftLanguagePackage.Literals.MAPPING_PARAMETER__NAME) == ValueTransient.YES) | ||
280 | errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, CftLanguagePackage.Literals.MAPPING_PARAMETER__NAME)); | ||
281 | } | ||
282 | SequenceFeeder feeder = createSequencerFeeder(context, semanticObject); | ||
283 | feeder.accept(grammarAccess.getMappingParameterAccess().getNameIDTerminalRuleCall_0(), semanticObject.getName()); | ||
284 | feeder.finish(); | ||
285 | } | ||
286 | |||
287 | |||
288 | /** | ||
289 | * Contexts: | ||
290 | * EventDeclaration returns OrGate | ||
291 | * EventDefinition returns OrGate | ||
292 | * GateDefinition returns OrGate | ||
293 | * OrGate returns OrGate | ||
294 | * | ||
295 | * Constraint: | ||
296 | * (name=ID inputEvents+=[EventDeclaration|ID]*) | ||
297 | */ | ||
298 | protected void sequence_OrGate(ISerializationContext context, OrGate semanticObject) { | ||
299 | genericSequencer.createSequence(context, semanticObject); | ||
300 | } | ||
301 | |||
302 | |||
303 | /** | ||
304 | * Contexts: | ||
305 | * TransformationDefinition returns TransformationDefinition | ||
306 | * | ||
307 | * Constraint: | ||
308 | * (name=ID mappingDefinitions+=MappingDefinition*) | ||
309 | */ | ||
310 | protected void sequence_TransformationDefinition(ISerializationContext context, TransformationDefinition semanticObject) { | ||
311 | genericSequencer.createSequence(context, semanticObject); | ||
312 | } | ||
313 | |||
314 | |||
315 | } | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/serializer/CftLanguageSyntacticSequencer.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/serializer/CftLanguageSyntacticSequencer.java new file mode 100644 index 00000000..65b39fb2 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/serializer/CftLanguageSyntacticSequencer.java | |||
@@ -0,0 +1,242 @@ | |||
1 | /* | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.serializer; | ||
5 | |||
6 | import com.google.inject.Inject; | ||
7 | import hu.bme.mit.inf.dslreasoner.faulttree.components.services.CftLanguageGrammarAccess; | ||
8 | import java.util.List; | ||
9 | import org.eclipse.emf.ecore.EObject; | ||
10 | import org.eclipse.xtext.IGrammarAccess; | ||
11 | import org.eclipse.xtext.RuleCall; | ||
12 | import org.eclipse.xtext.nodemodel.INode; | ||
13 | import org.eclipse.xtext.serializer.analysis.GrammarAlias.AbstractElementAlias; | ||
14 | import org.eclipse.xtext.serializer.analysis.GrammarAlias.AlternativeAlias; | ||
15 | import org.eclipse.xtext.serializer.analysis.GrammarAlias.GroupAlias; | ||
16 | import org.eclipse.xtext.serializer.analysis.GrammarAlias.TokenAlias; | ||
17 | import org.eclipse.xtext.serializer.analysis.ISyntacticSequencerPDAProvider.ISynNavigable; | ||
18 | import org.eclipse.xtext.serializer.analysis.ISyntacticSequencerPDAProvider.ISynTransition; | ||
19 | import org.eclipse.xtext.serializer.sequencer.AbstractSyntacticSequencer; | ||
20 | |||
21 | @SuppressWarnings("all") | ||
22 | public class CftLanguageSyntacticSequencer extends AbstractSyntacticSequencer { | ||
23 | |||
24 | protected CftLanguageGrammarAccess grammarAccess; | ||
25 | protected AbstractElementAlias match_CftModel_SemicolonKeyword_2_q; | ||
26 | protected AbstractElementAlias match_ComponentDefinition___InKeyword_3_0_0_SemicolonKeyword_3_0_2___OutKeyword_3_1_0_SemicolonKeyword_3_1_2__a__a; | ||
27 | protected AbstractElementAlias match_ComponentDefinition___InKeyword_3_0_0_SemicolonKeyword_3_0_2__a; | ||
28 | protected AbstractElementAlias match_ComponentDefinition___OutKeyword_3_1_0_SemicolonKeyword_3_1_2___InKeyword_3_0_0_SemicolonKeyword_3_0_2__a__a; | ||
29 | protected AbstractElementAlias match_ComponentDefinition___OutKeyword_3_1_0_SemicolonKeyword_3_1_2__a; | ||
30 | protected AbstractElementAlias match_ComponentDefinition___SemicolonKeyword_3_0_2___OutKeyword_3_1_0_SemicolonKeyword_3_1_2__a_InKeyword_3_0_0__a; | ||
31 | protected AbstractElementAlias match_ComponentDefinition___SemicolonKeyword_3_1_2___InKeyword_3_0_0_SemicolonKeyword_3_0_2__a_OutKeyword_3_1_0__a; | ||
32 | protected AbstractElementAlias match_ComponentDefinition_____InKeyword_3_0_0_SemicolonKeyword_3_0_2___or___OutKeyword_3_1_0_SemicolonKeyword_3_1_2____a; | ||
33 | protected AbstractElementAlias match_ComponentDefinition_____InKeyword_3_0_0_SemicolonKeyword_3_0_2__q___InKeyword_3_0_0_SemicolonKeyword_3_0_2_OutKeyword_3_1_0_SemicolonKeyword_3_1_2__q__p; | ||
34 | protected AbstractElementAlias match_ComponentDefinition_____OutKeyword_3_1_0_SemicolonKeyword_3_1_2__q___OutKeyword_3_1_0_SemicolonKeyword_3_1_2_InKeyword_3_0_0_SemicolonKeyword_3_0_2__q__p; | ||
35 | protected AbstractElementAlias match_ImportDeclaration_SemicolonKeyword_2_q; | ||
36 | protected AbstractElementAlias match_MappingDefinition___LeftCurlyBracketKeyword_8_0_RightCurlyBracketKeyword_8_2__q; | ||
37 | |||
38 | @Inject | ||
39 | protected void init(IGrammarAccess access) { | ||
40 | grammarAccess = (CftLanguageGrammarAccess) access; | ||
41 | match_CftModel_SemicolonKeyword_2_q = new TokenAlias(false, true, grammarAccess.getCftModelAccess().getSemicolonKeyword_2()); | ||
42 | match_ComponentDefinition___InKeyword_3_0_0_SemicolonKeyword_3_0_2___OutKeyword_3_1_0_SemicolonKeyword_3_1_2__a__a = new GroupAlias(true, true, new TokenAlias(false, false, grammarAccess.getComponentDefinitionAccess().getInKeyword_3_0_0()), new TokenAlias(false, false, grammarAccess.getComponentDefinitionAccess().getSemicolonKeyword_3_0_2()), new GroupAlias(true, true, new TokenAlias(false, false, grammarAccess.getComponentDefinitionAccess().getOutKeyword_3_1_0()), new TokenAlias(false, false, grammarAccess.getComponentDefinitionAccess().getSemicolonKeyword_3_1_2()))); | ||
43 | match_ComponentDefinition___InKeyword_3_0_0_SemicolonKeyword_3_0_2__a = new GroupAlias(true, true, new TokenAlias(false, false, grammarAccess.getComponentDefinitionAccess().getInKeyword_3_0_0()), new TokenAlias(false, false, grammarAccess.getComponentDefinitionAccess().getSemicolonKeyword_3_0_2())); | ||
44 | match_ComponentDefinition___OutKeyword_3_1_0_SemicolonKeyword_3_1_2___InKeyword_3_0_0_SemicolonKeyword_3_0_2__a__a = new GroupAlias(true, true, new TokenAlias(false, false, grammarAccess.getComponentDefinitionAccess().getOutKeyword_3_1_0()), new TokenAlias(false, false, grammarAccess.getComponentDefinitionAccess().getSemicolonKeyword_3_1_2()), new GroupAlias(true, true, new TokenAlias(false, false, grammarAccess.getComponentDefinitionAccess().getInKeyword_3_0_0()), new TokenAlias(false, false, grammarAccess.getComponentDefinitionAccess().getSemicolonKeyword_3_0_2()))); | ||
45 | match_ComponentDefinition___OutKeyword_3_1_0_SemicolonKeyword_3_1_2__a = new GroupAlias(true, true, new TokenAlias(false, false, grammarAccess.getComponentDefinitionAccess().getOutKeyword_3_1_0()), new TokenAlias(false, false, grammarAccess.getComponentDefinitionAccess().getSemicolonKeyword_3_1_2())); | ||
46 | match_ComponentDefinition___SemicolonKeyword_3_0_2___OutKeyword_3_1_0_SemicolonKeyword_3_1_2__a_InKeyword_3_0_0__a = new GroupAlias(true, true, new TokenAlias(false, false, grammarAccess.getComponentDefinitionAccess().getSemicolonKeyword_3_0_2()), new GroupAlias(true, true, new TokenAlias(false, false, grammarAccess.getComponentDefinitionAccess().getOutKeyword_3_1_0()), new TokenAlias(false, false, grammarAccess.getComponentDefinitionAccess().getSemicolonKeyword_3_1_2())), new TokenAlias(false, false, grammarAccess.getComponentDefinitionAccess().getInKeyword_3_0_0())); | ||
47 | match_ComponentDefinition___SemicolonKeyword_3_1_2___InKeyword_3_0_0_SemicolonKeyword_3_0_2__a_OutKeyword_3_1_0__a = new GroupAlias(true, true, new TokenAlias(false, false, grammarAccess.getComponentDefinitionAccess().getSemicolonKeyword_3_1_2()), new GroupAlias(true, true, new TokenAlias(false, false, grammarAccess.getComponentDefinitionAccess().getInKeyword_3_0_0()), new TokenAlias(false, false, grammarAccess.getComponentDefinitionAccess().getSemicolonKeyword_3_0_2())), new TokenAlias(false, false, grammarAccess.getComponentDefinitionAccess().getOutKeyword_3_1_0())); | ||
48 | match_ComponentDefinition_____InKeyword_3_0_0_SemicolonKeyword_3_0_2___or___OutKeyword_3_1_0_SemicolonKeyword_3_1_2____a = new AlternativeAlias(true, true, new GroupAlias(false, false, new TokenAlias(false, false, grammarAccess.getComponentDefinitionAccess().getInKeyword_3_0_0()), new TokenAlias(false, false, grammarAccess.getComponentDefinitionAccess().getSemicolonKeyword_3_0_2())), new GroupAlias(false, false, new TokenAlias(false, false, grammarAccess.getComponentDefinitionAccess().getOutKeyword_3_1_0()), new TokenAlias(false, false, grammarAccess.getComponentDefinitionAccess().getSemicolonKeyword_3_1_2()))); | ||
49 | match_ComponentDefinition_____InKeyword_3_0_0_SemicolonKeyword_3_0_2__q___InKeyword_3_0_0_SemicolonKeyword_3_0_2_OutKeyword_3_1_0_SemicolonKeyword_3_1_2__q__p = new GroupAlias(true, false, new GroupAlias(false, true, new TokenAlias(false, false, grammarAccess.getComponentDefinitionAccess().getInKeyword_3_0_0()), new TokenAlias(false, false, grammarAccess.getComponentDefinitionAccess().getSemicolonKeyword_3_0_2())), new GroupAlias(false, true, new TokenAlias(false, false, grammarAccess.getComponentDefinitionAccess().getInKeyword_3_0_0()), new TokenAlias(false, false, grammarAccess.getComponentDefinitionAccess().getSemicolonKeyword_3_0_2()), new TokenAlias(false, false, grammarAccess.getComponentDefinitionAccess().getOutKeyword_3_1_0()), new TokenAlias(false, false, grammarAccess.getComponentDefinitionAccess().getSemicolonKeyword_3_1_2()))); | ||
50 | match_ComponentDefinition_____OutKeyword_3_1_0_SemicolonKeyword_3_1_2__q___OutKeyword_3_1_0_SemicolonKeyword_3_1_2_InKeyword_3_0_0_SemicolonKeyword_3_0_2__q__p = new GroupAlias(true, false, new GroupAlias(false, true, new TokenAlias(false, false, grammarAccess.getComponentDefinitionAccess().getOutKeyword_3_1_0()), new TokenAlias(false, false, grammarAccess.getComponentDefinitionAccess().getSemicolonKeyword_3_1_2())), new GroupAlias(false, true, new TokenAlias(false, false, grammarAccess.getComponentDefinitionAccess().getOutKeyword_3_1_0()), new TokenAlias(false, false, grammarAccess.getComponentDefinitionAccess().getSemicolonKeyword_3_1_2()), new TokenAlias(false, false, grammarAccess.getComponentDefinitionAccess().getInKeyword_3_0_0()), new TokenAlias(false, false, grammarAccess.getComponentDefinitionAccess().getSemicolonKeyword_3_0_2()))); | ||
51 | match_ImportDeclaration_SemicolonKeyword_2_q = new TokenAlias(false, true, grammarAccess.getImportDeclarationAccess().getSemicolonKeyword_2()); | ||
52 | match_MappingDefinition___LeftCurlyBracketKeyword_8_0_RightCurlyBracketKeyword_8_2__q = new GroupAlias(false, true, new TokenAlias(false, false, grammarAccess.getMappingDefinitionAccess().getLeftCurlyBracketKeyword_8_0()), new TokenAlias(false, false, grammarAccess.getMappingDefinitionAccess().getRightCurlyBracketKeyword_8_2())); | ||
53 | } | ||
54 | |||
55 | @Override | ||
56 | protected String getUnassignedRuleCallToken(EObject semanticObject, RuleCall ruleCall, INode node) { | ||
57 | return ""; | ||
58 | } | ||
59 | |||
60 | |||
61 | @Override | ||
62 | protected void emitUnassignedTokens(EObject semanticObject, ISynTransition transition, INode fromNode, INode toNode) { | ||
63 | if (transition.getAmbiguousSyntaxes().isEmpty()) return; | ||
64 | List<INode> transitionNodes = collectNodes(fromNode, toNode); | ||
65 | for (AbstractElementAlias syntax : transition.getAmbiguousSyntaxes()) { | ||
66 | List<INode> syntaxNodes = getNodesFor(transitionNodes, syntax); | ||
67 | if (match_CftModel_SemicolonKeyword_2_q.equals(syntax)) | ||
68 | emit_CftModel_SemicolonKeyword_2_q(semanticObject, getLastNavigableState(), syntaxNodes); | ||
69 | else if (match_ComponentDefinition___InKeyword_3_0_0_SemicolonKeyword_3_0_2___OutKeyword_3_1_0_SemicolonKeyword_3_1_2__a__a.equals(syntax)) | ||
70 | emit_ComponentDefinition___InKeyword_3_0_0_SemicolonKeyword_3_0_2___OutKeyword_3_1_0_SemicolonKeyword_3_1_2__a__a(semanticObject, getLastNavigableState(), syntaxNodes); | ||
71 | else if (match_ComponentDefinition___InKeyword_3_0_0_SemicolonKeyword_3_0_2__a.equals(syntax)) | ||
72 | emit_ComponentDefinition___InKeyword_3_0_0_SemicolonKeyword_3_0_2__a(semanticObject, getLastNavigableState(), syntaxNodes); | ||
73 | else if (match_ComponentDefinition___OutKeyword_3_1_0_SemicolonKeyword_3_1_2___InKeyword_3_0_0_SemicolonKeyword_3_0_2__a__a.equals(syntax)) | ||
74 | emit_ComponentDefinition___OutKeyword_3_1_0_SemicolonKeyword_3_1_2___InKeyword_3_0_0_SemicolonKeyword_3_0_2__a__a(semanticObject, getLastNavigableState(), syntaxNodes); | ||
75 | else if (match_ComponentDefinition___OutKeyword_3_1_0_SemicolonKeyword_3_1_2__a.equals(syntax)) | ||
76 | emit_ComponentDefinition___OutKeyword_3_1_0_SemicolonKeyword_3_1_2__a(semanticObject, getLastNavigableState(), syntaxNodes); | ||
77 | else if (match_ComponentDefinition___SemicolonKeyword_3_0_2___OutKeyword_3_1_0_SemicolonKeyword_3_1_2__a_InKeyword_3_0_0__a.equals(syntax)) | ||
78 | emit_ComponentDefinition___SemicolonKeyword_3_0_2___OutKeyword_3_1_0_SemicolonKeyword_3_1_2__a_InKeyword_3_0_0__a(semanticObject, getLastNavigableState(), syntaxNodes); | ||
79 | else if (match_ComponentDefinition___SemicolonKeyword_3_1_2___InKeyword_3_0_0_SemicolonKeyword_3_0_2__a_OutKeyword_3_1_0__a.equals(syntax)) | ||
80 | emit_ComponentDefinition___SemicolonKeyword_3_1_2___InKeyword_3_0_0_SemicolonKeyword_3_0_2__a_OutKeyword_3_1_0__a(semanticObject, getLastNavigableState(), syntaxNodes); | ||
81 | else if (match_ComponentDefinition_____InKeyword_3_0_0_SemicolonKeyword_3_0_2___or___OutKeyword_3_1_0_SemicolonKeyword_3_1_2____a.equals(syntax)) | ||
82 | emit_ComponentDefinition_____InKeyword_3_0_0_SemicolonKeyword_3_0_2___or___OutKeyword_3_1_0_SemicolonKeyword_3_1_2____a(semanticObject, getLastNavigableState(), syntaxNodes); | ||
83 | else if (match_ComponentDefinition_____InKeyword_3_0_0_SemicolonKeyword_3_0_2__q___InKeyword_3_0_0_SemicolonKeyword_3_0_2_OutKeyword_3_1_0_SemicolonKeyword_3_1_2__q__p.equals(syntax)) | ||
84 | emit_ComponentDefinition_____InKeyword_3_0_0_SemicolonKeyword_3_0_2__q___InKeyword_3_0_0_SemicolonKeyword_3_0_2_OutKeyword_3_1_0_SemicolonKeyword_3_1_2__q__p(semanticObject, getLastNavigableState(), syntaxNodes); | ||
85 | else if (match_ComponentDefinition_____OutKeyword_3_1_0_SemicolonKeyword_3_1_2__q___OutKeyword_3_1_0_SemicolonKeyword_3_1_2_InKeyword_3_0_0_SemicolonKeyword_3_0_2__q__p.equals(syntax)) | ||
86 | emit_ComponentDefinition_____OutKeyword_3_1_0_SemicolonKeyword_3_1_2__q___OutKeyword_3_1_0_SemicolonKeyword_3_1_2_InKeyword_3_0_0_SemicolonKeyword_3_0_2__q__p(semanticObject, getLastNavigableState(), syntaxNodes); | ||
87 | else if (match_ImportDeclaration_SemicolonKeyword_2_q.equals(syntax)) | ||
88 | emit_ImportDeclaration_SemicolonKeyword_2_q(semanticObject, getLastNavigableState(), syntaxNodes); | ||
89 | else if (match_MappingDefinition___LeftCurlyBracketKeyword_8_0_RightCurlyBracketKeyword_8_2__q.equals(syntax)) | ||
90 | emit_MappingDefinition___LeftCurlyBracketKeyword_8_0_RightCurlyBracketKeyword_8_2__q(semanticObject, getLastNavigableState(), syntaxNodes); | ||
91 | else acceptNodes(getLastNavigableState(), syntaxNodes); | ||
92 | } | ||
93 | } | ||
94 | |||
95 | /** | ||
96 | * Ambiguous syntax: | ||
97 | * ';'? | ||
98 | * | ||
99 | * This ambiguous syntax occurs at: | ||
100 | * packageName=QualifiedName (ambiguity) (rule end) | ||
101 | * packageName=QualifiedName (ambiguity) componentDefinitions+=ComponentDefinition | ||
102 | * packageName=QualifiedName (ambiguity) imports+=ImportDeclaration | ||
103 | * packageName=QualifiedName (ambiguity) transformationDefinitions+=TransformationDefinition | ||
104 | */ | ||
105 | protected void emit_CftModel_SemicolonKeyword_2_q(EObject semanticObject, ISynNavigable transition, List<INode> nodes) { | ||
106 | acceptNodes(transition, nodes); | ||
107 | } | ||
108 | |||
109 | /** | ||
110 | * Ambiguous syntax: | ||
111 | * ('in' ';' ('out' ';')*)* | ||
112 | * | ||
113 | * This ambiguous syntax occurs at: | ||
114 | * inputEvents+=InputEvent ';' ('out' ';')* (ambiguity) '}' (rule end) | ||
115 | * inputEvents+=InputEvent ';' ('out' ';')* (ambiguity) eventDefinitions+=EventDefinition | ||
116 | */ | ||
117 | protected void emit_ComponentDefinition___InKeyword_3_0_0_SemicolonKeyword_3_0_2___OutKeyword_3_1_0_SemicolonKeyword_3_1_2__a__a(EObject semanticObject, ISynNavigable transition, List<INode> nodes) { | ||
118 | acceptNodes(transition, nodes); | ||
119 | } | ||
120 | |||
121 | /** | ||
122 | * Ambiguous syntax: | ||
123 | * ('in' ';')* | ||
124 | * | ||
125 | * This ambiguous syntax occurs at: | ||
126 | * inputEvents+=InputEvent ';' (ambiguity) (('out' ';')? ('out' ';' 'in' ';')?)+ 'out' outputEvents+=[EventDeclaration|ID] | ||
127 | * name=ID '{' (ambiguity) 'out' (';' (ambiguity) 'out')* outputEvents+=[EventDeclaration|ID] | ||
128 | * outputEvents+=[EventDeclaration|ID] ';' (ambiguity) ('out' ';' (ambiguity))* '}' (rule end) | ||
129 | * outputEvents+=[EventDeclaration|ID] ';' (ambiguity) ('out' ';' (ambiguity))* eventDefinitions+=EventDefinition | ||
130 | */ | ||
131 | protected void emit_ComponentDefinition___InKeyword_3_0_0_SemicolonKeyword_3_0_2__a(EObject semanticObject, ISynNavigable transition, List<INode> nodes) { | ||
132 | acceptNodes(transition, nodes); | ||
133 | } | ||
134 | |||
135 | /** | ||
136 | * Ambiguous syntax: | ||
137 | * ('out' ';' ('in' ';')*)* | ||
138 | * | ||
139 | * This ambiguous syntax occurs at: | ||
140 | * outputEvents+=[EventDeclaration|ID] ';' ('in' ';')* (ambiguity) '}' (rule end) | ||
141 | * outputEvents+=[EventDeclaration|ID] ';' ('in' ';')* (ambiguity) eventDefinitions+=EventDefinition | ||
142 | */ | ||
143 | protected void emit_ComponentDefinition___OutKeyword_3_1_0_SemicolonKeyword_3_1_2___InKeyword_3_0_0_SemicolonKeyword_3_0_2__a__a(EObject semanticObject, ISynNavigable transition, List<INode> nodes) { | ||
144 | acceptNodes(transition, nodes); | ||
145 | } | ||
146 | |||
147 | /** | ||
148 | * Ambiguous syntax: | ||
149 | * ('out' ';')* | ||
150 | * | ||
151 | * This ambiguous syntax occurs at: | ||
152 | * inputEvents+=InputEvent ';' (ambiguity) ('in' ';' (ambiguity))* '}' (rule end) | ||
153 | * inputEvents+=InputEvent ';' (ambiguity) ('in' ';' (ambiguity))* eventDefinitions+=EventDefinition | ||
154 | * name=ID '{' (ambiguity) 'in' (';' (ambiguity) 'in')* inputEvents+=InputEvent | ||
155 | * outputEvents+=[EventDeclaration|ID] ';' (ambiguity) (('in' ';')? ('in' ';' 'out' ';')?)+ 'in' inputEvents+=InputEvent | ||
156 | */ | ||
157 | protected void emit_ComponentDefinition___OutKeyword_3_1_0_SemicolonKeyword_3_1_2__a(EObject semanticObject, ISynNavigable transition, List<INode> nodes) { | ||
158 | acceptNodes(transition, nodes); | ||
159 | } | ||
160 | |||
161 | /** | ||
162 | * Ambiguous syntax: | ||
163 | * (';' ('out' ';')* 'in')* | ||
164 | * | ||
165 | * This ambiguous syntax occurs at: | ||
166 | * inputEvents+=InputEvent (ambiguity) inputEvents+=InputEvent | ||
167 | * name=ID '{' ('out' ';')* 'in' (ambiguity) inputEvents+=InputEvent | ||
168 | */ | ||
169 | protected void emit_ComponentDefinition___SemicolonKeyword_3_0_2___OutKeyword_3_1_0_SemicolonKeyword_3_1_2__a_InKeyword_3_0_0__a(EObject semanticObject, ISynNavigable transition, List<INode> nodes) { | ||
170 | acceptNodes(transition, nodes); | ||
171 | } | ||
172 | |||
173 | /** | ||
174 | * Ambiguous syntax: | ||
175 | * (';' ('in' ';')* 'out')* | ||
176 | * | ||
177 | * This ambiguous syntax occurs at: | ||
178 | * name=ID '{' ('in' ';')* 'out' (ambiguity) outputEvents+=[EventDeclaration|ID] | ||
179 | * outputEvents+=[EventDeclaration|ID] (ambiguity) outputEvents+=[EventDeclaration|ID] | ||
180 | */ | ||
181 | protected void emit_ComponentDefinition___SemicolonKeyword_3_1_2___InKeyword_3_0_0_SemicolonKeyword_3_0_2__a_OutKeyword_3_1_0__a(EObject semanticObject, ISynNavigable transition, List<INode> nodes) { | ||
182 | acceptNodes(transition, nodes); | ||
183 | } | ||
184 | |||
185 | /** | ||
186 | * Ambiguous syntax: | ||
187 | * (('in' ';') | ('out' ';'))* | ||
188 | * | ||
189 | * This ambiguous syntax occurs at: | ||
190 | * name=ID '{' (ambiguity) '}' (rule end) | ||
191 | * name=ID '{' (ambiguity) eventDefinitions+=EventDefinition | ||
192 | */ | ||
193 | protected void emit_ComponentDefinition_____InKeyword_3_0_0_SemicolonKeyword_3_0_2___or___OutKeyword_3_1_0_SemicolonKeyword_3_1_2____a(EObject semanticObject, ISynNavigable transition, List<INode> nodes) { | ||
194 | acceptNodes(transition, nodes); | ||
195 | } | ||
196 | |||
197 | /** | ||
198 | * Ambiguous syntax: | ||
199 | * (('in' ';')? ('in' ';' 'out' ';')?)+ | ||
200 | * | ||
201 | * This ambiguous syntax occurs at: | ||
202 | * outputEvents+=[EventDeclaration|ID] ';' ('out' ';')* (ambiguity) 'in' inputEvents+=InputEvent | ||
203 | */ | ||
204 | protected void emit_ComponentDefinition_____InKeyword_3_0_0_SemicolonKeyword_3_0_2__q___InKeyword_3_0_0_SemicolonKeyword_3_0_2_OutKeyword_3_1_0_SemicolonKeyword_3_1_2__q__p(EObject semanticObject, ISynNavigable transition, List<INode> nodes) { | ||
205 | acceptNodes(transition, nodes); | ||
206 | } | ||
207 | |||
208 | /** | ||
209 | * Ambiguous syntax: | ||
210 | * (('out' ';')? ('out' ';' 'in' ';')?)+ | ||
211 | * | ||
212 | * This ambiguous syntax occurs at: | ||
213 | * inputEvents+=InputEvent ';' ('in' ';')* (ambiguity) 'out' outputEvents+=[EventDeclaration|ID] | ||
214 | */ | ||
215 | protected void emit_ComponentDefinition_____OutKeyword_3_1_0_SemicolonKeyword_3_1_2__q___OutKeyword_3_1_0_SemicolonKeyword_3_1_2_InKeyword_3_0_0_SemicolonKeyword_3_0_2__q__p(EObject semanticObject, ISynNavigable transition, List<INode> nodes) { | ||
216 | acceptNodes(transition, nodes); | ||
217 | } | ||
218 | |||
219 | /** | ||
220 | * Ambiguous syntax: | ||
221 | * ';'? | ||
222 | * | ||
223 | * This ambiguous syntax occurs at: | ||
224 | * importedNamespace=QualifiedNameWithWildcard (ambiguity) (rule end) | ||
225 | */ | ||
226 | protected void emit_ImportDeclaration_SemicolonKeyword_2_q(EObject semanticObject, ISynNavigable transition, List<INode> nodes) { | ||
227 | acceptNodes(transition, nodes); | ||
228 | } | ||
229 | |||
230 | /** | ||
231 | * Ambiguous syntax: | ||
232 | * ('{' '}')? | ||
233 | * | ||
234 | * This ambiguous syntax occurs at: | ||
235 | * componentInstance=ComponentInstance (ambiguity) (rule end) | ||
236 | * parameters+=MappingParameter ')' (ambiguity) (rule end) | ||
237 | */ | ||
238 | protected void emit_MappingDefinition___LeftCurlyBracketKeyword_8_0_RightCurlyBracketKeyword_8_2__q(EObject semanticObject, ISynNavigable transition, List<INode> nodes) { | ||
239 | acceptNodes(transition, nodes); | ||
240 | } | ||
241 | |||
242 | } | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/services/CftLanguageGrammarAccess.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/services/CftLanguageGrammarAccess.java new file mode 100644 index 00000000..1ca0cf8e --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/services/CftLanguageGrammarAccess.java | |||
@@ -0,0 +1,1189 @@ | |||
1 | /* | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.services; | ||
5 | |||
6 | import com.google.inject.Inject; | ||
7 | import com.google.inject.Singleton; | ||
8 | import java.util.List; | ||
9 | import org.eclipse.xtext.Alternatives; | ||
10 | import org.eclipse.xtext.Assignment; | ||
11 | import org.eclipse.xtext.CrossReference; | ||
12 | import org.eclipse.xtext.Grammar; | ||
13 | import org.eclipse.xtext.GrammarUtil; | ||
14 | import org.eclipse.xtext.Group; | ||
15 | import org.eclipse.xtext.Keyword; | ||
16 | import org.eclipse.xtext.ParserRule; | ||
17 | import org.eclipse.xtext.RuleCall; | ||
18 | import org.eclipse.xtext.TerminalRule; | ||
19 | import org.eclipse.xtext.UnorderedGroup; | ||
20 | import org.eclipse.xtext.common.services.TerminalsGrammarAccess; | ||
21 | import org.eclipse.xtext.service.AbstractElementFinder.AbstractGrammarElementFinder; | ||
22 | import org.eclipse.xtext.service.GrammarProvider; | ||
23 | |||
24 | @Singleton | ||
25 | public class CftLanguageGrammarAccess extends AbstractGrammarElementFinder { | ||
26 | |||
27 | public class CftModelElements extends AbstractParserRuleElementFinder { | ||
28 | private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.CftModel"); | ||
29 | private final Group cGroup = (Group)rule.eContents().get(1); | ||
30 | private final Keyword cPackageKeyword_0 = (Keyword)cGroup.eContents().get(0); | ||
31 | private final Assignment cPackageNameAssignment_1 = (Assignment)cGroup.eContents().get(1); | ||
32 | private final RuleCall cPackageNameQualifiedNameParserRuleCall_1_0 = (RuleCall)cPackageNameAssignment_1.eContents().get(0); | ||
33 | private final Keyword cSemicolonKeyword_2 = (Keyword)cGroup.eContents().get(2); | ||
34 | private final Assignment cImportsAssignment_3 = (Assignment)cGroup.eContents().get(3); | ||
35 | private final RuleCall cImportsImportDeclarationParserRuleCall_3_0 = (RuleCall)cImportsAssignment_3.eContents().get(0); | ||
36 | private final Alternatives cAlternatives_4 = (Alternatives)cGroup.eContents().get(4); | ||
37 | private final Assignment cComponentDefinitionsAssignment_4_0 = (Assignment)cAlternatives_4.eContents().get(0); | ||
38 | private final RuleCall cComponentDefinitionsComponentDefinitionParserRuleCall_4_0_0 = (RuleCall)cComponentDefinitionsAssignment_4_0.eContents().get(0); | ||
39 | private final Assignment cTransformationDefinitionsAssignment_4_1 = (Assignment)cAlternatives_4.eContents().get(1); | ||
40 | private final RuleCall cTransformationDefinitionsTransformationDefinitionParserRuleCall_4_1_0 = (RuleCall)cTransformationDefinitionsAssignment_4_1.eContents().get(0); | ||
41 | |||
42 | //CftModel: | ||
43 | // "package" packageName=QualifiedName ";"? | ||
44 | // imports+=ImportDeclaration* (componentDefinitions+=ComponentDefinition | | ||
45 | // transformationDefinitions+=TransformationDefinition)*; | ||
46 | @Override public ParserRule getRule() { return rule; } | ||
47 | |||
48 | //"package" packageName=QualifiedName ";"? imports+=ImportDeclaration* (componentDefinitions+=ComponentDefinition | | ||
49 | //transformationDefinitions+=TransformationDefinition)* | ||
50 | public Group getGroup() { return cGroup; } | ||
51 | |||
52 | //"package" | ||
53 | public Keyword getPackageKeyword_0() { return cPackageKeyword_0; } | ||
54 | |||
55 | //packageName=QualifiedName | ||
56 | public Assignment getPackageNameAssignment_1() { return cPackageNameAssignment_1; } | ||
57 | |||
58 | //QualifiedName | ||
59 | public RuleCall getPackageNameQualifiedNameParserRuleCall_1_0() { return cPackageNameQualifiedNameParserRuleCall_1_0; } | ||
60 | |||
61 | //";"? | ||
62 | public Keyword getSemicolonKeyword_2() { return cSemicolonKeyword_2; } | ||
63 | |||
64 | //imports+=ImportDeclaration* | ||
65 | public Assignment getImportsAssignment_3() { return cImportsAssignment_3; } | ||
66 | |||
67 | //ImportDeclaration | ||
68 | public RuleCall getImportsImportDeclarationParserRuleCall_3_0() { return cImportsImportDeclarationParserRuleCall_3_0; } | ||
69 | |||
70 | //(componentDefinitions+=ComponentDefinition | transformationDefinitions+=TransformationDefinition)* | ||
71 | public Alternatives getAlternatives_4() { return cAlternatives_4; } | ||
72 | |||
73 | //componentDefinitions+=ComponentDefinition | ||
74 | public Assignment getComponentDefinitionsAssignment_4_0() { return cComponentDefinitionsAssignment_4_0; } | ||
75 | |||
76 | //ComponentDefinition | ||
77 | public RuleCall getComponentDefinitionsComponentDefinitionParserRuleCall_4_0_0() { return cComponentDefinitionsComponentDefinitionParserRuleCall_4_0_0; } | ||
78 | |||
79 | //transformationDefinitions+=TransformationDefinition | ||
80 | public Assignment getTransformationDefinitionsAssignment_4_1() { return cTransformationDefinitionsAssignment_4_1; } | ||
81 | |||
82 | //TransformationDefinition | ||
83 | public RuleCall getTransformationDefinitionsTransformationDefinitionParserRuleCall_4_1_0() { return cTransformationDefinitionsTransformationDefinitionParserRuleCall_4_1_0; } | ||
84 | } | ||
85 | public class ImportDeclarationElements extends AbstractParserRuleElementFinder { | ||
86 | private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.ImportDeclaration"); | ||
87 | private final Group cGroup = (Group)rule.eContents().get(1); | ||
88 | private final Keyword cImportKeyword_0 = (Keyword)cGroup.eContents().get(0); | ||
89 | private final Assignment cImportedNamespaceAssignment_1 = (Assignment)cGroup.eContents().get(1); | ||
90 | private final RuleCall cImportedNamespaceQualifiedNameWithWildcardParserRuleCall_1_0 = (RuleCall)cImportedNamespaceAssignment_1.eContents().get(0); | ||
91 | private final Keyword cSemicolonKeyword_2 = (Keyword)cGroup.eContents().get(2); | ||
92 | |||
93 | //ImportDeclaration: | ||
94 | // "import" importedNamespace=QualifiedNameWithWildcard ";"?; | ||
95 | @Override public ParserRule getRule() { return rule; } | ||
96 | |||
97 | //"import" importedNamespace=QualifiedNameWithWildcard ";"? | ||
98 | public Group getGroup() { return cGroup; } | ||
99 | |||
100 | //"import" | ||
101 | public Keyword getImportKeyword_0() { return cImportKeyword_0; } | ||
102 | |||
103 | //importedNamespace=QualifiedNameWithWildcard | ||
104 | public Assignment getImportedNamespaceAssignment_1() { return cImportedNamespaceAssignment_1; } | ||
105 | |||
106 | //QualifiedNameWithWildcard | ||
107 | public RuleCall getImportedNamespaceQualifiedNameWithWildcardParserRuleCall_1_0() { return cImportedNamespaceQualifiedNameWithWildcardParserRuleCall_1_0; } | ||
108 | |||
109 | //";"? | ||
110 | public Keyword getSemicolonKeyword_2() { return cSemicolonKeyword_2; } | ||
111 | } | ||
112 | public class ComponentDefinitionElements extends AbstractParserRuleElementFinder { | ||
113 | private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.ComponentDefinition"); | ||
114 | private final Group cGroup = (Group)rule.eContents().get(1); | ||
115 | private final Keyword cCftKeyword_0 = (Keyword)cGroup.eContents().get(0); | ||
116 | private final Assignment cNameAssignment_1 = (Assignment)cGroup.eContents().get(1); | ||
117 | private final RuleCall cNameIDTerminalRuleCall_1_0 = (RuleCall)cNameAssignment_1.eContents().get(0); | ||
118 | private final Keyword cLeftCurlyBracketKeyword_2 = (Keyword)cGroup.eContents().get(2); | ||
119 | private final UnorderedGroup cUnorderedGroup_3 = (UnorderedGroup)cGroup.eContents().get(3); | ||
120 | private final Group cGroup_3_0 = (Group)cUnorderedGroup_3.eContents().get(0); | ||
121 | private final Keyword cInKeyword_3_0_0 = (Keyword)cGroup_3_0.eContents().get(0); | ||
122 | private final Assignment cInputEventsAssignment_3_0_1 = (Assignment)cGroup_3_0.eContents().get(1); | ||
123 | private final RuleCall cInputEventsInputEventParserRuleCall_3_0_1_0 = (RuleCall)cInputEventsAssignment_3_0_1.eContents().get(0); | ||
124 | private final Keyword cSemicolonKeyword_3_0_2 = (Keyword)cGroup_3_0.eContents().get(2); | ||
125 | private final Group cGroup_3_1 = (Group)cUnorderedGroup_3.eContents().get(1); | ||
126 | private final Keyword cOutKeyword_3_1_0 = (Keyword)cGroup_3_1.eContents().get(0); | ||
127 | private final Assignment cOutputEventsAssignment_3_1_1 = (Assignment)cGroup_3_1.eContents().get(1); | ||
128 | private final CrossReference cOutputEventsEventDeclarationCrossReference_3_1_1_0 = (CrossReference)cOutputEventsAssignment_3_1_1.eContents().get(0); | ||
129 | private final RuleCall cOutputEventsEventDeclarationIDTerminalRuleCall_3_1_1_0_1 = (RuleCall)cOutputEventsEventDeclarationCrossReference_3_1_1_0.eContents().get(1); | ||
130 | private final Keyword cSemicolonKeyword_3_1_2 = (Keyword)cGroup_3_1.eContents().get(2); | ||
131 | private final Group cGroup_4 = (Group)cGroup.eContents().get(4); | ||
132 | private final Assignment cEventDefinitionsAssignment_4_0 = (Assignment)cGroup_4.eContents().get(0); | ||
133 | private final RuleCall cEventDefinitionsEventDefinitionParserRuleCall_4_0_0 = (RuleCall)cEventDefinitionsAssignment_4_0.eContents().get(0); | ||
134 | private final Keyword cSemicolonKeyword_4_1 = (Keyword)cGroup_4.eContents().get(1); | ||
135 | private final Keyword cRightCurlyBracketKeyword_5 = (Keyword)cGroup.eContents().get(5); | ||
136 | |||
137 | //ComponentDefinition: | ||
138 | // "cft" name=ID "{" (("in" inputEvents+=InputEvent* ";")? & ("out" outputEvents+=[EventDeclaration]* ";")?) | ||
139 | // (eventDefinitions+=EventDefinition ";")* | ||
140 | // "}"; | ||
141 | @Override public ParserRule getRule() { return rule; } | ||
142 | |||
143 | //"cft" name=ID "{" (("in" inputEvents+=InputEvent* ";")? & ("out" outputEvents+=[EventDeclaration]* ";")?) | ||
144 | //(eventDefinitions+=EventDefinition ";")* "}" | ||
145 | public Group getGroup() { return cGroup; } | ||
146 | |||
147 | //"cft" | ||
148 | public Keyword getCftKeyword_0() { return cCftKeyword_0; } | ||
149 | |||
150 | //name=ID | ||
151 | public Assignment getNameAssignment_1() { return cNameAssignment_1; } | ||
152 | |||
153 | //ID | ||
154 | public RuleCall getNameIDTerminalRuleCall_1_0() { return cNameIDTerminalRuleCall_1_0; } | ||
155 | |||
156 | //"{" | ||
157 | public Keyword getLeftCurlyBracketKeyword_2() { return cLeftCurlyBracketKeyword_2; } | ||
158 | |||
159 | //("in" inputEvents+=InputEvent* ";")? & ("out" outputEvents+=[EventDeclaration]* ";")? | ||
160 | public UnorderedGroup getUnorderedGroup_3() { return cUnorderedGroup_3; } | ||
161 | |||
162 | //("in" inputEvents+=InputEvent* ";")? | ||
163 | public Group getGroup_3_0() { return cGroup_3_0; } | ||
164 | |||
165 | //"in" | ||
166 | public Keyword getInKeyword_3_0_0() { return cInKeyword_3_0_0; } | ||
167 | |||
168 | //inputEvents+=InputEvent* | ||
169 | public Assignment getInputEventsAssignment_3_0_1() { return cInputEventsAssignment_3_0_1; } | ||
170 | |||
171 | //InputEvent | ||
172 | public RuleCall getInputEventsInputEventParserRuleCall_3_0_1_0() { return cInputEventsInputEventParserRuleCall_3_0_1_0; } | ||
173 | |||
174 | //";" | ||
175 | public Keyword getSemicolonKeyword_3_0_2() { return cSemicolonKeyword_3_0_2; } | ||
176 | |||
177 | //("out" outputEvents+=[EventDeclaration]* ";")? | ||
178 | public Group getGroup_3_1() { return cGroup_3_1; } | ||
179 | |||
180 | //"out" | ||
181 | public Keyword getOutKeyword_3_1_0() { return cOutKeyword_3_1_0; } | ||
182 | |||
183 | //outputEvents+=[EventDeclaration]* | ||
184 | public Assignment getOutputEventsAssignment_3_1_1() { return cOutputEventsAssignment_3_1_1; } | ||
185 | |||
186 | //[EventDeclaration] | ||
187 | public CrossReference getOutputEventsEventDeclarationCrossReference_3_1_1_0() { return cOutputEventsEventDeclarationCrossReference_3_1_1_0; } | ||
188 | |||
189 | //ID | ||
190 | public RuleCall getOutputEventsEventDeclarationIDTerminalRuleCall_3_1_1_0_1() { return cOutputEventsEventDeclarationIDTerminalRuleCall_3_1_1_0_1; } | ||
191 | |||
192 | //";" | ||
193 | public Keyword getSemicolonKeyword_3_1_2() { return cSemicolonKeyword_3_1_2; } | ||
194 | |||
195 | //(eventDefinitions+=EventDefinition ";")* | ||
196 | public Group getGroup_4() { return cGroup_4; } | ||
197 | |||
198 | //eventDefinitions+=EventDefinition | ||
199 | public Assignment getEventDefinitionsAssignment_4_0() { return cEventDefinitionsAssignment_4_0; } | ||
200 | |||
201 | //EventDefinition | ||
202 | public RuleCall getEventDefinitionsEventDefinitionParserRuleCall_4_0_0() { return cEventDefinitionsEventDefinitionParserRuleCall_4_0_0; } | ||
203 | |||
204 | //";" | ||
205 | public Keyword getSemicolonKeyword_4_1() { return cSemicolonKeyword_4_1; } | ||
206 | |||
207 | //"}" | ||
208 | public Keyword getRightCurlyBracketKeyword_5() { return cRightCurlyBracketKeyword_5; } | ||
209 | } | ||
210 | public class EventDeclarationElements extends AbstractParserRuleElementFinder { | ||
211 | private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.EventDeclaration"); | ||
212 | private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1); | ||
213 | private final RuleCall cInputEventParserRuleCall_0 = (RuleCall)cAlternatives.eContents().get(0); | ||
214 | private final RuleCall cEventDefinitionParserRuleCall_1 = (RuleCall)cAlternatives.eContents().get(1); | ||
215 | |||
216 | //EventDeclaration: | ||
217 | // InputEvent | EventDefinition; | ||
218 | @Override public ParserRule getRule() { return rule; } | ||
219 | |||
220 | //InputEvent | EventDefinition | ||
221 | public Alternatives getAlternatives() { return cAlternatives; } | ||
222 | |||
223 | //InputEvent | ||
224 | public RuleCall getInputEventParserRuleCall_0() { return cInputEventParserRuleCall_0; } | ||
225 | |||
226 | //EventDefinition | ||
227 | public RuleCall getEventDefinitionParserRuleCall_1() { return cEventDefinitionParserRuleCall_1; } | ||
228 | } | ||
229 | public class InputEventElements extends AbstractParserRuleElementFinder { | ||
230 | private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.InputEvent"); | ||
231 | private final Group cGroup = (Group)rule.eContents().get(1); | ||
232 | private final Assignment cNameAssignment_0 = (Assignment)cGroup.eContents().get(0); | ||
233 | private final RuleCall cNameIDTerminalRuleCall_0_0 = (RuleCall)cNameAssignment_0.eContents().get(0); | ||
234 | private final Assignment cMultipleAssignment_1 = (Assignment)cGroup.eContents().get(1); | ||
235 | private final Keyword cMultipleLeftSquareBracketRightSquareBracketKeyword_1_0 = (Keyword)cMultipleAssignment_1.eContents().get(0); | ||
236 | |||
237 | //InputEvent: | ||
238 | // name=ID multiple?="[]"?; | ||
239 | @Override public ParserRule getRule() { return rule; } | ||
240 | |||
241 | //name=ID multiple?="[]"? | ||
242 | public Group getGroup() { return cGroup; } | ||
243 | |||
244 | //name=ID | ||
245 | public Assignment getNameAssignment_0() { return cNameAssignment_0; } | ||
246 | |||
247 | //ID | ||
248 | public RuleCall getNameIDTerminalRuleCall_0_0() { return cNameIDTerminalRuleCall_0_0; } | ||
249 | |||
250 | //multiple?="[]"? | ||
251 | public Assignment getMultipleAssignment_1() { return cMultipleAssignment_1; } | ||
252 | |||
253 | //"[]" | ||
254 | public Keyword getMultipleLeftSquareBracketRightSquareBracketKeyword_1_0() { return cMultipleLeftSquareBracketRightSquareBracketKeyword_1_0; } | ||
255 | } | ||
256 | public class EventDefinitionElements extends AbstractParserRuleElementFinder { | ||
257 | private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.EventDefinition"); | ||
258 | private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1); | ||
259 | private final RuleCall cBasicEventDefinitionParserRuleCall_0 = (RuleCall)cAlternatives.eContents().get(0); | ||
260 | private final RuleCall cGateDefinitionParserRuleCall_1 = (RuleCall)cAlternatives.eContents().get(1); | ||
261 | |||
262 | //EventDefinition: | ||
263 | // BasicEventDefinition | GateDefinition; | ||
264 | @Override public ParserRule getRule() { return rule; } | ||
265 | |||
266 | //BasicEventDefinition | GateDefinition | ||
267 | public Alternatives getAlternatives() { return cAlternatives; } | ||
268 | |||
269 | //BasicEventDefinition | ||
270 | public RuleCall getBasicEventDefinitionParserRuleCall_0() { return cBasicEventDefinitionParserRuleCall_0; } | ||
271 | |||
272 | //GateDefinition | ||
273 | public RuleCall getGateDefinitionParserRuleCall_1() { return cGateDefinitionParserRuleCall_1; } | ||
274 | } | ||
275 | public class BasicEventDefinitionElements extends AbstractParserRuleElementFinder { | ||
276 | private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.BasicEventDefinition"); | ||
277 | private final Group cGroup = (Group)rule.eContents().get(1); | ||
278 | private final Assignment cNameAssignment_0 = (Assignment)cGroup.eContents().get(0); | ||
279 | private final RuleCall cNameIDTerminalRuleCall_0_0 = (RuleCall)cNameAssignment_0.eContents().get(0); | ||
280 | private final Keyword cLambdaKeyword_1 = (Keyword)cGroup.eContents().get(1); | ||
281 | private final Keyword cEqualsSignKeyword_2 = (Keyword)cGroup.eContents().get(2); | ||
282 | private final Assignment cRateAssignment_3 = (Assignment)cGroup.eContents().get(3); | ||
283 | private final RuleCall cRateDOULBETerminalRuleCall_3_0 = (RuleCall)cRateAssignment_3.eContents().get(0); | ||
284 | |||
285 | //BasicEventDefinition: | ||
286 | // name=ID "lambda" "=" rate=DOULBE; | ||
287 | @Override public ParserRule getRule() { return rule; } | ||
288 | |||
289 | //name=ID "lambda" "=" rate=DOULBE | ||
290 | public Group getGroup() { return cGroup; } | ||
291 | |||
292 | //name=ID | ||
293 | public Assignment getNameAssignment_0() { return cNameAssignment_0; } | ||
294 | |||
295 | //ID | ||
296 | public RuleCall getNameIDTerminalRuleCall_0_0() { return cNameIDTerminalRuleCall_0_0; } | ||
297 | |||
298 | //"lambda" | ||
299 | public Keyword getLambdaKeyword_1() { return cLambdaKeyword_1; } | ||
300 | |||
301 | //"=" | ||
302 | public Keyword getEqualsSignKeyword_2() { return cEqualsSignKeyword_2; } | ||
303 | |||
304 | //rate=DOULBE | ||
305 | public Assignment getRateAssignment_3() { return cRateAssignment_3; } | ||
306 | |||
307 | //DOULBE | ||
308 | public RuleCall getRateDOULBETerminalRuleCall_3_0() { return cRateDOULBETerminalRuleCall_3_0; } | ||
309 | } | ||
310 | public class GateDefinitionElements extends AbstractParserRuleElementFinder { | ||
311 | private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.GateDefinition"); | ||
312 | private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1); | ||
313 | private final RuleCall cAndGateParserRuleCall_0 = (RuleCall)cAlternatives.eContents().get(0); | ||
314 | private final RuleCall cOrGateParserRuleCall_1 = (RuleCall)cAlternatives.eContents().get(1); | ||
315 | |||
316 | //GateDefinition: | ||
317 | // AndGate | OrGate; | ||
318 | @Override public ParserRule getRule() { return rule; } | ||
319 | |||
320 | //AndGate | OrGate | ||
321 | public Alternatives getAlternatives() { return cAlternatives; } | ||
322 | |||
323 | //AndGate | ||
324 | public RuleCall getAndGateParserRuleCall_0() { return cAndGateParserRuleCall_0; } | ||
325 | |||
326 | //OrGate | ||
327 | public RuleCall getOrGateParserRuleCall_1() { return cOrGateParserRuleCall_1; } | ||
328 | } | ||
329 | public class AndGateElements extends AbstractParserRuleElementFinder { | ||
330 | private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.AndGate"); | ||
331 | private final Group cGroup = (Group)rule.eContents().get(1); | ||
332 | private final Assignment cNameAssignment_0 = (Assignment)cGroup.eContents().get(0); | ||
333 | private final RuleCall cNameIDTerminalRuleCall_0_0 = (RuleCall)cNameAssignment_0.eContents().get(0); | ||
334 | private final Keyword cAndKeyword_1 = (Keyword)cGroup.eContents().get(1); | ||
335 | private final Assignment cInputEventsAssignment_2 = (Assignment)cGroup.eContents().get(2); | ||
336 | private final CrossReference cInputEventsEventDeclarationCrossReference_2_0 = (CrossReference)cInputEventsAssignment_2.eContents().get(0); | ||
337 | private final RuleCall cInputEventsEventDeclarationIDTerminalRuleCall_2_0_1 = (RuleCall)cInputEventsEventDeclarationCrossReference_2_0.eContents().get(1); | ||
338 | |||
339 | //AndGate: | ||
340 | // name=ID "and" inputEvents+=[EventDeclaration]*; | ||
341 | @Override public ParserRule getRule() { return rule; } | ||
342 | |||
343 | //name=ID "and" inputEvents+=[EventDeclaration]* | ||
344 | public Group getGroup() { return cGroup; } | ||
345 | |||
346 | //name=ID | ||
347 | public Assignment getNameAssignment_0() { return cNameAssignment_0; } | ||
348 | |||
349 | //ID | ||
350 | public RuleCall getNameIDTerminalRuleCall_0_0() { return cNameIDTerminalRuleCall_0_0; } | ||
351 | |||
352 | //"and" | ||
353 | public Keyword getAndKeyword_1() { return cAndKeyword_1; } | ||
354 | |||
355 | //inputEvents+=[EventDeclaration]* | ||
356 | public Assignment getInputEventsAssignment_2() { return cInputEventsAssignment_2; } | ||
357 | |||
358 | //[EventDeclaration] | ||
359 | public CrossReference getInputEventsEventDeclarationCrossReference_2_0() { return cInputEventsEventDeclarationCrossReference_2_0; } | ||
360 | |||
361 | //ID | ||
362 | public RuleCall getInputEventsEventDeclarationIDTerminalRuleCall_2_0_1() { return cInputEventsEventDeclarationIDTerminalRuleCall_2_0_1; } | ||
363 | } | ||
364 | public class OrGateElements extends AbstractParserRuleElementFinder { | ||
365 | private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.OrGate"); | ||
366 | private final Group cGroup = (Group)rule.eContents().get(1); | ||
367 | private final Assignment cNameAssignment_0 = (Assignment)cGroup.eContents().get(0); | ||
368 | private final RuleCall cNameIDTerminalRuleCall_0_0 = (RuleCall)cNameAssignment_0.eContents().get(0); | ||
369 | private final Keyword cOrKeyword_1 = (Keyword)cGroup.eContents().get(1); | ||
370 | private final Assignment cInputEventsAssignment_2 = (Assignment)cGroup.eContents().get(2); | ||
371 | private final CrossReference cInputEventsEventDeclarationCrossReference_2_0 = (CrossReference)cInputEventsAssignment_2.eContents().get(0); | ||
372 | private final RuleCall cInputEventsEventDeclarationIDTerminalRuleCall_2_0_1 = (RuleCall)cInputEventsEventDeclarationCrossReference_2_0.eContents().get(1); | ||
373 | |||
374 | //OrGate: | ||
375 | // name=ID "or" inputEvents+=[EventDeclaration]*; | ||
376 | @Override public ParserRule getRule() { return rule; } | ||
377 | |||
378 | //name=ID "or" inputEvents+=[EventDeclaration]* | ||
379 | public Group getGroup() { return cGroup; } | ||
380 | |||
381 | //name=ID | ||
382 | public Assignment getNameAssignment_0() { return cNameAssignment_0; } | ||
383 | |||
384 | //ID | ||
385 | public RuleCall getNameIDTerminalRuleCall_0_0() { return cNameIDTerminalRuleCall_0_0; } | ||
386 | |||
387 | //"or" | ||
388 | public Keyword getOrKeyword_1() { return cOrKeyword_1; } | ||
389 | |||
390 | //inputEvents+=[EventDeclaration]* | ||
391 | public Assignment getInputEventsAssignment_2() { return cInputEventsAssignment_2; } | ||
392 | |||
393 | //[EventDeclaration] | ||
394 | public CrossReference getInputEventsEventDeclarationCrossReference_2_0() { return cInputEventsEventDeclarationCrossReference_2_0; } | ||
395 | |||
396 | //ID | ||
397 | public RuleCall getInputEventsEventDeclarationIDTerminalRuleCall_2_0_1() { return cInputEventsEventDeclarationIDTerminalRuleCall_2_0_1; } | ||
398 | } | ||
399 | public class TransformationDefinitionElements extends AbstractParserRuleElementFinder { | ||
400 | private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.TransformationDefinition"); | ||
401 | private final Group cGroup = (Group)rule.eContents().get(1); | ||
402 | private final Keyword cTransformationKeyword_0 = (Keyword)cGroup.eContents().get(0); | ||
403 | private final Assignment cNameAssignment_1 = (Assignment)cGroup.eContents().get(1); | ||
404 | private final RuleCall cNameIDTerminalRuleCall_1_0 = (RuleCall)cNameAssignment_1.eContents().get(0); | ||
405 | private final Keyword cLeftCurlyBracketKeyword_2 = (Keyword)cGroup.eContents().get(2); | ||
406 | private final Assignment cMappingDefinitionsAssignment_3 = (Assignment)cGroup.eContents().get(3); | ||
407 | private final RuleCall cMappingDefinitionsMappingDefinitionParserRuleCall_3_0 = (RuleCall)cMappingDefinitionsAssignment_3.eContents().get(0); | ||
408 | private final Keyword cRightCurlyBracketKeyword_4 = (Keyword)cGroup.eContents().get(4); | ||
409 | |||
410 | //TransformationDefinition: | ||
411 | // "transformation" name=ID "{" | ||
412 | // mappingDefinitions+=MappingDefinition* | ||
413 | // "}"; | ||
414 | @Override public ParserRule getRule() { return rule; } | ||
415 | |||
416 | //"transformation" name=ID "{" mappingDefinitions+=MappingDefinition* "}" | ||
417 | public Group getGroup() { return cGroup; } | ||
418 | |||
419 | //"transformation" | ||
420 | public Keyword getTransformationKeyword_0() { return cTransformationKeyword_0; } | ||
421 | |||
422 | //name=ID | ||
423 | public Assignment getNameAssignment_1() { return cNameAssignment_1; } | ||
424 | |||
425 | //ID | ||
426 | public RuleCall getNameIDTerminalRuleCall_1_0() { return cNameIDTerminalRuleCall_1_0; } | ||
427 | |||
428 | //"{" | ||
429 | public Keyword getLeftCurlyBracketKeyword_2() { return cLeftCurlyBracketKeyword_2; } | ||
430 | |||
431 | //mappingDefinitions+=MappingDefinition* | ||
432 | public Assignment getMappingDefinitionsAssignment_3() { return cMappingDefinitionsAssignment_3; } | ||
433 | |||
434 | //MappingDefinition | ||
435 | public RuleCall getMappingDefinitionsMappingDefinitionParserRuleCall_3_0() { return cMappingDefinitionsMappingDefinitionParserRuleCall_3_0; } | ||
436 | |||
437 | //"}" | ||
438 | public Keyword getRightCurlyBracketKeyword_4() { return cRightCurlyBracketKeyword_4; } | ||
439 | } | ||
440 | public class MappingDefinitionElements extends AbstractParserRuleElementFinder { | ||
441 | private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.MappingDefinition"); | ||
442 | private final Group cGroup = (Group)rule.eContents().get(1); | ||
443 | private final Assignment cTopLevelAssignment_0 = (Assignment)cGroup.eContents().get(0); | ||
444 | private final Keyword cTopLevelToplevelKeyword_0_0 = (Keyword)cTopLevelAssignment_0.eContents().get(0); | ||
445 | private final Keyword cMappingKeyword_1 = (Keyword)cGroup.eContents().get(1); | ||
446 | private final Assignment cPatternAssignment_2 = (Assignment)cGroup.eContents().get(2); | ||
447 | private final CrossReference cPatternPatternCrossReference_2_0 = (CrossReference)cPatternAssignment_2.eContents().get(0); | ||
448 | private final RuleCall cPatternPatternQualifiedNameParserRuleCall_2_0_1 = (RuleCall)cPatternPatternCrossReference_2_0.eContents().get(1); | ||
449 | private final Keyword cLeftParenthesisKeyword_3 = (Keyword)cGroup.eContents().get(3); | ||
450 | private final Assignment cParametersAssignment_4 = (Assignment)cGroup.eContents().get(4); | ||
451 | private final RuleCall cParametersMappingParameterParserRuleCall_4_0 = (RuleCall)cParametersAssignment_4.eContents().get(0); | ||
452 | private final Group cGroup_5 = (Group)cGroup.eContents().get(5); | ||
453 | private final Keyword cCommaKeyword_5_0 = (Keyword)cGroup_5.eContents().get(0); | ||
454 | private final Assignment cParametersAssignment_5_1 = (Assignment)cGroup_5.eContents().get(1); | ||
455 | private final RuleCall cParametersMappingParameterParserRuleCall_5_1_0 = (RuleCall)cParametersAssignment_5_1.eContents().get(0); | ||
456 | private final Keyword cRightParenthesisKeyword_6 = (Keyword)cGroup.eContents().get(6); | ||
457 | private final Assignment cComponentInstanceAssignment_7 = (Assignment)cGroup.eContents().get(7); | ||
458 | private final RuleCall cComponentInstanceComponentInstanceParserRuleCall_7_0 = (RuleCall)cComponentInstanceAssignment_7.eContents().get(0); | ||
459 | private final Group cGroup_8 = (Group)cGroup.eContents().get(8); | ||
460 | private final Keyword cLeftCurlyBracketKeyword_8_0 = (Keyword)cGroup_8.eContents().get(0); | ||
461 | private final Group cGroup_8_1 = (Group)cGroup_8.eContents().get(1); | ||
462 | private final Alternatives cAlternatives_8_1_0 = (Alternatives)cGroup_8_1.eContents().get(0); | ||
463 | private final Assignment cLookupDefinitionsAssignment_8_1_0_0 = (Assignment)cAlternatives_8_1_0.eContents().get(0); | ||
464 | private final RuleCall cLookupDefinitionsLookupDefinitionParserRuleCall_8_1_0_0_0 = (RuleCall)cLookupDefinitionsAssignment_8_1_0_0.eContents().get(0); | ||
465 | private final Assignment cAssignmentsAssignment_8_1_0_1 = (Assignment)cAlternatives_8_1_0.eContents().get(1); | ||
466 | private final RuleCall cAssignmentsAssignmentParserRuleCall_8_1_0_1_0 = (RuleCall)cAssignmentsAssignment_8_1_0_1.eContents().get(0); | ||
467 | private final Keyword cSemicolonKeyword_8_1_1 = (Keyword)cGroup_8_1.eContents().get(1); | ||
468 | private final Keyword cRightCurlyBracketKeyword_8_2 = (Keyword)cGroup_8.eContents().get(2); | ||
469 | |||
470 | //MappingDefinition: | ||
471 | // topLevel?="toplevel"? "mapping" pattern=[vql::Pattern|QualifiedName] | ||
472 | // "(" parameters+=MappingParameter ("," parameters+=MappingParameter)* ")" | ||
473 | // componentInstance=ComponentInstance? ("{" ((lookupDefinitions+=LookupDefinition | assignments+=Assignment) ";")* | ||
474 | // "}")?; | ||
475 | @Override public ParserRule getRule() { return rule; } | ||
476 | |||
477 | //topLevel?="toplevel"? "mapping" pattern=[vql::Pattern|QualifiedName] "(" parameters+=MappingParameter ("," | ||
478 | //parameters+=MappingParameter)* ")" componentInstance=ComponentInstance? ("{" ((lookupDefinitions+=LookupDefinition | | ||
479 | //assignments+=Assignment) ";")* "}")? | ||
480 | public Group getGroup() { return cGroup; } | ||
481 | |||
482 | //topLevel?="toplevel"? | ||
483 | public Assignment getTopLevelAssignment_0() { return cTopLevelAssignment_0; } | ||
484 | |||
485 | //"toplevel" | ||
486 | public Keyword getTopLevelToplevelKeyword_0_0() { return cTopLevelToplevelKeyword_0_0; } | ||
487 | |||
488 | //"mapping" | ||
489 | public Keyword getMappingKeyword_1() { return cMappingKeyword_1; } | ||
490 | |||
491 | //pattern=[vql::Pattern|QualifiedName] | ||
492 | public Assignment getPatternAssignment_2() { return cPatternAssignment_2; } | ||
493 | |||
494 | //[vql::Pattern|QualifiedName] | ||
495 | public CrossReference getPatternPatternCrossReference_2_0() { return cPatternPatternCrossReference_2_0; } | ||
496 | |||
497 | //QualifiedName | ||
498 | public RuleCall getPatternPatternQualifiedNameParserRuleCall_2_0_1() { return cPatternPatternQualifiedNameParserRuleCall_2_0_1; } | ||
499 | |||
500 | //"(" | ||
501 | public Keyword getLeftParenthesisKeyword_3() { return cLeftParenthesisKeyword_3; } | ||
502 | |||
503 | //parameters+=MappingParameter | ||
504 | public Assignment getParametersAssignment_4() { return cParametersAssignment_4; } | ||
505 | |||
506 | //MappingParameter | ||
507 | public RuleCall getParametersMappingParameterParserRuleCall_4_0() { return cParametersMappingParameterParserRuleCall_4_0; } | ||
508 | |||
509 | //("," parameters+=MappingParameter)* | ||
510 | public Group getGroup_5() { return cGroup_5; } | ||
511 | |||
512 | //"," | ||
513 | public Keyword getCommaKeyword_5_0() { return cCommaKeyword_5_0; } | ||
514 | |||
515 | //parameters+=MappingParameter | ||
516 | public Assignment getParametersAssignment_5_1() { return cParametersAssignment_5_1; } | ||
517 | |||
518 | //MappingParameter | ||
519 | public RuleCall getParametersMappingParameterParserRuleCall_5_1_0() { return cParametersMappingParameterParserRuleCall_5_1_0; } | ||
520 | |||
521 | //")" | ||
522 | public Keyword getRightParenthesisKeyword_6() { return cRightParenthesisKeyword_6; } | ||
523 | |||
524 | //componentInstance=ComponentInstance? | ||
525 | public Assignment getComponentInstanceAssignment_7() { return cComponentInstanceAssignment_7; } | ||
526 | |||
527 | //ComponentInstance | ||
528 | public RuleCall getComponentInstanceComponentInstanceParserRuleCall_7_0() { return cComponentInstanceComponentInstanceParserRuleCall_7_0; } | ||
529 | |||
530 | //("{" ((lookupDefinitions+=LookupDefinition | assignments+=Assignment) ";")* "}")? | ||
531 | public Group getGroup_8() { return cGroup_8; } | ||
532 | |||
533 | //"{" | ||
534 | public Keyword getLeftCurlyBracketKeyword_8_0() { return cLeftCurlyBracketKeyword_8_0; } | ||
535 | |||
536 | //((lookupDefinitions+=LookupDefinition | assignments+=Assignment) ";")* | ||
537 | public Group getGroup_8_1() { return cGroup_8_1; } | ||
538 | |||
539 | //lookupDefinitions+=LookupDefinition | assignments+=Assignment | ||
540 | public Alternatives getAlternatives_8_1_0() { return cAlternatives_8_1_0; } | ||
541 | |||
542 | //lookupDefinitions+=LookupDefinition | ||
543 | public Assignment getLookupDefinitionsAssignment_8_1_0_0() { return cLookupDefinitionsAssignment_8_1_0_0; } | ||
544 | |||
545 | //LookupDefinition | ||
546 | public RuleCall getLookupDefinitionsLookupDefinitionParserRuleCall_8_1_0_0_0() { return cLookupDefinitionsLookupDefinitionParserRuleCall_8_1_0_0_0; } | ||
547 | |||
548 | //assignments+=Assignment | ||
549 | public Assignment getAssignmentsAssignment_8_1_0_1() { return cAssignmentsAssignment_8_1_0_1; } | ||
550 | |||
551 | //Assignment | ||
552 | public RuleCall getAssignmentsAssignmentParserRuleCall_8_1_0_1_0() { return cAssignmentsAssignmentParserRuleCall_8_1_0_1_0; } | ||
553 | |||
554 | //";" | ||
555 | public Keyword getSemicolonKeyword_8_1_1() { return cSemicolonKeyword_8_1_1; } | ||
556 | |||
557 | //"}" | ||
558 | public Keyword getRightCurlyBracketKeyword_8_2() { return cRightCurlyBracketKeyword_8_2; } | ||
559 | } | ||
560 | public class MappingParameterElements extends AbstractParserRuleElementFinder { | ||
561 | private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.MappingParameter"); | ||
562 | private final Assignment cNameAssignment = (Assignment)rule.eContents().get(1); | ||
563 | private final RuleCall cNameIDTerminalRuleCall_0 = (RuleCall)cNameAssignment.eContents().get(0); | ||
564 | |||
565 | //MappingParameter: | ||
566 | // name=ID; | ||
567 | @Override public ParserRule getRule() { return rule; } | ||
568 | |||
569 | //name=ID | ||
570 | public Assignment getNameAssignment() { return cNameAssignment; } | ||
571 | |||
572 | //ID | ||
573 | public RuleCall getNameIDTerminalRuleCall_0() { return cNameIDTerminalRuleCall_0; } | ||
574 | } | ||
575 | public class LookupDefinitionElements extends AbstractParserRuleElementFinder { | ||
576 | private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.LookupDefinition"); | ||
577 | private final Group cGroup = (Group)rule.eContents().get(1); | ||
578 | private final Keyword cLookupKeyword_0 = (Keyword)cGroup.eContents().get(0); | ||
579 | private final Assignment cMappingAssignment_1 = (Assignment)cGroup.eContents().get(1); | ||
580 | private final CrossReference cMappingMappingDefinitionCrossReference_1_0 = (CrossReference)cMappingAssignment_1.eContents().get(0); | ||
581 | private final RuleCall cMappingMappingDefinitionIDTerminalRuleCall_1_0_1 = (RuleCall)cMappingMappingDefinitionCrossReference_1_0.eContents().get(1); | ||
582 | private final Keyword cLeftParenthesisKeyword_2 = (Keyword)cGroup.eContents().get(2); | ||
583 | private final Assignment cArgumentsAssignment_3 = (Assignment)cGroup.eContents().get(3); | ||
584 | private final CrossReference cArgumentsMappingParameterCrossReference_3_0 = (CrossReference)cArgumentsAssignment_3.eContents().get(0); | ||
585 | private final RuleCall cArgumentsMappingParameterIDTerminalRuleCall_3_0_1 = (RuleCall)cArgumentsMappingParameterCrossReference_3_0.eContents().get(1); | ||
586 | private final Group cGroup_4 = (Group)cGroup.eContents().get(4); | ||
587 | private final Keyword cCommaKeyword_4_0 = (Keyword)cGroup_4.eContents().get(0); | ||
588 | private final Assignment cArgumentsAssignment_4_1 = (Assignment)cGroup_4.eContents().get(1); | ||
589 | private final CrossReference cArgumentsMappingParameterCrossReference_4_1_0 = (CrossReference)cArgumentsAssignment_4_1.eContents().get(0); | ||
590 | private final RuleCall cArgumentsMappingParameterIDTerminalRuleCall_4_1_0_1 = (RuleCall)cArgumentsMappingParameterCrossReference_4_1_0.eContents().get(1); | ||
591 | private final Keyword cRightParenthesisKeyword_5 = (Keyword)cGroup.eContents().get(5); | ||
592 | private final Keyword cAsKeyword_6 = (Keyword)cGroup.eContents().get(6); | ||
593 | private final Assignment cNameAssignment_7 = (Assignment)cGroup.eContents().get(7); | ||
594 | private final RuleCall cNameIDTerminalRuleCall_7_0 = (RuleCall)cNameAssignment_7.eContents().get(0); | ||
595 | |||
596 | //LookupDefinition: | ||
597 | // "lookup" mapping=[MappingDefinition] | ||
598 | // "(" arguments+=[MappingParameter] ("," arguments+=[MappingParameter])* ")" | ||
599 | // "as" name=ID; | ||
600 | @Override public ParserRule getRule() { return rule; } | ||
601 | |||
602 | //"lookup" mapping=[MappingDefinition] "(" arguments+=[MappingParameter] ("," arguments+=[MappingParameter])* ")" "as" | ||
603 | //name=ID | ||
604 | public Group getGroup() { return cGroup; } | ||
605 | |||
606 | //"lookup" | ||
607 | public Keyword getLookupKeyword_0() { return cLookupKeyword_0; } | ||
608 | |||
609 | //mapping=[MappingDefinition] | ||
610 | public Assignment getMappingAssignment_1() { return cMappingAssignment_1; } | ||
611 | |||
612 | //[MappingDefinition] | ||
613 | public CrossReference getMappingMappingDefinitionCrossReference_1_0() { return cMappingMappingDefinitionCrossReference_1_0; } | ||
614 | |||
615 | //ID | ||
616 | public RuleCall getMappingMappingDefinitionIDTerminalRuleCall_1_0_1() { return cMappingMappingDefinitionIDTerminalRuleCall_1_0_1; } | ||
617 | |||
618 | //"(" | ||
619 | public Keyword getLeftParenthesisKeyword_2() { return cLeftParenthesisKeyword_2; } | ||
620 | |||
621 | //arguments+=[MappingParameter] | ||
622 | public Assignment getArgumentsAssignment_3() { return cArgumentsAssignment_3; } | ||
623 | |||
624 | //[MappingParameter] | ||
625 | public CrossReference getArgumentsMappingParameterCrossReference_3_0() { return cArgumentsMappingParameterCrossReference_3_0; } | ||
626 | |||
627 | //ID | ||
628 | public RuleCall getArgumentsMappingParameterIDTerminalRuleCall_3_0_1() { return cArgumentsMappingParameterIDTerminalRuleCall_3_0_1; } | ||
629 | |||
630 | //("," arguments+=[MappingParameter])* | ||
631 | public Group getGroup_4() { return cGroup_4; } | ||
632 | |||
633 | //"," | ||
634 | public Keyword getCommaKeyword_4_0() { return cCommaKeyword_4_0; } | ||
635 | |||
636 | //arguments+=[MappingParameter] | ||
637 | public Assignment getArgumentsAssignment_4_1() { return cArgumentsAssignment_4_1; } | ||
638 | |||
639 | //[MappingParameter] | ||
640 | public CrossReference getArgumentsMappingParameterCrossReference_4_1_0() { return cArgumentsMappingParameterCrossReference_4_1_0; } | ||
641 | |||
642 | //ID | ||
643 | public RuleCall getArgumentsMappingParameterIDTerminalRuleCall_4_1_0_1() { return cArgumentsMappingParameterIDTerminalRuleCall_4_1_0_1; } | ||
644 | |||
645 | //")" | ||
646 | public Keyword getRightParenthesisKeyword_5() { return cRightParenthesisKeyword_5; } | ||
647 | |||
648 | //"as" | ||
649 | public Keyword getAsKeyword_6() { return cAsKeyword_6; } | ||
650 | |||
651 | //name=ID | ||
652 | public Assignment getNameAssignment_7() { return cNameAssignment_7; } | ||
653 | |||
654 | //ID | ||
655 | public RuleCall getNameIDTerminalRuleCall_7_0() { return cNameIDTerminalRuleCall_7_0; } | ||
656 | } | ||
657 | public class VariableElements extends AbstractParserRuleElementFinder { | ||
658 | private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.Variable"); | ||
659 | private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1); | ||
660 | private final RuleCall cComponentInstanceParserRuleCall_0 = (RuleCall)cAlternatives.eContents().get(0); | ||
661 | private final RuleCall cLookupDefinitionParserRuleCall_1 = (RuleCall)cAlternatives.eContents().get(1); | ||
662 | |||
663 | //Variable: | ||
664 | // ComponentInstance | LookupDefinition; | ||
665 | @Override public ParserRule getRule() { return rule; } | ||
666 | |||
667 | //ComponentInstance | LookupDefinition | ||
668 | public Alternatives getAlternatives() { return cAlternatives; } | ||
669 | |||
670 | //ComponentInstance | ||
671 | public RuleCall getComponentInstanceParserRuleCall_0() { return cComponentInstanceParserRuleCall_0; } | ||
672 | |||
673 | //LookupDefinition | ||
674 | public RuleCall getLookupDefinitionParserRuleCall_1() { return cLookupDefinitionParserRuleCall_1; } | ||
675 | } | ||
676 | public class AssignmentElements extends AbstractParserRuleElementFinder { | ||
677 | private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.Assignment"); | ||
678 | private final Group cGroup = (Group)rule.eContents().get(1); | ||
679 | private final Assignment cInputAssignment_0 = (Assignment)cGroup.eContents().get(0); | ||
680 | private final RuleCall cInputEventReferenceParserRuleCall_0_0 = (RuleCall)cInputAssignment_0.eContents().get(0); | ||
681 | private final Alternatives cAlternatives_1 = (Alternatives)cGroup.eContents().get(1); | ||
682 | private final Assignment cMultipleAssignment_1_0 = (Assignment)cAlternatives_1.eContents().get(0); | ||
683 | private final Keyword cMultiplePlusSignEqualsSignKeyword_1_0_0 = (Keyword)cMultipleAssignment_1_0.eContents().get(0); | ||
684 | private final Keyword cColonEqualsSignKeyword_1_1 = (Keyword)cAlternatives_1.eContents().get(1); | ||
685 | private final Assignment cOutputAssignment_2 = (Assignment)cGroup.eContents().get(2); | ||
686 | private final RuleCall cOutputEventReferenceParserRuleCall_2_0 = (RuleCall)cOutputAssignment_2.eContents().get(0); | ||
687 | |||
688 | //Assignment: | ||
689 | // input=EventReference (multiple?="+=" | ":=") output=EventReference; | ||
690 | @Override public ParserRule getRule() { return rule; } | ||
691 | |||
692 | //input=EventReference (multiple?="+=" | ":=") output=EventReference | ||
693 | public Group getGroup() { return cGroup; } | ||
694 | |||
695 | //input=EventReference | ||
696 | public Assignment getInputAssignment_0() { return cInputAssignment_0; } | ||
697 | |||
698 | //EventReference | ||
699 | public RuleCall getInputEventReferenceParserRuleCall_0_0() { return cInputEventReferenceParserRuleCall_0_0; } | ||
700 | |||
701 | //multiple?="+=" | ":=" | ||
702 | public Alternatives getAlternatives_1() { return cAlternatives_1; } | ||
703 | |||
704 | //multiple?="+=" | ||
705 | public Assignment getMultipleAssignment_1_0() { return cMultipleAssignment_1_0; } | ||
706 | |||
707 | //"+=" | ||
708 | public Keyword getMultiplePlusSignEqualsSignKeyword_1_0_0() { return cMultiplePlusSignEqualsSignKeyword_1_0_0; } | ||
709 | |||
710 | //":=" | ||
711 | public Keyword getColonEqualsSignKeyword_1_1() { return cColonEqualsSignKeyword_1_1; } | ||
712 | |||
713 | //output=EventReference | ||
714 | public Assignment getOutputAssignment_2() { return cOutputAssignment_2; } | ||
715 | |||
716 | //EventReference | ||
717 | public RuleCall getOutputEventReferenceParserRuleCall_2_0() { return cOutputEventReferenceParserRuleCall_2_0; } | ||
718 | } | ||
719 | public class EventReferenceElements extends AbstractParserRuleElementFinder { | ||
720 | private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.EventReference"); | ||
721 | private final Group cGroup = (Group)rule.eContents().get(1); | ||
722 | private final Assignment cComponentAssignment_0 = (Assignment)cGroup.eContents().get(0); | ||
723 | private final CrossReference cComponentVariableCrossReference_0_0 = (CrossReference)cComponentAssignment_0.eContents().get(0); | ||
724 | private final RuleCall cComponentVariableIDTerminalRuleCall_0_0_1 = (RuleCall)cComponentVariableCrossReference_0_0.eContents().get(1); | ||
725 | private final Keyword cFullStopKeyword_1 = (Keyword)cGroup.eContents().get(1); | ||
726 | private final Assignment cEventAssignment_2 = (Assignment)cGroup.eContents().get(2); | ||
727 | private final CrossReference cEventEventDeclarationCrossReference_2_0 = (CrossReference)cEventAssignment_2.eContents().get(0); | ||
728 | private final RuleCall cEventEventDeclarationIDTerminalRuleCall_2_0_1 = (RuleCall)cEventEventDeclarationCrossReference_2_0.eContents().get(1); | ||
729 | |||
730 | //EventReference: | ||
731 | // component=[Variable] "." event=[EventDeclaration]; | ||
732 | @Override public ParserRule getRule() { return rule; } | ||
733 | |||
734 | //component=[Variable] "." event=[EventDeclaration] | ||
735 | public Group getGroup() { return cGroup; } | ||
736 | |||
737 | //component=[Variable] | ||
738 | public Assignment getComponentAssignment_0() { return cComponentAssignment_0; } | ||
739 | |||
740 | //[Variable] | ||
741 | public CrossReference getComponentVariableCrossReference_0_0() { return cComponentVariableCrossReference_0_0; } | ||
742 | |||
743 | //ID | ||
744 | public RuleCall getComponentVariableIDTerminalRuleCall_0_0_1() { return cComponentVariableIDTerminalRuleCall_0_0_1; } | ||
745 | |||
746 | //"." | ||
747 | public Keyword getFullStopKeyword_1() { return cFullStopKeyword_1; } | ||
748 | |||
749 | //event=[EventDeclaration] | ||
750 | public Assignment getEventAssignment_2() { return cEventAssignment_2; } | ||
751 | |||
752 | //[EventDeclaration] | ||
753 | public CrossReference getEventEventDeclarationCrossReference_2_0() { return cEventEventDeclarationCrossReference_2_0; } | ||
754 | |||
755 | //ID | ||
756 | public RuleCall getEventEventDeclarationIDTerminalRuleCall_2_0_1() { return cEventEventDeclarationIDTerminalRuleCall_2_0_1; } | ||
757 | } | ||
758 | public class ComponentInstanceElements extends AbstractParserRuleElementFinder { | ||
759 | private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.ComponentInstance"); | ||
760 | private final Group cGroup = (Group)rule.eContents().get(1); | ||
761 | private final Keyword cEqualsSignGreaterThanSignKeyword_0 = (Keyword)cGroup.eContents().get(0); | ||
762 | private final Assignment cComponentTypeAssignment_1 = (Assignment)cGroup.eContents().get(1); | ||
763 | private final CrossReference cComponentTypeComponentDefinitionCrossReference_1_0 = (CrossReference)cComponentTypeAssignment_1.eContents().get(0); | ||
764 | private final RuleCall cComponentTypeComponentDefinitionQualifiedNameParserRuleCall_1_0_1 = (RuleCall)cComponentTypeComponentDefinitionCrossReference_1_0.eContents().get(1); | ||
765 | private final Assignment cNameAssignment_2 = (Assignment)cGroup.eContents().get(2); | ||
766 | private final RuleCall cNameIDTerminalRuleCall_2_0 = (RuleCall)cNameAssignment_2.eContents().get(0); | ||
767 | |||
768 | //ComponentInstance: | ||
769 | // "=>" componentType=[ComponentDefinition|QualifiedName] name=ID?; | ||
770 | @Override public ParserRule getRule() { return rule; } | ||
771 | |||
772 | //"=>" componentType=[ComponentDefinition|QualifiedName] name=ID? | ||
773 | public Group getGroup() { return cGroup; } | ||
774 | |||
775 | //"=>" | ||
776 | public Keyword getEqualsSignGreaterThanSignKeyword_0() { return cEqualsSignGreaterThanSignKeyword_0; } | ||
777 | |||
778 | //componentType=[ComponentDefinition|QualifiedName] | ||
779 | public Assignment getComponentTypeAssignment_1() { return cComponentTypeAssignment_1; } | ||
780 | |||
781 | //[ComponentDefinition|QualifiedName] | ||
782 | public CrossReference getComponentTypeComponentDefinitionCrossReference_1_0() { return cComponentTypeComponentDefinitionCrossReference_1_0; } | ||
783 | |||
784 | //QualifiedName | ||
785 | public RuleCall getComponentTypeComponentDefinitionQualifiedNameParserRuleCall_1_0_1() { return cComponentTypeComponentDefinitionQualifiedNameParserRuleCall_1_0_1; } | ||
786 | |||
787 | //name=ID? | ||
788 | public Assignment getNameAssignment_2() { return cNameAssignment_2; } | ||
789 | |||
790 | //ID | ||
791 | public RuleCall getNameIDTerminalRuleCall_2_0() { return cNameIDTerminalRuleCall_2_0; } | ||
792 | } | ||
793 | public class QualifiedNameElements extends AbstractParserRuleElementFinder { | ||
794 | private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.QualifiedName"); | ||
795 | private final Group cGroup = (Group)rule.eContents().get(1); | ||
796 | private final RuleCall cIDTerminalRuleCall_0 = (RuleCall)cGroup.eContents().get(0); | ||
797 | private final Group cGroup_1 = (Group)cGroup.eContents().get(1); | ||
798 | private final Keyword cFullStopKeyword_1_0 = (Keyword)cGroup_1.eContents().get(0); | ||
799 | private final RuleCall cIDTerminalRuleCall_1_1 = (RuleCall)cGroup_1.eContents().get(1); | ||
800 | |||
801 | //QualifiedName: | ||
802 | // ID ("." ID)*; | ||
803 | @Override public ParserRule getRule() { return rule; } | ||
804 | |||
805 | //ID ("." ID)* | ||
806 | public Group getGroup() { return cGroup; } | ||
807 | |||
808 | //ID | ||
809 | public RuleCall getIDTerminalRuleCall_0() { return cIDTerminalRuleCall_0; } | ||
810 | |||
811 | //("." ID)* | ||
812 | public Group getGroup_1() { return cGroup_1; } | ||
813 | |||
814 | //"." | ||
815 | public Keyword getFullStopKeyword_1_0() { return cFullStopKeyword_1_0; } | ||
816 | |||
817 | //ID | ||
818 | public RuleCall getIDTerminalRuleCall_1_1() { return cIDTerminalRuleCall_1_1; } | ||
819 | } | ||
820 | public class QualifiedNameWithWildcardElements extends AbstractParserRuleElementFinder { | ||
821 | private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.QualifiedNameWithWildcard"); | ||
822 | private final Group cGroup = (Group)rule.eContents().get(1); | ||
823 | private final RuleCall cQualifiedNameParserRuleCall_0 = (RuleCall)cGroup.eContents().get(0); | ||
824 | private final Group cGroup_1 = (Group)cGroup.eContents().get(1); | ||
825 | private final Keyword cFullStopKeyword_1_0 = (Keyword)cGroup_1.eContents().get(0); | ||
826 | private final Keyword cAsteriskKeyword_1_1 = (Keyword)cGroup_1.eContents().get(1); | ||
827 | |||
828 | //QualifiedNameWithWildcard: | ||
829 | // QualifiedName ("." "*")?; | ||
830 | @Override public ParserRule getRule() { return rule; } | ||
831 | |||
832 | //QualifiedName ("." "*")? | ||
833 | public Group getGroup() { return cGroup; } | ||
834 | |||
835 | //QualifiedName | ||
836 | public RuleCall getQualifiedNameParserRuleCall_0() { return cQualifiedNameParserRuleCall_0; } | ||
837 | |||
838 | //("." "*")? | ||
839 | public Group getGroup_1() { return cGroup_1; } | ||
840 | |||
841 | //"." | ||
842 | public Keyword getFullStopKeyword_1_0() { return cFullStopKeyword_1_0; } | ||
843 | |||
844 | //"*" | ||
845 | public Keyword getAsteriskKeyword_1_1() { return cAsteriskKeyword_1_1; } | ||
846 | } | ||
847 | |||
848 | |||
849 | private final CftModelElements pCftModel; | ||
850 | private final ImportDeclarationElements pImportDeclaration; | ||
851 | private final ComponentDefinitionElements pComponentDefinition; | ||
852 | private final EventDeclarationElements pEventDeclaration; | ||
853 | private final InputEventElements pInputEvent; | ||
854 | private final EventDefinitionElements pEventDefinition; | ||
855 | private final BasicEventDefinitionElements pBasicEventDefinition; | ||
856 | private final GateDefinitionElements pGateDefinition; | ||
857 | private final AndGateElements pAndGate; | ||
858 | private final OrGateElements pOrGate; | ||
859 | private final TransformationDefinitionElements pTransformationDefinition; | ||
860 | private final MappingDefinitionElements pMappingDefinition; | ||
861 | private final MappingParameterElements pMappingParameter; | ||
862 | private final LookupDefinitionElements pLookupDefinition; | ||
863 | private final VariableElements pVariable; | ||
864 | private final AssignmentElements pAssignment; | ||
865 | private final EventReferenceElements pEventReference; | ||
866 | private final ComponentInstanceElements pComponentInstance; | ||
867 | private final QualifiedNameElements pQualifiedName; | ||
868 | private final QualifiedNameWithWildcardElements pQualifiedNameWithWildcard; | ||
869 | private final TerminalRule tDOULBE; | ||
870 | |||
871 | private final Grammar grammar; | ||
872 | |||
873 | private final TerminalsGrammarAccess gaTerminals; | ||
874 | |||
875 | @Inject | ||
876 | public CftLanguageGrammarAccess(GrammarProvider grammarProvider, | ||
877 | TerminalsGrammarAccess gaTerminals) { | ||
878 | this.grammar = internalFindGrammar(grammarProvider); | ||
879 | this.gaTerminals = gaTerminals; | ||
880 | this.pCftModel = new CftModelElements(); | ||
881 | this.pImportDeclaration = new ImportDeclarationElements(); | ||
882 | this.pComponentDefinition = new ComponentDefinitionElements(); | ||
883 | this.pEventDeclaration = new EventDeclarationElements(); | ||
884 | this.pInputEvent = new InputEventElements(); | ||
885 | this.pEventDefinition = new EventDefinitionElements(); | ||
886 | this.pBasicEventDefinition = new BasicEventDefinitionElements(); | ||
887 | this.pGateDefinition = new GateDefinitionElements(); | ||
888 | this.pAndGate = new AndGateElements(); | ||
889 | this.pOrGate = new OrGateElements(); | ||
890 | this.pTransformationDefinition = new TransformationDefinitionElements(); | ||
891 | this.pMappingDefinition = new MappingDefinitionElements(); | ||
892 | this.pMappingParameter = new MappingParameterElements(); | ||
893 | this.pLookupDefinition = new LookupDefinitionElements(); | ||
894 | this.pVariable = new VariableElements(); | ||
895 | this.pAssignment = new AssignmentElements(); | ||
896 | this.pEventReference = new EventReferenceElements(); | ||
897 | this.pComponentInstance = new ComponentInstanceElements(); | ||
898 | this.pQualifiedName = new QualifiedNameElements(); | ||
899 | this.pQualifiedNameWithWildcard = new QualifiedNameWithWildcardElements(); | ||
900 | this.tDOULBE = (TerminalRule) GrammarUtil.findRuleForName(getGrammar(), "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.DOULBE"); | ||
901 | } | ||
902 | |||
903 | protected Grammar internalFindGrammar(GrammarProvider grammarProvider) { | ||
904 | Grammar grammar = grammarProvider.getGrammar(this); | ||
905 | while (grammar != null) { | ||
906 | if ("hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage".equals(grammar.getName())) { | ||
907 | return grammar; | ||
908 | } | ||
909 | List<Grammar> grammars = grammar.getUsedGrammars(); | ||
910 | if (!grammars.isEmpty()) { | ||
911 | grammar = grammars.iterator().next(); | ||
912 | } else { | ||
913 | return null; | ||
914 | } | ||
915 | } | ||
916 | return grammar; | ||
917 | } | ||
918 | |||
919 | @Override | ||
920 | public Grammar getGrammar() { | ||
921 | return grammar; | ||
922 | } | ||
923 | |||
924 | |||
925 | public TerminalsGrammarAccess getTerminalsGrammarAccess() { | ||
926 | return gaTerminals; | ||
927 | } | ||
928 | |||
929 | |||
930 | //CftModel: | ||
931 | // "package" packageName=QualifiedName ";"? | ||
932 | // imports+=ImportDeclaration* (componentDefinitions+=ComponentDefinition | | ||
933 | // transformationDefinitions+=TransformationDefinition)*; | ||
934 | public CftModelElements getCftModelAccess() { | ||
935 | return pCftModel; | ||
936 | } | ||
937 | |||
938 | public ParserRule getCftModelRule() { | ||
939 | return getCftModelAccess().getRule(); | ||
940 | } | ||
941 | |||
942 | //ImportDeclaration: | ||
943 | // "import" importedNamespace=QualifiedNameWithWildcard ";"?; | ||
944 | public ImportDeclarationElements getImportDeclarationAccess() { | ||
945 | return pImportDeclaration; | ||
946 | } | ||
947 | |||
948 | public ParserRule getImportDeclarationRule() { | ||
949 | return getImportDeclarationAccess().getRule(); | ||
950 | } | ||
951 | |||
952 | //ComponentDefinition: | ||
953 | // "cft" name=ID "{" (("in" inputEvents+=InputEvent* ";")? & ("out" outputEvents+=[EventDeclaration]* ";")?) | ||
954 | // (eventDefinitions+=EventDefinition ";")* | ||
955 | // "}"; | ||
956 | public ComponentDefinitionElements getComponentDefinitionAccess() { | ||
957 | return pComponentDefinition; | ||
958 | } | ||
959 | |||
960 | public ParserRule getComponentDefinitionRule() { | ||
961 | return getComponentDefinitionAccess().getRule(); | ||
962 | } | ||
963 | |||
964 | //EventDeclaration: | ||
965 | // InputEvent | EventDefinition; | ||
966 | public EventDeclarationElements getEventDeclarationAccess() { | ||
967 | return pEventDeclaration; | ||
968 | } | ||
969 | |||
970 | public ParserRule getEventDeclarationRule() { | ||
971 | return getEventDeclarationAccess().getRule(); | ||
972 | } | ||
973 | |||
974 | //InputEvent: | ||
975 | // name=ID multiple?="[]"?; | ||
976 | public InputEventElements getInputEventAccess() { | ||
977 | return pInputEvent; | ||
978 | } | ||
979 | |||
980 | public ParserRule getInputEventRule() { | ||
981 | return getInputEventAccess().getRule(); | ||
982 | } | ||
983 | |||
984 | //EventDefinition: | ||
985 | // BasicEventDefinition | GateDefinition; | ||
986 | public EventDefinitionElements getEventDefinitionAccess() { | ||
987 | return pEventDefinition; | ||
988 | } | ||
989 | |||
990 | public ParserRule getEventDefinitionRule() { | ||
991 | return getEventDefinitionAccess().getRule(); | ||
992 | } | ||
993 | |||
994 | //BasicEventDefinition: | ||
995 | // name=ID "lambda" "=" rate=DOULBE; | ||
996 | public BasicEventDefinitionElements getBasicEventDefinitionAccess() { | ||
997 | return pBasicEventDefinition; | ||
998 | } | ||
999 | |||
1000 | public ParserRule getBasicEventDefinitionRule() { | ||
1001 | return getBasicEventDefinitionAccess().getRule(); | ||
1002 | } | ||
1003 | |||
1004 | //GateDefinition: | ||
1005 | // AndGate | OrGate; | ||
1006 | public GateDefinitionElements getGateDefinitionAccess() { | ||
1007 | return pGateDefinition; | ||
1008 | } | ||
1009 | |||
1010 | public ParserRule getGateDefinitionRule() { | ||
1011 | return getGateDefinitionAccess().getRule(); | ||
1012 | } | ||
1013 | |||
1014 | //AndGate: | ||
1015 | // name=ID "and" inputEvents+=[EventDeclaration]*; | ||
1016 | public AndGateElements getAndGateAccess() { | ||
1017 | return pAndGate; | ||
1018 | } | ||
1019 | |||
1020 | public ParserRule getAndGateRule() { | ||
1021 | return getAndGateAccess().getRule(); | ||
1022 | } | ||
1023 | |||
1024 | //OrGate: | ||
1025 | // name=ID "or" inputEvents+=[EventDeclaration]*; | ||
1026 | public OrGateElements getOrGateAccess() { | ||
1027 | return pOrGate; | ||
1028 | } | ||
1029 | |||
1030 | public ParserRule getOrGateRule() { | ||
1031 | return getOrGateAccess().getRule(); | ||
1032 | } | ||
1033 | |||
1034 | //TransformationDefinition: | ||
1035 | // "transformation" name=ID "{" | ||
1036 | // mappingDefinitions+=MappingDefinition* | ||
1037 | // "}"; | ||
1038 | public TransformationDefinitionElements getTransformationDefinitionAccess() { | ||
1039 | return pTransformationDefinition; | ||
1040 | } | ||
1041 | |||
1042 | public ParserRule getTransformationDefinitionRule() { | ||
1043 | return getTransformationDefinitionAccess().getRule(); | ||
1044 | } | ||
1045 | |||
1046 | //MappingDefinition: | ||
1047 | // topLevel?="toplevel"? "mapping" pattern=[vql::Pattern|QualifiedName] | ||
1048 | // "(" parameters+=MappingParameter ("," parameters+=MappingParameter)* ")" | ||
1049 | // componentInstance=ComponentInstance? ("{" ((lookupDefinitions+=LookupDefinition | assignments+=Assignment) ";")* | ||
1050 | // "}")?; | ||
1051 | public MappingDefinitionElements getMappingDefinitionAccess() { | ||
1052 | return pMappingDefinition; | ||
1053 | } | ||
1054 | |||
1055 | public ParserRule getMappingDefinitionRule() { | ||
1056 | return getMappingDefinitionAccess().getRule(); | ||
1057 | } | ||
1058 | |||
1059 | //MappingParameter: | ||
1060 | // name=ID; | ||
1061 | public MappingParameterElements getMappingParameterAccess() { | ||
1062 | return pMappingParameter; | ||
1063 | } | ||
1064 | |||
1065 | public ParserRule getMappingParameterRule() { | ||
1066 | return getMappingParameterAccess().getRule(); | ||
1067 | } | ||
1068 | |||
1069 | //LookupDefinition: | ||
1070 | // "lookup" mapping=[MappingDefinition] | ||
1071 | // "(" arguments+=[MappingParameter] ("," arguments+=[MappingParameter])* ")" | ||
1072 | // "as" name=ID; | ||
1073 | public LookupDefinitionElements getLookupDefinitionAccess() { | ||
1074 | return pLookupDefinition; | ||
1075 | } | ||
1076 | |||
1077 | public ParserRule getLookupDefinitionRule() { | ||
1078 | return getLookupDefinitionAccess().getRule(); | ||
1079 | } | ||
1080 | |||
1081 | //Variable: | ||
1082 | // ComponentInstance | LookupDefinition; | ||
1083 | public VariableElements getVariableAccess() { | ||
1084 | return pVariable; | ||
1085 | } | ||
1086 | |||
1087 | public ParserRule getVariableRule() { | ||
1088 | return getVariableAccess().getRule(); | ||
1089 | } | ||
1090 | |||
1091 | //Assignment: | ||
1092 | // input=EventReference (multiple?="+=" | ":=") output=EventReference; | ||
1093 | public AssignmentElements getAssignmentAccess() { | ||
1094 | return pAssignment; | ||
1095 | } | ||
1096 | |||
1097 | public ParserRule getAssignmentRule() { | ||
1098 | return getAssignmentAccess().getRule(); | ||
1099 | } | ||
1100 | |||
1101 | //EventReference: | ||
1102 | // component=[Variable] "." event=[EventDeclaration]; | ||
1103 | public EventReferenceElements getEventReferenceAccess() { | ||
1104 | return pEventReference; | ||
1105 | } | ||
1106 | |||
1107 | public ParserRule getEventReferenceRule() { | ||
1108 | return getEventReferenceAccess().getRule(); | ||
1109 | } | ||
1110 | |||
1111 | //ComponentInstance: | ||
1112 | // "=>" componentType=[ComponentDefinition|QualifiedName] name=ID?; | ||
1113 | public ComponentInstanceElements getComponentInstanceAccess() { | ||
1114 | return pComponentInstance; | ||
1115 | } | ||
1116 | |||
1117 | public ParserRule getComponentInstanceRule() { | ||
1118 | return getComponentInstanceAccess().getRule(); | ||
1119 | } | ||
1120 | |||
1121 | //QualifiedName: | ||
1122 | // ID ("." ID)*; | ||
1123 | public QualifiedNameElements getQualifiedNameAccess() { | ||
1124 | return pQualifiedName; | ||
1125 | } | ||
1126 | |||
1127 | public ParserRule getQualifiedNameRule() { | ||
1128 | return getQualifiedNameAccess().getRule(); | ||
1129 | } | ||
1130 | |||
1131 | //QualifiedNameWithWildcard: | ||
1132 | // QualifiedName ("." "*")?; | ||
1133 | public QualifiedNameWithWildcardElements getQualifiedNameWithWildcardAccess() { | ||
1134 | return pQualifiedNameWithWildcard; | ||
1135 | } | ||
1136 | |||
1137 | public ParserRule getQualifiedNameWithWildcardRule() { | ||
1138 | return getQualifiedNameWithWildcardAccess().getRule(); | ||
1139 | } | ||
1140 | |||
1141 | //terminal DOULBE returns ecore::EDouble: | ||
1142 | // '0'..'9'+ ("." '0'..'9'+ | ("." '0'..'9'+)? ("e" | "E") ("+" | "-")? '0'..'9'+); | ||
1143 | public TerminalRule getDOULBERule() { | ||
1144 | return tDOULBE; | ||
1145 | } | ||
1146 | |||
1147 | //terminal ID: | ||
1148 | // '^'? ('a'..'z' | 'A'..'Z' | '_') ('a'..'z' | 'A'..'Z' | '_' | '0'..'9')*; | ||
1149 | public TerminalRule getIDRule() { | ||
1150 | return gaTerminals.getIDRule(); | ||
1151 | } | ||
1152 | |||
1153 | //terminal INT returns ecore::EInt: | ||
1154 | // '0'..'9'+; | ||
1155 | public TerminalRule getINTRule() { | ||
1156 | return gaTerminals.getINTRule(); | ||
1157 | } | ||
1158 | |||
1159 | //terminal STRING: | ||
1160 | // '"' ('\\' . | !('\\' | '"'))* '"' | | ||
1161 | // "'" ('\\' . | !('\\' | "'"))* "'"; | ||
1162 | public TerminalRule getSTRINGRule() { | ||
1163 | return gaTerminals.getSTRINGRule(); | ||
1164 | } | ||
1165 | |||
1166 | //terminal ML_COMMENT: | ||
1167 | // '/*'->'*/'; | ||
1168 | public TerminalRule getML_COMMENTRule() { | ||
1169 | return gaTerminals.getML_COMMENTRule(); | ||
1170 | } | ||
1171 | |||
1172 | //terminal SL_COMMENT: | ||
1173 | // '//' !('\n' | '\r')* ('\r'? '\n')?; | ||
1174 | public TerminalRule getSL_COMMENTRule() { | ||
1175 | return gaTerminals.getSL_COMMENTRule(); | ||
1176 | } | ||
1177 | |||
1178 | //terminal WS: | ||
1179 | // ' ' | '\t' | '\r' | '\n'+; | ||
1180 | public TerminalRule getWSRule() { | ||
1181 | return gaTerminals.getWSRule(); | ||
1182 | } | ||
1183 | |||
1184 | //terminal ANY_OTHER: | ||
1185 | // .; | ||
1186 | public TerminalRule getANY_OTHERRule() { | ||
1187 | return gaTerminals.getANY_OTHERRule(); | ||
1188 | } | ||
1189 | } | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/validation/AbstractCftLanguageValidator.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/validation/AbstractCftLanguageValidator.java new file mode 100644 index 00000000..a0c1efe7 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/validation/AbstractCftLanguageValidator.java | |||
@@ -0,0 +1,19 @@ | |||
1 | /* | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.validation; | ||
5 | |||
6 | import java.util.ArrayList; | ||
7 | import java.util.List; | ||
8 | import org.eclipse.emf.ecore.EPackage; | ||
9 | import org.eclipse.xtext.validation.AbstractDeclarativeValidator; | ||
10 | |||
11 | public abstract class AbstractCftLanguageValidator extends AbstractDeclarativeValidator { | ||
12 | |||
13 | @Override | ||
14 | protected List<EPackage> getEPackages() { | ||
15 | List<EPackage> result = new ArrayList<EPackage>(); | ||
16 | result.add(hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage.eINSTANCE); | ||
17 | return result; | ||
18 | } | ||
19 | } | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/validation/CftLanguageConfigurableIssueCodesProvider.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/validation/CftLanguageConfigurableIssueCodesProvider.java new file mode 100644 index 00000000..642dcb1d --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/validation/CftLanguageConfigurableIssueCodesProvider.java | |||
@@ -0,0 +1,22 @@ | |||
1 | /* | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.validation; | ||
5 | |||
6 | import org.eclipse.xtext.preferences.PreferenceKey; | ||
7 | import org.eclipse.xtext.util.IAcceptor; | ||
8 | import org.eclipse.xtext.validation.ConfigurableIssueCodesProvider; | ||
9 | import org.eclipse.xtext.validation.SeverityConverter; | ||
10 | |||
11 | @SuppressWarnings("restriction") | ||
12 | public class CftLanguageConfigurableIssueCodesProvider extends ConfigurableIssueCodesProvider { | ||
13 | protected static final String ISSUE_CODE_PREFIX = "hu.bme.mit.inf.dslreasoner.faulttree.components."; | ||
14 | |||
15 | public static final String DEPRECATED_MODEL_PART = ISSUE_CODE_PREFIX + "deprecatedModelPart"; | ||
16 | |||
17 | @Override | ||
18 | protected void initialize(IAcceptor<PreferenceKey> acceptor) { | ||
19 | super.initialize(acceptor); | ||
20 | acceptor.accept(create(DEPRECATED_MODEL_PART, SeverityConverter.SEVERITY_WARNING)); | ||
21 | } | ||
22 | } | ||