use of org.obeonetwork.dsl.environment.EnvironmentPackage in project InformationSystem by ObeoNetwork.
the class EntityPackageImpl method initializePackageContents.
/**
* Complete the initialization of the package and its meta-model. This
* method is guarded to have no affect on any invocation but its first. <!--
* begin-user-doc --> <!-- end-user-doc -->
*
* @generated
*/
public void initializePackageContents() {
if (isInitialized)
return;
isInitialized = true;
// Initialize package
setName(eNAME);
setNsPrefix(eNS_PREFIX);
setNsURI(eNS_URI);
// Obtain other dependent packages
ExtensionUtilitiesPackage theExtensionUtilitiesPackage = (ExtensionUtilitiesPackage) EPackage.Registry.INSTANCE.getEPackage(ExtensionUtilitiesPackage.eNS_URI);
EnvironmentPackage theEnvironmentPackage = (EnvironmentPackage) EPackage.Registry.INSTANCE.getEPackage(EnvironmentPackage.eNS_URI);
// Add subpackages
getESubpackages().add(theExtensionUtilitiesPackage);
// Create type parameters
// Set bounds for type parameters
// Add supertypes to classes
rootEClass.getESuperTypes().add(theEnvironmentPackage.getTypesDefinition());
rootEClass.getESuperTypes().add(theEnvironmentPackage.getNamespacesContainer());
entityEClass.getESuperTypes().add(theEnvironmentPackage.getStructuredType());
finderEClass.getESuperTypes().add(theEnvironmentPackage.getObeoDSMObject());
internalCriterionEClass.getESuperTypes().add(this.getCriterion());
criterionEClass.getESuperTypes().add(theEnvironmentPackage.getObeoDSMObject());
externalCriterionEClass.getESuperTypes().add(this.getCriterion());
// Initialize classes and features; add operations and parameters
initEClass(rootEClass, Root.class, "Root", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
initEAttribute(getRoot_Name(), ecorePackage.getEString(), "name", null, 0, 1, Root.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEClass(entityEClass, Entity.class, "Entity", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
initEAttribute(getEntity_EstimatedVolumetry(), ecorePackage.getEInt(), "estimatedVolumetry", null, 0, 1, Entity.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEAttribute(getEntity_EstimatedAccess(), ecorePackage.getEInt(), "estimatedAccess", null, 0, 1, Entity.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEAttribute(getEntity_Historized(), ecorePackage.getEBoolean(), "historized", null, 1, 1, Entity.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEReference(getEntity_OwnedFinders(), this.getFinder(), this.getFinder_Entity(), "ownedFinders", null, 0, -1, Entity.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEAttribute(getEntity_InheritanceKind(), this.getInheritanceKind(), "inheritanceKind", null, 0, 1, Entity.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEClass(finderEClass, Finder.class, "Finder", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
initEAttribute(getFinder_Name(), ecorePackage.getEString(), "name", null, 1, 1, Finder.class, IS_TRANSIENT, IS_VOLATILE, !IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, IS_DERIVED, IS_ORDERED);
initEReference(getFinder_Entity(), this.getEntity(), this.getEntity_OwnedFinders(), "entity", null, 1, 1, Finder.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEAttribute(getFinder_CustomizedName(), ecorePackage.getEString(), "customizedName", null, 0, 1, Finder.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEReference(getFinder_Criterions(), this.getCriterion(), null, "criterions", null, 0, -1, Finder.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEAttribute(getFinder_Multiplicity(), theEnvironmentPackage.getMultiplicityKind(), "multiplicity", null, 1, 1, Finder.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEClass(internalCriterionEClass, InternalCriterion.class, "InternalCriterion", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
initEReference(getInternalCriterion_Target(), theEnvironmentPackage.getAttribute(), null, "target", null, 1, 1, InternalCriterion.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEAttribute(getInternalCriterion_Name(), ecorePackage.getEString(), "name", null, 1, 1, InternalCriterion.class, IS_TRANSIENT, IS_VOLATILE, !IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, IS_DERIVED, IS_ORDERED);
initEClass(criterionEClass, Criterion.class, "Criterion", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
initEClass(externalCriterionEClass, ExternalCriterion.class, "ExternalCriterion", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
initEAttribute(getExternalCriterion_Name(), ecorePackage.getEString(), "name", null, 1, 1, ExternalCriterion.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEReference(getExternalCriterion_Type(), theEnvironmentPackage.getType(), null, "type", null, 1, 1, ExternalCriterion.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
// Initialize enums and add enum literals
initEEnum(inheritanceKindEEnum, InheritanceKind.class, "InheritanceKind");
addEEnumLiteral(inheritanceKindEEnum, InheritanceKind.TABLE_PER_SUBCLASS_LITERAL);
addEEnumLiteral(inheritanceKindEEnum, InheritanceKind.TABLE_PER_CLASS_HIERARCHY_LITERAL);
// Create resource
createResource(eNS_URI);
}
use of org.obeonetwork.dsl.environment.EnvironmentPackage in project InformationSystem by ObeoNetwork.
the class ApplicationPackageImpl method initializePackageContents.
/**
* Complete the initialization of the package and its meta-model. This
* method is guarded to have no affect on any invocation but its first.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void initializePackageContents() {
if (isInitialized)
return;
isInitialized = true;
// Initialize package
setName(eNAME);
setNsPrefix(eNS_PREFIX);
setNsURI(eNS_URI);
// Obtain other dependent packages
TechnicalIDPackage theTechnicalIDPackage = (TechnicalIDPackage) EPackage.Registry.INSTANCE.getEPackage(TechnicalIDPackage.eNS_URI);
EnvironmentPackage theEnvironmentPackage = (EnvironmentPackage) EPackage.Registry.INSTANCE.getEPackage(EnvironmentPackage.eNS_URI);
EcorePackage theEcorePackage = (EcorePackage) EPackage.Registry.INSTANCE.getEPackage(EcorePackage.eNS_URI);
CinematicPackage theCinematicPackage = (CinematicPackage) EPackage.Registry.INSTANCE.getEPackage(CinematicPackage.eNS_URI);
EcorebindingPackage theEcorebindingPackage = (EcorebindingPackage) EPackage.Registry.INSTANCE.getEPackage(EcorebindingPackage.eNS_URI);
// Create type parameters
// Set bounds for type parameters
// Add supertypes to classes
configurationEClass.getESuperTypes().add(theTechnicalIDPackage.getIdentifiable());
// Initialize classes and features; add operations and parameters
initEClass(configurationEClass, Configuration.class, "Configuration", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
initEReference(getConfiguration_BindingRegistries(), theEnvironmentPackage.getBindingRegistry(), null, "bindingRegistries", null, 0, -1, Configuration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEReference(getConfiguration_EcoreModel(), theEcorePackage.getEPackage(), null, "ecoreModel", null, 0, 1, Configuration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEReference(getConfiguration_CinematicModel(), theCinematicPackage.getCinematicRoot(), null, "cinematicModel", null, 0, 1, Configuration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEReference(getConfiguration_EcoreBindingModel(), theEcorebindingPackage.getBModel(), null, "ecoreBindingModel", null, 0, 1, Configuration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
// Create resource
createResource(eNS_URI);
}
use of org.obeonetwork.dsl.environment.EnvironmentPackage in project InformationSystem by ObeoNetwork.
the class StateMachinePackageImpl method initializePackageContents.
/**
* Complete the initialization of the package and its meta-model. This
* method is guarded to have no affect on any invocation but its first.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void initializePackageContents() {
if (isInitialized)
return;
isInitialized = true;
// Initialize package
setName(eNAME);
setNsPrefix(eNS_PREFIX);
setNsURI(eNS_URI);
// Obtain other dependent packages
EnvironmentPackage theEnvironmentPackage = (EnvironmentPackage) EPackage.Registry.INSTANCE.getEPackage(EnvironmentPackage.eNS_URI);
// Create type parameters
// Set bounds for type parameters
// Add supertypes to classes
namedElementEClass.getESuperTypes().add(theEnvironmentPackage.getObeoDSMObject());
stateMachineEClass.getESuperTypes().add(this.getStateMachineDescription());
stateMachineEClass.getESuperTypes().add(theEnvironmentPackage.getBehaviour());
stateEClass.getESuperTypes().add(this.getAbstractState());
stateEClass.getESuperTypes().add(this.getNamedElement());
stateMachineDescriptionEClass.getESuperTypes().add(this.getNamedElement());
regionEClass.getESuperTypes().add(this.getStateMachineDescription());
abstractStateEClass.getESuperTypes().add(theEnvironmentPackage.getObeoDSMObject());
transitionEClass.getESuperTypes().add(theEnvironmentPackage.getObeoDSMObject());
initialStateEClass.getESuperTypes().add(this.getAbstractState());
finalStateEClass.getESuperTypes().add(this.getAbstractState());
// Initialize classes and features; add operations and parameters
initEClass(namedElementEClass, NamedElement.class, "NamedElement", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
initEAttribute(getNamedElement_Name(), ecorePackage.getEString(), "name", null, 0, 1, NamedElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEClass(stateMachineEClass, StateMachine.class, "StateMachine", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
initEReference(getStateMachine_Regions(), this.getRegion(), null, "regions", null, 0, -1, StateMachine.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEClass(stateEClass, State.class, "State", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
initEClass(stateMachineDescriptionEClass, StateMachineDescription.class, "StateMachineDescription", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
initEReference(getStateMachineDescription_States(), this.getAbstractState(), null, "states", null, 0, -1, StateMachineDescription.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEReference(getStateMachineDescription_Transitions(), this.getTransition(), null, "transitions", null, 0, -1, StateMachineDescription.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEClass(regionEClass, Region.class, "Region", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
initEClass(abstractStateEClass, AbstractState.class, "AbstractState", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
initEReference(getAbstractState_IncomingTransitions(), this.getTransition(), this.getTransition_To(), "incomingTransitions", null, 0, -1, AbstractState.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEReference(getAbstractState_OutcomingTransitions(), this.getTransition(), this.getTransition_From(), "outcomingTransitions", null, 0, -1, AbstractState.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEClass(transitionEClass, Transition.class, "Transition", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
initEAttribute(getTransition_Guard(), ecorePackage.getEString(), "guard", null, 0, 1, Transition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEReference(getTransition_From(), this.getAbstractState(), this.getAbstractState_OutcomingTransitions(), "from", null, 1, 1, Transition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEReference(getTransition_To(), this.getAbstractState(), this.getAbstractState_IncomingTransitions(), "to", null, 1, 1, Transition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEClass(initialStateEClass, InitialState.class, "InitialState", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
initEClass(finalStateEClass, FinalState.class, "FinalState", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
// Create resource
createResource(eNS_URI);
}
use of org.obeonetwork.dsl.environment.EnvironmentPackage in project InformationSystem by ObeoNetwork.
the class OverviewPackageImpl method initializePackageContents.
/**
* Complete the initialization of the package and its meta-model. This
* method is guarded to have no affect on any invocation but its first.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void initializePackageContents() {
if (isInitialized)
return;
isInitialized = true;
// Initialize package
setName(eNAME);
setNsPrefix(eNS_PREFIX);
setNsURI(eNS_URI);
// Obtain other dependent packages
EnvironmentPackage theEnvironmentPackage = (EnvironmentPackage) EPackage.Registry.INSTANCE.getEPackage(EnvironmentPackage.eNS_URI);
// Create type parameters
// Set bounds for type parameters
// Add supertypes to classes
rootEClass.getESuperTypes().add(theEnvironmentPackage.getObeoDSMObject());
// Initialize classes and features; add operations and parameters
initEClass(rootEClass, Root.class, "Root", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
initEReference(getRoot_OwnedElements(), ecorePackage.getEObject(), null, "ownedElements", null, 0, -1, Root.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
// Create resource
createResource(eNS_URI);
}
use of org.obeonetwork.dsl.environment.EnvironmentPackage in project InformationSystem by ObeoNetwork.
the class GraalExtensionsPackageImpl method initializePackageContents.
/**
* Complete the initialization of the package and its meta-model. This
* method is guarded to have no affect on any invocation but its first.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void initializePackageContents() {
if (isInitialized)
return;
isInitialized = true;
// Initialize package
setName(eNAME);
setNsPrefix(eNS_PREFIX);
setNsURI(eNS_URI);
// Obtain other dependent packages
EnvironmentPackage theEnvironmentPackage = (EnvironmentPackage) EPackage.Registry.INSTANCE.getEPackage(EnvironmentPackage.eNS_URI);
// Create type parameters
// Set bounds for type parameters
// Add supertypes to classes
riskEClass.getESuperTypes().add(theEnvironmentPackage.getMetaData());
// Initialize classes and features; add operations and parameters
initEClass(riskEClass, Risk.class, "Risk", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
initEAttribute(getRisk_Benefits(), this.getBenefitsLevel(), "benefits", null, 0, 1, Risk.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEAttribute(getRisk_Drawbacks(), this.getDrawbacksLevel(), "drawbacks", null, 0, 1, Risk.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEAttribute(getRisk_Risk(), this.getRiskLevel(), "risk", null, 0, 1, Risk.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
// Initialize enums and add enum literals
initEEnum(benefitsLevelEEnum, BenefitsLevel.class, "BenefitsLevel");
addEEnumLiteral(benefitsLevelEEnum, BenefitsLevel.UNDEFINED);
addEEnumLiteral(benefitsLevelEEnum, BenefitsLevel._1);
addEEnumLiteral(benefitsLevelEEnum, BenefitsLevel._2);
addEEnumLiteral(benefitsLevelEEnum, BenefitsLevel._3);
addEEnumLiteral(benefitsLevelEEnum, BenefitsLevel._4);
addEEnumLiteral(benefitsLevelEEnum, BenefitsLevel._5);
initEEnum(drawbacksLevelEEnum, DrawbacksLevel.class, "DrawbacksLevel");
addEEnumLiteral(drawbacksLevelEEnum, DrawbacksLevel.UNDEFINED);
addEEnumLiteral(drawbacksLevelEEnum, DrawbacksLevel._1);
addEEnumLiteral(drawbacksLevelEEnum, DrawbacksLevel._2);
addEEnumLiteral(drawbacksLevelEEnum, DrawbacksLevel._3);
addEEnumLiteral(drawbacksLevelEEnum, DrawbacksLevel._4);
addEEnumLiteral(drawbacksLevelEEnum, DrawbacksLevel._5);
initEEnum(riskLevelEEnum, RiskLevel.class, "RiskLevel");
addEEnumLiteral(riskLevelEEnum, RiskLevel.UNDEFINED);
addEEnumLiteral(riskLevelEEnum, RiskLevel._1);
addEEnumLiteral(riskLevelEEnum, RiskLevel._2);
addEEnumLiteral(riskLevelEEnum, RiskLevel._3);
addEEnumLiteral(riskLevelEEnum, RiskLevel._4);
addEEnumLiteral(riskLevelEEnum, RiskLevel._5);
// Create resource
createResource(eNS_URI);
}
Aggregations