/** */ package hu.bme.mit.inf.dslreasoner.domains.satellite.impl; import hu.bme.mit.inf.dslreasoner.domains.satellite.AntennaGain; import hu.bme.mit.inf.dslreasoner.domains.satellite.CommSubsystem; import hu.bme.mit.inf.dslreasoner.domains.satellite.CommunicatingElement; import hu.bme.mit.inf.dslreasoner.domains.satellite.ConstellationMission; import hu.bme.mit.inf.dslreasoner.domains.satellite.DirectedCommunicationLink; import hu.bme.mit.inf.dslreasoner.domains.satellite.GroundStationNetwork; import hu.bme.mit.inf.dslreasoner.domains.satellite.InterferometryMission; import hu.bme.mit.inf.dslreasoner.domains.satellite.InterferometryPayload; import hu.bme.mit.inf.dslreasoner.domains.satellite.Payload; import hu.bme.mit.inf.dslreasoner.domains.satellite.SatelliteFactory; import hu.bme.mit.inf.dslreasoner.domains.satellite.SatellitePackage; import hu.bme.mit.inf.dslreasoner.domains.satellite.Spacecraft; import hu.bme.mit.inf.dslreasoner.domains.satellite.SpacecraftKind; import hu.bme.mit.inf.dslreasoner.domains.satellite.TransceiverBand; import org.eclipse.emf.ecore.EAttribute; import org.eclipse.emf.ecore.EClass; import org.eclipse.emf.ecore.EEnum; import org.eclipse.emf.ecore.EPackage; import org.eclipse.emf.ecore.EReference; import org.eclipse.emf.ecore.impl.EPackageImpl; /** * * An implementation of the model Package. * * @generated */ public class SatellitePackageImpl extends EPackageImpl implements SatellitePackage { /** * * * @generated */ private EClass constellationMissionEClass = null; /** * * * @generated */ private EClass interferometryMissionEClass = null; /** * * * @generated */ private EClass communicatingElementEClass = null; /** * * * @generated */ private EClass groundStationNetworkEClass = null; /** * * * @generated */ private EClass spacecraftEClass = null; /** * * * @generated */ private EClass commSubsystemEClass = null; /** * * * @generated */ private EClass directedCommunicationLinkEClass = null; /** * * * @generated */ private EClass payloadEClass = null; /** * * * @generated */ private EClass interferometryPayloadEClass = null; /** * * * @generated */ private EEnum transceiverBandEEnum = null; /** * * * @generated */ private EEnum antennaGainEEnum = null; /** * * * @generated */ private EEnum spacecraftKindEEnum = null; /** * Creates an instance of the model Package, registered with * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package * package URI value. *

Note: the correct way to create the package is via the static * factory method {@link #init init()}, which also performs * initialization of the package, or returns the registered package, * if one already exists. * * * @see org.eclipse.emf.ecore.EPackage.Registry * @see hu.bme.mit.inf.dslreasoner.domains.satellite.SatellitePackage#eNS_URI * @see #init() * @generated */ private SatellitePackageImpl() { super(eNS_URI, SatelliteFactory.eINSTANCE); } /** * * * @generated */ private static boolean isInited = false; /** * Creates, registers, and initializes the Package for this model, and for any others upon which it depends. * *

This method is used to initialize {@link SatellitePackage#eINSTANCE} when that field is accessed. * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. * * * @see #eNS_URI * @see #createPackageContents() * @see #initializePackageContents() * @generated */ public static SatellitePackage init() { if (isInited) return (SatellitePackage) EPackage.Registry.INSTANCE.getEPackage(SatellitePackage.eNS_URI); // Obtain or create and register package Object registeredSatellitePackage = EPackage.Registry.INSTANCE.get(eNS_URI); SatellitePackageImpl theSatellitePackage = registeredSatellitePackage instanceof SatellitePackageImpl ? (SatellitePackageImpl) registeredSatellitePackage : new SatellitePackageImpl(); isInited = true; // Create package meta-data objects theSatellitePackage.createPackageContents(); // Initialize created meta-data theSatellitePackage.initializePackageContents(); // Mark meta-data to indicate it can't be changed theSatellitePackage.freeze(); // Update the registry and return the package EPackage.Registry.INSTANCE.put(SatellitePackage.eNS_URI, theSatellitePackage); return theSatellitePackage; } /** * * * @generated */ @Override public EClass getConstellationMission() { return constellationMissionEClass; } /** * * * @generated */ @Override public EReference getConstellationMission_GroundStationNetwork() { return (EReference) constellationMissionEClass.getEStructuralFeatures().get(0); } /** * * * @generated */ @Override public EReference getConstellationMission_Spacecraft() { return (EReference) constellationMissionEClass.getEStructuralFeatures().get(1); } /** * * * @generated */ @Override public EClass getInterferometryMission() { return interferometryMissionEClass; } /** * * * @generated */ @Override public EAttribute getInterferometryMission_ObservationTime() { return (EAttribute) interferometryMissionEClass.getEStructuralFeatures().get(0); } /** * * * @generated */ @Override public EClass getCommunicatingElement() { return communicatingElementEClass; } /** * * * @generated */ @Override public EReference getCommunicatingElement_CommSubsystem() { return (EReference) communicatingElementEClass.getEStructuralFeatures().get(0); } /** * * * @generated */ @Override public EReference getCommunicatingElement_CommunicationLink() { return (EReference) communicatingElementEClass.getEStructuralFeatures().get(1); } /** * * * @generated */ @Override public EClass getGroundStationNetwork() { return groundStationNetworkEClass; } /** * * * @generated */ @Override public EClass getSpacecraft() { return spacecraftEClass; } /** * * * @generated */ @Override public EReference getSpacecraft_Payload() { return (EReference) spacecraftEClass.getEStructuralFeatures().get(0); } /** * * * @generated */ @Override public EAttribute getSpacecraft_Kind() { return (EAttribute) spacecraftEClass.getEStructuralFeatures().get(1); } /** * * * @generated */ @Override public EClass getCommSubsystem() { return commSubsystemEClass; } /** * * * @generated */ @Override public EAttribute getCommSubsystem_Band() { return (EAttribute) commSubsystemEClass.getEStructuralFeatures().get(0); } /** * * * @generated */ @Override public EAttribute getCommSubsystem_Gain() { return (EAttribute) commSubsystemEClass.getEStructuralFeatures().get(1); } /** * * * @generated */ @Override public EClass getDirectedCommunicationLink() { return directedCommunicationLinkEClass; } /** * * * @generated */ @Override public EReference getDirectedCommunicationLink_Source() { return (EReference) directedCommunicationLinkEClass.getEStructuralFeatures().get(0); } /** * * * @generated */ @Override public EReference getDirectedCommunicationLink_Target() { return (EReference) directedCommunicationLinkEClass.getEStructuralFeatures().get(1); } /** * * * @generated */ @Override public EClass getPayload() { return payloadEClass; } /** * * * @generated */ @Override public EClass getInterferometryPayload() { return interferometryPayloadEClass; } /** * * * @generated */ @Override public EEnum getTransceiverBand() { return transceiverBandEEnum; } /** * * * @generated */ @Override public EEnum getAntennaGain() { return antennaGainEEnum; } /** * * * @generated */ @Override public EEnum getSpacecraftKind() { return spacecraftKindEEnum; } /** * * * @generated */ @Override public SatelliteFactory getSatelliteFactory() { return (SatelliteFactory) getEFactoryInstance(); } /** * * * @generated */ private boolean isCreated = false; /** * Creates the meta-model objects for the package. This method is * guarded to have no affect on any invocation but its first. * * * @generated */ public void createPackageContents() { if (isCreated) return; isCreated = true; // Create classes and their features constellationMissionEClass = createEClass(CONSTELLATION_MISSION); createEReference(constellationMissionEClass, CONSTELLATION_MISSION__GROUND_STATION_NETWORK); createEReference(constellationMissionEClass, CONSTELLATION_MISSION__SPACECRAFT); interferometryMissionEClass = createEClass(INTERFEROMETRY_MISSION); createEAttribute(interferometryMissionEClass, INTERFEROMETRY_MISSION__OBSERVATION_TIME); communicatingElementEClass = createEClass(COMMUNICATING_ELEMENT); createEReference(communicatingElementEClass, COMMUNICATING_ELEMENT__COMM_SUBSYSTEM); createEReference(communicatingElementEClass, COMMUNICATING_ELEMENT__COMMUNICATION_LINK); groundStationNetworkEClass = createEClass(GROUND_STATION_NETWORK); spacecraftEClass = createEClass(SPACECRAFT); createEReference(spacecraftEClass, SPACECRAFT__PAYLOAD); createEAttribute(spacecraftEClass, SPACECRAFT__KIND); commSubsystemEClass = createEClass(COMM_SUBSYSTEM); createEAttribute(commSubsystemEClass, COMM_SUBSYSTEM__BAND); createEAttribute(commSubsystemEClass, COMM_SUBSYSTEM__GAIN); directedCommunicationLinkEClass = createEClass(DIRECTED_COMMUNICATION_LINK); createEReference(directedCommunicationLinkEClass, DIRECTED_COMMUNICATION_LINK__SOURCE); createEReference(directedCommunicationLinkEClass, DIRECTED_COMMUNICATION_LINK__TARGET); payloadEClass = createEClass(PAYLOAD); interferometryPayloadEClass = createEClass(INTERFEROMETRY_PAYLOAD); // Create enums transceiverBandEEnum = createEEnum(TRANSCEIVER_BAND); antennaGainEEnum = createEEnum(ANTENNA_GAIN); spacecraftKindEEnum = createEEnum(SPACECRAFT_KIND); } /** * * * @generated */ private boolean isInitialized = false; /** * Complete the initialization of the package and its meta-model. This * method is guarded to have no affect on any invocation but its first. * * * @generated */ public void initializePackageContents() { if (isInitialized) return; isInitialized = true; // Initialize package setName(eNAME); setNsPrefix(eNS_PREFIX); setNsURI(eNS_URI); // Create type parameters // Set bounds for type parameters // Add supertypes to classes interferometryMissionEClass.getESuperTypes().add(this.getConstellationMission()); groundStationNetworkEClass.getESuperTypes().add(this.getCommunicatingElement()); spacecraftEClass.getESuperTypes().add(this.getCommunicatingElement()); interferometryPayloadEClass.getESuperTypes().add(this.getPayload()); // Initialize classes, features, and operations; add parameters initEClass(constellationMissionEClass, ConstellationMission.class, "ConstellationMission", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEReference(getConstellationMission_GroundStationNetwork(), this.getGroundStationNetwork(), null, "groundStationNetwork", null, 1, 1, ConstellationMission.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEReference(getConstellationMission_Spacecraft(), this.getSpacecraft(), null, "spacecraft", null, 2, 50, ConstellationMission.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(interferometryMissionEClass, InterferometryMission.class, "InterferometryMission", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEAttribute(getInterferometryMission_ObservationTime(), ecorePackage.getEFloat(), "observationTime", "2.0", 1, 1, InterferometryMission.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(communicatingElementEClass, CommunicatingElement.class, "CommunicatingElement", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEReference(getCommunicatingElement_CommSubsystem(), this.getCommSubsystem(), null, "commSubsystem", null, 1, 2, CommunicatingElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEReference(getCommunicatingElement_CommunicationLink(), this.getDirectedCommunicationLink(), null, "communicationLink", null, 0, 1, CommunicatingElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(groundStationNetworkEClass, GroundStationNetwork.class, "GroundStationNetwork", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEClass(spacecraftEClass, Spacecraft.class, "Spacecraft", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEReference(getSpacecraft_Payload(), this.getPayload(), null, "payload", null, 0, 1, Spacecraft.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getSpacecraft_Kind(), this.getSpacecraftKind(), "kind", null, 1, 1, Spacecraft.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(commSubsystemEClass, CommSubsystem.class, "CommSubsystem", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEAttribute(getCommSubsystem_Band(), this.getTransceiverBand(), "band", null, 1, 1, CommSubsystem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getCommSubsystem_Gain(), this.getAntennaGain(), "gain", null, 1, 1, CommSubsystem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(directedCommunicationLinkEClass, DirectedCommunicationLink.class, "DirectedCommunicationLink", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEReference(getDirectedCommunicationLink_Source(), this.getCommSubsystem(), null, "source", null, 1, 1, DirectedCommunicationLink.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEReference(getDirectedCommunicationLink_Target(), this.getCommSubsystem(), null, "target", null, 1, 1, DirectedCommunicationLink.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(payloadEClass, Payload.class, "Payload", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEClass(interferometryPayloadEClass, InterferometryPayload.class, "InterferometryPayload", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); // Initialize enums and add enum literals initEEnum(transceiverBandEEnum, TransceiverBand.class, "TransceiverBand"); addEEnumLiteral(transceiverBandEEnum, TransceiverBand.UHF); addEEnumLiteral(transceiverBandEEnum, TransceiverBand.X); addEEnumLiteral(transceiverBandEEnum, TransceiverBand.KA); initEEnum(antennaGainEEnum, AntennaGain.class, "AntennaGain"); addEEnumLiteral(antennaGainEEnum, AntennaGain.LOW); addEEnumLiteral(antennaGainEEnum, AntennaGain.MEDIUM); addEEnumLiteral(antennaGainEEnum, AntennaGain.HIGH); initEEnum(spacecraftKindEEnum, SpacecraftKind.class, "SpacecraftKind"); addEEnumLiteral(spacecraftKindEEnum, SpacecraftKind.CUBE_SAT3_U); addEEnumLiteral(spacecraftKindEEnum, SpacecraftKind.CUBE_SAT6_U); addEEnumLiteral(spacecraftKindEEnum, SpacecraftKind.SMALL_SAT); // Create resource createResource(eNS_URI); } } //SatellitePackageImpl