use of org.obeonetwork.dsl.environment.EnvironmentPackage in project InformationSystem by ObeoNetwork.
the class ExtensionUtilitiesPackageImpl 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);
EntityPackage theEntityPackage = (EntityPackage) EPackage.Registry.INSTANCE.getEPackage(EntityPackage.eNS_URI);
// Create type parameters
// Set bounds for type parameters
// Add supertypes to classes
entityFilterEClass.getESuperTypes().add(theEnvironmentPackage.getFilter());
// Initialize classes and features; add operations and parameters
initEClass(entityFilterEClass, EntityFilter.class, "EntityFilter", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
initEReference(getEntityFilter_AttributeReferences(), theEnvironmentPackage.getAttribute(), null, "attributeReferences", null, 0, -1, EntityFilter.class, IS_TRANSIENT, IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);
initEReference(getEntityFilter_ReferenceReferences(), theEnvironmentPackage.getReference(), null, "referenceReferences", null, 0, -1, EntityFilter.class, IS_TRANSIENT, IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);
initEReference(getEntityFilter_OwnedPropertyReferences(), theEnvironmentPackage.getProperty(), null, "ownedPropertyReferences", null, 0, -1, EntityFilter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEReference(getEntityFilter_Entity(), theEntityPackage.getEntity(), null, "entity", null, 1, 1, EntityFilter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
}
use of org.obeonetwork.dsl.environment.EnvironmentPackage in project InformationSystem by ObeoNetwork.
the class GraalPackageImpl 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
taskEClass.getESuperTypes().add(this.getActivity());
taskEClass.getESuperTypes().add(this.getAbstractTask());
taskEClass.getESuperTypes().add(this.getUserStoryElement());
systemEClass.getESuperTypes().add(this.getNamedElement());
systemEClass.getESuperTypes().add(this.getDomainModelRegistry());
systemEClass.getESuperTypes().add(this.getTasksContainer());
systemEClass.getESuperTypes().add(theEnvironmentPackage.getNamespacesContainer());
activityEClass.getESuperTypes().add(this.getGraalObject());
operatorEClass.getESuperTypes().add(this.getNode());
nodeEClass.getESuperTypes().add(this.getGraalObject());
nodeEClass.getESuperTypes().add(this.getUserStoryElement());
transitionEClass.getESuperTypes().add(this.getGraalObject());
transitionEClass.getESuperTypes().add(this.getUserStoryElement());
taskReferenceEClass.getESuperTypes().add(this.getNode());
userViewEClass.getESuperTypes().add(this.getNamedNode());
userActionEClass.getESuperTypes().add(this.getNamedNode());
appliEventEClass.getESuperTypes().add(this.getNamedNode());
appliActionEClass.getESuperTypes().add(this.getNamedNode());
initialNodeEClass.getESuperTypes().add(this.getNode());
finalNodeEClass.getESuperTypes().add(this.getNode());
abortNodeEClass.getESuperTypes().add(this.getNode());
loopEClass.getESuperTypes().add(this.getActivity());
actorEClass.getESuperTypes().add(this.getNamedElement());
abstractTaskEClass.getESuperTypes().add(this.getNamedElement());
tasksGroupEClass.getESuperTypes().add(this.getAbstractTask());
tasksGroupEClass.getESuperTypes().add(this.getTasksContainer());
useCaseEClass.getESuperTypes().add(this.getNamedElement());
useCaseEClass.getESuperTypes().add(this.getDomainModelRegistry());
namedElementEClass.getESuperTypes().add(this.getGraalObject());
namedNodeEClass.getESuperTypes().add(this.getNode());
namedNodeEClass.getESuperTypes().add(this.getNamedElement());
userStoryEClass.getESuperTypes().add(this.getNamedElement());
graalObjectEClass.getESuperTypes().add(theEnvironmentPackage.getObeoDSMObject());
domainClassEClass.getESuperTypes().add(theEnvironmentPackage.getStructuredType());
// Initialize classes and features; add operations and parameters
initEClass(taskEClass, Task.class, "Task", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
initEReference(getTask_Uses(), this.getTask(), null, "uses", null, 0, -1, Task.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEAttribute(getTask_Preconditions(), ecorePackage.getEString(), "preconditions", null, 0, 1, Task.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEAttribute(getTask_Postconditions(), ecorePackage.getEString(), "postconditions", null, 0, 1, Task.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEReference(getTask_Actors(), this.getActor(), null, "actors", null, 0, -1, Task.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
addEOperation(taskEClass, this.getTaskReference(), "getReferencedBy", 0, -1, IS_UNIQUE, IS_ORDERED);
addEOperation(taskEClass, this.getTask(), "getUsedBy", 0, -1, IS_UNIQUE, IS_ORDERED);
addEOperation(taskEClass, this.getActor(), "getRelatedActors", 0, -1, IS_UNIQUE, IS_ORDERED);
initEClass(systemEClass, org.obeonetwork.graal.System.class, "System", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
initEReference(getSystem_SubSystems(), this.getSystem(), null, "subSystems", null, 0, -1, org.obeonetwork.graal.System.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEReference(getSystem_Actors(), this.getActor(), null, "actors", null, 0, -1, org.obeonetwork.graal.System.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEReference(getSystem_UseCases(), this.getUseCase(), null, "useCases", null, 0, -1, org.obeonetwork.graal.System.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEReference(getSystem_UserStories(), this.getUserStory(), null, "userStories", null, 0, -1, org.obeonetwork.graal.System.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
addEOperation(systemEClass, this.getActor(), "getRelatedActors", 0, -1, IS_UNIQUE, IS_ORDERED);
initEClass(activityEClass, Activity.class, "Activity", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
initEReference(getActivity_Nodes(), this.getNode(), null, "nodes", null, 0, -1, Activity.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEReference(getActivity_Transitions(), this.getTransition(), null, "transitions", null, 0, -1, Activity.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEReference(getActivity_SubActivities(), this.getLoop(), null, "subActivities", null, 0, -1, Activity.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
EOperation op = addEOperation(activityEClass, ecorePackage.getEBoolean(), "hasChildAttachedToUserStory", 0, 1, IS_UNIQUE, IS_ORDERED);
addEParameter(op, this.getUserStory(), "userStory", 0, 1, IS_UNIQUE, IS_ORDERED);
addEOperation(activityEClass, this.getTask(), "getContainingTask", 0, 1, IS_UNIQUE, IS_ORDERED);
initEClass(operatorEClass, Operator.class, "Operator", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
initEAttribute(getOperator_Kind(), this.getOperatorKind(), "kind", null, 1, 1, Operator.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEClass(nodeEClass, Node.class, "Node", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
initEReference(getNode_OutgoingTransitions(), this.getTransition(), this.getTransition_Source(), "outgoingTransitions", null, 0, -1, Node.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEReference(getNode_IncomingTransitions(), this.getTransition(), this.getTransition_Target(), "incomingTransitions", null, 0, -1, Node.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
addEOperation(nodeEClass, this.getTask(), "getContainingTask", 0, 1, IS_UNIQUE, 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_Source(), this.getNode(), this.getNode_OutgoingTransitions(), "source", 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_Target(), this.getNode(), this.getNode_IncomingTransitions(), "target", null, 1, 1, Transition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEAttribute(getTransition_Kind(), this.getTransitionKind(), "kind", null, 1, 1, Transition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
addEOperation(transitionEClass, this.getTask(), "getContainingTask", 0, 1, IS_UNIQUE, IS_ORDERED);
initEClass(taskReferenceEClass, TaskReference.class, "TaskReference", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
initEReference(getTaskReference_Task(), this.getTask(), null, "task", null, 1, 1, TaskReference.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEClass(userViewEClass, UserView.class, "UserView", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
initEClass(userActionEClass, UserAction.class, "UserAction", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
initEClass(appliEventEClass, AppliEvent.class, "AppliEvent", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
initEClass(appliActionEClass, AppliAction.class, "AppliAction", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
initEClass(initialNodeEClass, InitialNode.class, "InitialNode", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
initEClass(finalNodeEClass, FinalNode.class, "FinalNode", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
initEClass(abortNodeEClass, AbortNode.class, "AbortNode", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
initEClass(loopEClass, Loop.class, "Loop", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
initEAttribute(getLoop_LowerBound(), ecorePackage.getEInt(), "lowerBound", null, 0, 1, Loop.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEAttribute(getLoop_UpperBound(), ecorePackage.getEInt(), "upperBound", null, 0, 1, Loop.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEClass(actorEClass, Actor.class, "Actor", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
initEReference(getActor_SubActors(), this.getActor(), this.getActor_SuperActor(), "subActors", null, 0, -1, Actor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEReference(getActor_SuperActor(), this.getActor(), this.getActor_SubActors(), "superActor", null, 0, 1, Actor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEClass(abstractTaskEClass, AbstractTask.class, "AbstractTask", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
initEAttribute(getAbstractTask_Id(), ecorePackage.getEString(), "id", null, 0, 1, AbstractTask.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
addEOperation(abstractTaskEClass, this.getUseCase(), "getUseCase", 0, 1, IS_UNIQUE, IS_ORDERED);
addEOperation(abstractTaskEClass, this.getSystem(), "getContainingSystem", 0, 1, IS_UNIQUE, IS_ORDERED);
initEClass(tasksGroupEClass, TasksGroup.class, "TasksGroup", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
addEOperation(tasksGroupEClass, this.getActor(), "getRelatedActors", 0, -1, IS_UNIQUE, IS_ORDERED);
initEClass(useCaseEClass, UseCase.class, "UseCase", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
initEReference(getUseCase_Actors(), this.getActor(), null, "actors", null, 0, -1, UseCase.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEReference(getUseCase_Tasks(), this.getAbstractTask(), null, "tasks", null, 0, -1, UseCase.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEReference(getUseCase_Includes(), this.getUseCase(), null, "includes", null, 0, -1, UseCase.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEReference(getUseCase_Extends(), this.getUseCase(), null, "extends", null, 0, -1, UseCase.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEReference(getUseCase_DomainClasses(), this.getDomainClass(), null, "domainClasses", null, 0, -1, UseCase.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
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(namedNodeEClass, NamedNode.class, "NamedNode", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
initEClass(domainModelRegistryEClass, DomainModelRegistry.class, "DomainModelRegistry", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
initEReference(getDomainModelRegistry_Namespaces(), theEnvironmentPackage.getNamespace(), null, "namespaces", null, 0, -1, DomainModelRegistry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEReference(getDomainModelRegistry_Types(), theEnvironmentPackage.getStructuredType(), null, "types", null, 0, -1, DomainModelRegistry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEClass(tasksContainerEClass, TasksContainer.class, "TasksContainer", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
initEReference(getTasksContainer_Tasks(), this.getAbstractTask(), null, "tasks", null, 0, -1, TasksContainer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEReference(getTasksContainer_OwnedTasks(), this.getTask(), null, "ownedTasks", null, 0, -1, TasksContainer.class, IS_TRANSIENT, IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);
initEReference(getTasksContainer_OwnedGroups(), this.getTasksGroup(), null, "ownedGroups", null, 0, -1, TasksContainer.class, IS_TRANSIENT, IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);
initEClass(userStoryEClass, UserStory.class, "UserStory", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
initEReference(getUserStory_Elements(), this.getUserStoryElement(), null, "elements", null, 0, -1, UserStory.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEClass(userStoryElementEClass, UserStoryElement.class, "UserStoryElement", IS_ABSTRACT, IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
initEClass(graalObjectEClass, GraalObject.class, "GraalObject", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
op = addEOperation(graalObjectEClass, null, "attachToUserStory", 0, 1, IS_UNIQUE, IS_ORDERED);
addEParameter(op, this.getUserStory(), "userStory", 0, 1, IS_UNIQUE, IS_ORDERED);
op = addEOperation(graalObjectEClass, null, "detachFromUserStory", 0, 1, IS_UNIQUE, IS_ORDERED);
addEParameter(op, this.getUserStory(), "userStory", 0, 1, IS_UNIQUE, IS_ORDERED);
op = addEOperation(graalObjectEClass, ecorePackage.getEBoolean(), "isConcernedByUserStory", 0, 1, IS_UNIQUE, IS_ORDERED);
addEParameter(op, this.getUserStory(), "userStory", 0, 1, IS_UNIQUE, IS_ORDERED);
op = addEOperation(graalObjectEClass, ecorePackage.getEBoolean(), "canBeAttachedToUserStory", 0, 1, IS_UNIQUE, IS_ORDERED);
addEParameter(op, this.getUserStory(), "userStory", 0, 1, IS_UNIQUE, IS_ORDERED);
initEClass(domainClassEClass, DomainClass.class, "DomainClass", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
initEAttribute(getDomainClass_EstimatedVolumetry(), ecorePackage.getEInt(), "estimatedVolumetry", null, 0, 1, DomainClass.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEAttribute(getDomainClass_Historized(), ecorePackage.getEBoolean(), "historized", null, 1, 1, DomainClass.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
// Initialize enums and add enum literals
initEEnum(transitionKindEEnum, TransitionKind.class, "TransitionKind");
addEEnumLiteral(transitionKindEEnum, TransitionKind.NORMAL);
addEEnumLiteral(transitionKindEEnum, TransitionKind.INTERRUPT);
addEEnumLiteral(transitionKindEEnum, TransitionKind.ABORT);
initEEnum(operatorKindEEnum, OperatorKind.class, "OperatorKind");
addEEnumLiteral(operatorKindEEnum, OperatorKind.AND);
addEEnumLiteral(operatorKindEEnum, OperatorKind.OR);
addEEnumLiteral(operatorKindEEnum, OperatorKind.XOR);
// Create resource
createResource(eNS_URI);
}
use of org.obeonetwork.dsl.environment.EnvironmentPackage in project InformationSystem by ObeoNetwork.
the class InteractionPackageImpl 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());
interactionEClass.getESuperTypes().add(this.getNamedElement());
interactionEClass.getESuperTypes().add(theEnvironmentPackage.getBehaviour());
participantEClass.getESuperTypes().add(this.getNamedElement());
messageEClass.getESuperTypes().add(this.getInteractionFragment());
executionEClass.getESuperTypes().add(this.getInteractionFragment());
createParticipantMessageEClass.getESuperTypes().add(this.getMessage());
destroyParticipantMessageEClass.getESuperTypes().add(this.getMessage());
returnMessageEClass.getESuperTypes().add(this.getMessage());
stateInvariantEClass.getESuperTypes().add(this.getInteractionFragment());
interactionUseEClass.getESuperTypes().add(this.getInteractionFragment());
endEClass.getESuperTypes().add(this.getNamedElement());
interactionFragmentEClass.getESuperTypes().add(this.getNamedElement());
combinedFragmentEClass.getESuperTypes().add(this.getInteractionFragment());
operandEClass.getESuperTypes().add(this.getInteractionFragment());
callMessageEClass.getESuperTypes().add(this.getMessage());
compoundEndEClass.getESuperTypes().add(this.getEnd());
// 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(interactionEClass, Interaction.class, "Interaction", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
initEReference(getInteraction_Participants(), this.getParticipant(), null, "participants", null, 0, -1, Interaction.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEReference(getInteraction_Messages(), this.getMessage(), null, "messages", null, 0, -1, Interaction.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEReference(getInteraction_Executions(), this.getExecution(), null, "executions", null, 0, -1, Interaction.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEReference(getInteraction_StateInvariants(), this.getStateInvariant(), null, "stateInvariants", null, 0, -1, Interaction.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEReference(getInteraction_InteractionUses(), this.getInteractionUse(), null, "interactionUses", null, 0, -1, Interaction.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEReference(getInteraction_Ends(), this.getEnd(), null, "ends", null, 0, -1, Interaction.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEReference(getInteraction_CombinedFragments(), this.getCombinedFragment(), null, "combinedFragments", null, 0, -1, Interaction.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEClass(participantEClass, Participant.class, "Participant", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
initEReference(getParticipant_Type(), theEnvironmentPackage.getObeoDSMObject(), null, "type", null, 0, 1, Participant.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEClass(messageEClass, Message.class, "Message", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
initEClass(executionEClass, Execution.class, "Execution", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
initEReference(getExecution_Owner(), this.getParticipant(), null, "owner", null, 1, 1, Execution.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEClass(createParticipantMessageEClass, CreateParticipantMessage.class, "CreateParticipantMessage", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
initEClass(destroyParticipantMessageEClass, DestroyParticipantMessage.class, "DestroyParticipantMessage", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
initEClass(returnMessageEClass, ReturnMessage.class, "ReturnMessage", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
initEReference(getReturnMessage_InvocationMessage(), this.getMessage(), null, "invocationMessage", null, 1, 1, ReturnMessage.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEClass(stateInvariantEClass, StateInvariant.class, "StateInvariant", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
initEReference(getStateInvariant_Owner(), this.getParticipant(), null, "owner", null, 1, 1, StateInvariant.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEClass(interactionUseEClass, InteractionUse.class, "InteractionUse", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
initEAttribute(getInteractionUse_Type(), ecorePackage.getEString(), "type", null, 1, 1, InteractionUse.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEReference(getInteractionUse_Interaction(), this.getInteraction(), null, "interaction", null, 1, 1, InteractionUse.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEReference(getInteractionUse_CoveredParticipants(), this.getParticipant(), null, "coveredParticipants", null, 1, -1, InteractionUse.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEClass(endEClass, End.class, "End", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
initEReference(getEnd_Context(), this.getParticipant(), null, "context", null, 0, 1, End.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEReference(getEnd_Owner(), this.getInteractionFragment(), null, "owner", null, 1, 1, End.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
addEOperation(endEClass, ecorePackage.getEBoolean(), "isStartingEnd", 1, 1, IS_UNIQUE, IS_ORDERED);
addEOperation(endEClass, ecorePackage.getEBoolean(), "isFinishingEnd", 1, 1, IS_UNIQUE, IS_ORDERED);
addEOperation(endEClass, ecorePackage.getEBoolean(), "isMessageEnd", 1, 1, IS_UNIQUE, IS_ORDERED);
addEOperation(endEClass, this.getMessage(), "getMessage", 0, 1, IS_UNIQUE, IS_ORDERED);
addEOperation(endEClass, ecorePackage.getEBoolean(), "isExecutionEnd", 1, 1, IS_UNIQUE, IS_ORDERED);
addEOperation(endEClass, this.getExecution(), "getExecution", 0, 1, IS_UNIQUE, IS_ORDERED);
addEOperation(endEClass, ecorePackage.getEBoolean(), "isStateInvariantEnd", 1, 1, IS_UNIQUE, IS_ORDERED);
addEOperation(endEClass, this.getStateInvariant(), "getStateInvariant", 0, 1, IS_UNIQUE, IS_ORDERED);
addEOperation(endEClass, ecorePackage.getEBoolean(), "isInteractionUseEnd", 1, 1, IS_UNIQUE, IS_ORDERED);
addEOperation(endEClass, this.getInteractionUse(), "getInteractionUse", 0, 1, IS_UNIQUE, IS_ORDERED);
addEOperation(endEClass, ecorePackage.getEBoolean(), "isCombinedFragmentEnd", 1, 1, IS_UNIQUE, IS_ORDERED);
addEOperation(endEClass, this.getCombinedFragment(), "getCombinedFragment", 0, 1, IS_UNIQUE, IS_ORDERED);
addEOperation(endEClass, ecorePackage.getEBoolean(), "isOperandEnd", 1, 1, IS_UNIQUE, IS_ORDERED);
addEOperation(endEClass, this.getOperand(), "getOperand", 0, 1, IS_UNIQUE, IS_ORDERED);
initEClass(interactionFragmentEClass, InteractionFragment.class, "InteractionFragment", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
initEReference(getInteractionFragment_StartingEnd(), this.getEnd(), null, "startingEnd", null, 1, 1, InteractionFragment.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEReference(getInteractionFragment_FinishingEnd(), this.getEnd(), null, "finishingEnd", null, 1, 1, InteractionFragment.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEClass(combinedFragmentEClass, CombinedFragment.class, "CombinedFragment", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
initEAttribute(getCombinedFragment_Operator(), ecorePackage.getEString(), "operator", null, 0, 1, CombinedFragment.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEReference(getCombinedFragment_CoveredParticipants(), this.getParticipant(), null, "coveredParticipants", null, 0, -1, CombinedFragment.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEReference(getCombinedFragment_OwnedOperands(), this.getOperand(), null, "ownedOperands", null, 0, -1, CombinedFragment.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEClass(operandEClass, Operand.class, "Operand", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
initEClass(callMessageEClass, CallMessage.class, "CallMessage", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
initEClass(compoundEndEClass, CompoundEnd.class, "CompoundEnd", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
initEReference(getCompoundEnd_OtherOwner(), this.getMessage(), null, "otherOwner", null, 0, 1, CompoundEnd.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);
}
Aggregations