From 7adead25f3c8451a51a3f8fa1d45b0b8f93b3a69 Mon Sep 17 00:00:00 2001 From: Kristóf Marussy Date: Sun, 10 May 2020 22:09:17 +0200 Subject: Add satellite case study --- .../satellite/impl/CommSubsystemImpl.java | 159 ++++++ .../satellite/impl/CommunicatingElementImpl.java | 152 ++++++ .../satellite/impl/ConstellationMissionImpl.java | 237 +++++++++ .../ecore-gen/satellite/impl/CubeSat3UImpl.java | 37 ++ .../ecore-gen/satellite/impl/CubeSat6UImpl.java | 37 ++ .../ecore-gen/satellite/impl/CubeSatImpl.java | 37 ++ .../satellite/impl/GroundStationNetworkImpl.java | 37 ++ .../satellite/impl/InterferometryMissionImpl.java | 36 ++ .../satellite/impl/InterferometryPayloadImpl.java | 37 ++ .../satellite/impl/KaCommSubsystemImpl.java | 37 ++ .../ecore-gen/satellite/impl/PayloadImpl.java | 39 ++ .../satellite/impl/SatelliteFactoryImpl.java | 202 ++++++++ .../satellite/impl/SatellitePackageImpl.java | 574 +++++++++++++++++++++ .../ecore-gen/satellite/impl/SmallSatImpl.java | 37 ++ .../ecore-gen/satellite/impl/SpacecraftImpl.java | 184 +++++++ .../satellite/impl/UHFCommSubsystemImpl.java | 37 ++ .../satellite/impl/XCommSubsystemImpl.java | 37 ++ 17 files changed, 1916 insertions(+) create mode 100644 Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/CommSubsystemImpl.java create mode 100644 Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/CommunicatingElementImpl.java create mode 100644 Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/ConstellationMissionImpl.java create mode 100644 Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/CubeSat3UImpl.java create mode 100644 Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/CubeSat6UImpl.java create mode 100644 Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/CubeSatImpl.java create mode 100644 Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/GroundStationNetworkImpl.java create mode 100644 Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/InterferometryMissionImpl.java create mode 100644 Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/InterferometryPayloadImpl.java create mode 100644 Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/KaCommSubsystemImpl.java create mode 100644 Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/PayloadImpl.java create mode 100644 Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/SatelliteFactoryImpl.java create mode 100644 Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/SatellitePackageImpl.java create mode 100644 Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/SmallSatImpl.java create mode 100644 Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/SpacecraftImpl.java create mode 100644 Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/UHFCommSubsystemImpl.java create mode 100644 Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/XCommSubsystemImpl.java (limited to 'Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl') diff --git a/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/CommSubsystemImpl.java b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/CommSubsystemImpl.java new file mode 100644 index 00000000..d39abd4d --- /dev/null +++ b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/CommSubsystemImpl.java @@ -0,0 +1,159 @@ +/** + */ +package satellite.impl; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; +import satellite.CommSubsystem; +import satellite.SatellitePackage; + +/** + * + * An implementation of the model object 'Comm Subsystem'. + * + *

+ * The following features are implemented: + *

+ * + * + * @generated + */ +public abstract class CommSubsystemImpl extends MinimalEObjectImpl.Container implements CommSubsystem { + /** + * The cached value of the '{@link #getTarget() Target}' reference. + * + * + * @see #getTarget() + * @generated + * @ordered + */ + protected CommSubsystem target; + + /** + * + * + * @generated + */ + protected CommSubsystemImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return SatellitePackage.Literals.COMM_SUBSYSTEM; + } + + /** + * + * + * @generated + */ + @Override + public CommSubsystem getTarget() { + if (target != null && target.eIsProxy()) { + InternalEObject oldTarget = (InternalEObject) target; + target = (CommSubsystem) eResolveProxy(oldTarget); + if (target != oldTarget) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, SatellitePackage.COMM_SUBSYSTEM__TARGET, + oldTarget, target)); + } + } + return target; + } + + /** + * + * + * @generated + */ + public CommSubsystem basicGetTarget() { + return target; + } + + /** + * + * + * @generated + */ + @Override + public void setTarget(CommSubsystem newTarget) { + CommSubsystem oldTarget = target; + target = newTarget; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SatellitePackage.COMM_SUBSYSTEM__TARGET, oldTarget, + target)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case SatellitePackage.COMM_SUBSYSTEM__TARGET: + if (resolve) + return getTarget(); + return basicGetTarget(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case SatellitePackage.COMM_SUBSYSTEM__TARGET: + setTarget((CommSubsystem) newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case SatellitePackage.COMM_SUBSYSTEM__TARGET: + setTarget((CommSubsystem) null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case SatellitePackage.COMM_SUBSYSTEM__TARGET: + return target != null; + } + return super.eIsSet(featureID); + } + +} //CommSubsystemImpl diff --git a/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/CommunicatingElementImpl.java b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/CommunicatingElementImpl.java new file mode 100644 index 00000000..d44547d3 --- /dev/null +++ b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/CommunicatingElementImpl.java @@ -0,0 +1,152 @@ +/** + */ +package satellite.impl; + +import java.util.Collection; +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; + +import org.eclipse.emf.ecore.util.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.InternalEList; + +import satellite.CommSubsystem; +import satellite.CommunicatingElement; +import satellite.SatellitePackage; + +/** + * + * An implementation of the model object 'Communicating Element'. + * + *

+ * The following features are implemented: + *

+ * + * + * @generated + */ +public abstract class CommunicatingElementImpl extends MinimalEObjectImpl.Container implements CommunicatingElement { + /** + * The cached value of the '{@link #getCommSubsystem() Comm Subsystem}' containment reference list. + * + * + * @see #getCommSubsystem() + * @generated + * @ordered + */ + protected EList commSubsystem; + + /** + * + * + * @generated + */ + protected CommunicatingElementImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return SatellitePackage.Literals.COMMUNICATING_ELEMENT; + } + + /** + * + * + * @generated + */ + @Override + public EList getCommSubsystem() { + if (commSubsystem == null) { + commSubsystem = new EObjectContainmentEList(CommSubsystem.class, this, + SatellitePackage.COMMUNICATING_ELEMENT__COMM_SUBSYSTEM); + } + return commSubsystem; + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case SatellitePackage.COMMUNICATING_ELEMENT__COMM_SUBSYSTEM: + return ((InternalEList) getCommSubsystem()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case SatellitePackage.COMMUNICATING_ELEMENT__COMM_SUBSYSTEM: + return getCommSubsystem(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case SatellitePackage.COMMUNICATING_ELEMENT__COMM_SUBSYSTEM: + getCommSubsystem().clear(); + getCommSubsystem().addAll((Collection) newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case SatellitePackage.COMMUNICATING_ELEMENT__COMM_SUBSYSTEM: + getCommSubsystem().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case SatellitePackage.COMMUNICATING_ELEMENT__COMM_SUBSYSTEM: + return commSubsystem != null && !commSubsystem.isEmpty(); + } + return super.eIsSet(featureID); + } + +} //CommunicatingElementImpl diff --git a/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/ConstellationMissionImpl.java b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/ConstellationMissionImpl.java new file mode 100644 index 00000000..7635d7cd --- /dev/null +++ b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/ConstellationMissionImpl.java @@ -0,0 +1,237 @@ +/** + */ +package satellite.impl; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; + +import org.eclipse.emf.ecore.util.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.InternalEList; + +import satellite.ConstellationMission; +import satellite.GroundStationNetwork; +import satellite.SatellitePackage; +import satellite.Spacecraft; + +/** + * + * An implementation of the model object 'Constellation Mission'. + * + *

+ * The following features are implemented: + *

+ *
    + *
  • {@link satellite.impl.ConstellationMissionImpl#getGroundStationNetwork Ground Station Network}
  • + *
  • {@link satellite.impl.ConstellationMissionImpl#getSpacecraft Spacecraft}
  • + *
+ * + * @generated + */ +public abstract class ConstellationMissionImpl extends MinimalEObjectImpl.Container implements ConstellationMission { + /** + * The cached value of the '{@link #getGroundStationNetwork() Ground Station Network}' containment reference. + * + * + * @see #getGroundStationNetwork() + * @generated + * @ordered + */ + protected GroundStationNetwork groundStationNetwork; + + /** + * The cached value of the '{@link #getSpacecraft() Spacecraft}' containment reference list. + * + * + * @see #getSpacecraft() + * @generated + * @ordered + */ + protected EList spacecraft; + + /** + * + * + * @generated + */ + protected ConstellationMissionImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return SatellitePackage.Literals.CONSTELLATION_MISSION; + } + + /** + * + * + * @generated + */ + @Override + public GroundStationNetwork getGroundStationNetwork() { + return groundStationNetwork; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetGroundStationNetwork(GroundStationNetwork newGroundStationNetwork, + NotificationChain msgs) { + GroundStationNetwork oldGroundStationNetwork = groundStationNetwork; + groundStationNetwork = newGroundStationNetwork; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, + SatellitePackage.CONSTELLATION_MISSION__GROUND_STATION_NETWORK, oldGroundStationNetwork, + newGroundStationNetwork); + if (msgs == null) + msgs = notification; + else + msgs.add(notification); + } + return msgs; + } + + /** + * + * + * @generated + */ + @Override + public void setGroundStationNetwork(GroundStationNetwork newGroundStationNetwork) { + if (newGroundStationNetwork != groundStationNetwork) { + NotificationChain msgs = null; + if (groundStationNetwork != null) + msgs = ((InternalEObject) groundStationNetwork).eInverseRemove(this, + EOPPOSITE_FEATURE_BASE - SatellitePackage.CONSTELLATION_MISSION__GROUND_STATION_NETWORK, null, + msgs); + if (newGroundStationNetwork != null) + msgs = ((InternalEObject) newGroundStationNetwork).eInverseAdd(this, + EOPPOSITE_FEATURE_BASE - SatellitePackage.CONSTELLATION_MISSION__GROUND_STATION_NETWORK, null, + msgs); + msgs = basicSetGroundStationNetwork(newGroundStationNetwork, msgs); + if (msgs != null) + msgs.dispatch(); + } else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, + SatellitePackage.CONSTELLATION_MISSION__GROUND_STATION_NETWORK, newGroundStationNetwork, + newGroundStationNetwork)); + } + + /** + * + * + * @generated + */ + @Override + public EList getSpacecraft() { + if (spacecraft == null) { + spacecraft = new EObjectContainmentEList(Spacecraft.class, this, + SatellitePackage.CONSTELLATION_MISSION__SPACECRAFT); + } + return spacecraft; + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case SatellitePackage.CONSTELLATION_MISSION__GROUND_STATION_NETWORK: + return basicSetGroundStationNetwork(null, msgs); + case SatellitePackage.CONSTELLATION_MISSION__SPACECRAFT: + return ((InternalEList) getSpacecraft()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case SatellitePackage.CONSTELLATION_MISSION__GROUND_STATION_NETWORK: + return getGroundStationNetwork(); + case SatellitePackage.CONSTELLATION_MISSION__SPACECRAFT: + return getSpacecraft(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case SatellitePackage.CONSTELLATION_MISSION__GROUND_STATION_NETWORK: + setGroundStationNetwork((GroundStationNetwork) newValue); + return; + case SatellitePackage.CONSTELLATION_MISSION__SPACECRAFT: + getSpacecraft().clear(); + getSpacecraft().addAll((Collection) newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case SatellitePackage.CONSTELLATION_MISSION__GROUND_STATION_NETWORK: + setGroundStationNetwork((GroundStationNetwork) null); + return; + case SatellitePackage.CONSTELLATION_MISSION__SPACECRAFT: + getSpacecraft().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case SatellitePackage.CONSTELLATION_MISSION__GROUND_STATION_NETWORK: + return groundStationNetwork != null; + case SatellitePackage.CONSTELLATION_MISSION__SPACECRAFT: + return spacecraft != null && !spacecraft.isEmpty(); + } + return super.eIsSet(featureID); + } + +} //ConstellationMissionImpl diff --git a/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/CubeSat3UImpl.java b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/CubeSat3UImpl.java new file mode 100644 index 00000000..350a9bcc --- /dev/null +++ b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/CubeSat3UImpl.java @@ -0,0 +1,37 @@ +/** + */ +package satellite.impl; + +import org.eclipse.emf.ecore.EClass; + +import satellite.CubeSat3U; +import satellite.SatellitePackage; + +/** + * + * An implementation of the model object 'Cube Sat3 U'. + * + * + * @generated + */ +public class CubeSat3UImpl extends CubeSatImpl implements CubeSat3U { + /** + * + * + * @generated + */ + protected CubeSat3UImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return SatellitePackage.Literals.CUBE_SAT3_U; + } + +} //CubeSat3UImpl diff --git a/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/CubeSat6UImpl.java b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/CubeSat6UImpl.java new file mode 100644 index 00000000..3b9c5988 --- /dev/null +++ b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/CubeSat6UImpl.java @@ -0,0 +1,37 @@ +/** + */ +package satellite.impl; + +import org.eclipse.emf.ecore.EClass; + +import satellite.CubeSat6U; +import satellite.SatellitePackage; + +/** + * + * An implementation of the model object 'Cube Sat6 U'. + * + * + * @generated + */ +public class CubeSat6UImpl extends CubeSatImpl implements CubeSat6U { + /** + * + * + * @generated + */ + protected CubeSat6UImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return SatellitePackage.Literals.CUBE_SAT6_U; + } + +} //CubeSat6UImpl diff --git a/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/CubeSatImpl.java b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/CubeSatImpl.java new file mode 100644 index 00000000..660bd062 --- /dev/null +++ b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/CubeSatImpl.java @@ -0,0 +1,37 @@ +/** + */ +package satellite.impl; + +import org.eclipse.emf.ecore.EClass; + +import satellite.CubeSat; +import satellite.SatellitePackage; + +/** + * + * An implementation of the model object 'Cube Sat'. + * + * + * @generated + */ +public abstract class CubeSatImpl extends SpacecraftImpl implements CubeSat { + /** + * + * + * @generated + */ + protected CubeSatImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return SatellitePackage.Literals.CUBE_SAT; + } + +} //CubeSatImpl diff --git a/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/GroundStationNetworkImpl.java b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/GroundStationNetworkImpl.java new file mode 100644 index 00000000..244b9568 --- /dev/null +++ b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/GroundStationNetworkImpl.java @@ -0,0 +1,37 @@ +/** + */ +package satellite.impl; + +import org.eclipse.emf.ecore.EClass; + +import satellite.GroundStationNetwork; +import satellite.SatellitePackage; + +/** + * + * An implementation of the model object 'Ground Station Network'. + * + * + * @generated + */ +public class GroundStationNetworkImpl extends CommunicatingElementImpl implements GroundStationNetwork { + /** + * + * + * @generated + */ + protected GroundStationNetworkImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return SatellitePackage.Literals.GROUND_STATION_NETWORK; + } + +} //GroundStationNetworkImpl diff --git a/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/InterferometryMissionImpl.java b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/InterferometryMissionImpl.java new file mode 100644 index 00000000..450f8a9a --- /dev/null +++ b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/InterferometryMissionImpl.java @@ -0,0 +1,36 @@ +/** + */ +package satellite.impl; + +import org.eclipse.emf.ecore.EClass; +import satellite.InterferometryMission; +import satellite.SatellitePackage; + +/** + * + * An implementation of the model object 'Interferometry Mission'. + * + * + * @generated + */ +public class InterferometryMissionImpl extends ConstellationMissionImpl implements InterferometryMission { + /** + * + * + * @generated + */ + protected InterferometryMissionImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return SatellitePackage.Literals.INTERFEROMETRY_MISSION; + } + +} //InterferometryMissionImpl diff --git a/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/InterferometryPayloadImpl.java b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/InterferometryPayloadImpl.java new file mode 100644 index 00000000..c8f9e816 --- /dev/null +++ b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/InterferometryPayloadImpl.java @@ -0,0 +1,37 @@ +/** + */ +package satellite.impl; + +import org.eclipse.emf.ecore.EClass; + +import satellite.InterferometryPayload; +import satellite.SatellitePackage; + +/** + * + * An implementation of the model object 'Interferometry Payload'. + * + * + * @generated + */ +public class InterferometryPayloadImpl extends PayloadImpl implements InterferometryPayload { + /** + * + * + * @generated + */ + protected InterferometryPayloadImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return SatellitePackage.Literals.INTERFEROMETRY_PAYLOAD; + } + +} //InterferometryPayloadImpl diff --git a/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/KaCommSubsystemImpl.java b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/KaCommSubsystemImpl.java new file mode 100644 index 00000000..3f4fc432 --- /dev/null +++ b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/KaCommSubsystemImpl.java @@ -0,0 +1,37 @@ +/** + */ +package satellite.impl; + +import org.eclipse.emf.ecore.EClass; + +import satellite.KaCommSubsystem; +import satellite.SatellitePackage; + +/** + * + * An implementation of the model object 'Ka Comm Subsystem'. + * + * + * @generated + */ +public class KaCommSubsystemImpl extends CommSubsystemImpl implements KaCommSubsystem { + /** + * + * + * @generated + */ + protected KaCommSubsystemImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return SatellitePackage.Literals.KA_COMM_SUBSYSTEM; + } + +} //KaCommSubsystemImpl diff --git a/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/PayloadImpl.java b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/PayloadImpl.java new file mode 100644 index 00000000..6ee96353 --- /dev/null +++ b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/PayloadImpl.java @@ -0,0 +1,39 @@ +/** + */ +package satellite.impl; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; + +import satellite.Payload; +import satellite.SatellitePackage; + +/** + * + * An implementation of the model object 'Payload'. + * + * + * @generated + */ +public abstract class PayloadImpl extends MinimalEObjectImpl.Container implements Payload { + /** + * + * + * @generated + */ + protected PayloadImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return SatellitePackage.Literals.PAYLOAD; + } + +} //PayloadImpl diff --git a/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/SatelliteFactoryImpl.java b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/SatelliteFactoryImpl.java new file mode 100644 index 00000000..71e16abf --- /dev/null +++ b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/SatelliteFactoryImpl.java @@ -0,0 +1,202 @@ +/** + */ +package satellite.impl; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EObject; +import org.eclipse.emf.ecore.EPackage; + +import org.eclipse.emf.ecore.impl.EFactoryImpl; + +import org.eclipse.emf.ecore.plugin.EcorePlugin; + +import satellite.*; + +/** + * + * An implementation of the model Factory. + * + * @generated + */ +public class SatelliteFactoryImpl extends EFactoryImpl implements SatelliteFactory { + /** + * Creates the default factory implementation. + * + * + * @generated + */ + public static SatelliteFactory init() { + try { + SatelliteFactory theSatelliteFactory = (SatelliteFactory) EPackage.Registry.INSTANCE + .getEFactory(SatellitePackage.eNS_URI); + if (theSatelliteFactory != null) { + return theSatelliteFactory; + } + } catch (Exception exception) { + EcorePlugin.INSTANCE.log(exception); + } + return new SatelliteFactoryImpl(); + } + + /** + * Creates an instance of the factory. + * + * + * @generated + */ + public SatelliteFactoryImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + public EObject create(EClass eClass) { + switch (eClass.getClassifierID()) { + case SatellitePackage.INTERFEROMETRY_MISSION: + return createInterferometryMission(); + case SatellitePackage.GROUND_STATION_NETWORK: + return createGroundStationNetwork(); + case SatellitePackage.INTERFEROMETRY_PAYLOAD: + return createInterferometryPayload(); + case SatellitePackage.CUBE_SAT3_U: + return createCubeSat3U(); + case SatellitePackage.CUBE_SAT6_U: + return createCubeSat6U(); + case SatellitePackage.SMALL_SAT: + return createSmallSat(); + case SatellitePackage.UHF_COMM_SUBSYSTEM: + return createUHFCommSubsystem(); + case SatellitePackage.XCOMM_SUBSYSTEM: + return createXCommSubsystem(); + case SatellitePackage.KA_COMM_SUBSYSTEM: + return createKaCommSubsystem(); + default: + throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); + } + } + + /** + * + * + * @generated + */ + @Override + public InterferometryMission createInterferometryMission() { + InterferometryMissionImpl interferometryMission = new InterferometryMissionImpl(); + return interferometryMission; + } + + /** + * + * + * @generated + */ + @Override + public GroundStationNetwork createGroundStationNetwork() { + GroundStationNetworkImpl groundStationNetwork = new GroundStationNetworkImpl(); + return groundStationNetwork; + } + + /** + * + * + * @generated + */ + @Override + public InterferometryPayload createInterferometryPayload() { + InterferometryPayloadImpl interferometryPayload = new InterferometryPayloadImpl(); + return interferometryPayload; + } + + /** + * + * + * @generated + */ + @Override + public CubeSat3U createCubeSat3U() { + CubeSat3UImpl cubeSat3U = new CubeSat3UImpl(); + return cubeSat3U; + } + + /** + * + * + * @generated + */ + @Override + public CubeSat6U createCubeSat6U() { + CubeSat6UImpl cubeSat6U = new CubeSat6UImpl(); + return cubeSat6U; + } + + /** + * + * + * @generated + */ + @Override + public SmallSat createSmallSat() { + SmallSatImpl smallSat = new SmallSatImpl(); + return smallSat; + } + + /** + * + * + * @generated + */ + @Override + public UHFCommSubsystem createUHFCommSubsystem() { + UHFCommSubsystemImpl uhfCommSubsystem = new UHFCommSubsystemImpl(); + return uhfCommSubsystem; + } + + /** + * + * + * @generated + */ + @Override + public XCommSubsystem createXCommSubsystem() { + XCommSubsystemImpl xCommSubsystem = new XCommSubsystemImpl(); + return xCommSubsystem; + } + + /** + * + * + * @generated + */ + @Override + public KaCommSubsystem createKaCommSubsystem() { + KaCommSubsystemImpl kaCommSubsystem = new KaCommSubsystemImpl(); + return kaCommSubsystem; + } + + /** + * + * + * @generated + */ + @Override + public SatellitePackage getSatellitePackage() { + return (SatellitePackage) getEPackage(); + } + + /** + * + * + * @deprecated + * @generated + */ + @Deprecated + public static SatellitePackage getPackage() { + return SatellitePackage.eINSTANCE; + } + +} //SatelliteFactoryImpl diff --git a/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/SatellitePackageImpl.java b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/SatellitePackageImpl.java new file mode 100644 index 00000000..f6dc1e30 --- /dev/null +++ b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/SatellitePackageImpl.java @@ -0,0 +1,574 @@ +/** + */ +package satellite.impl; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.EReference; + +import org.eclipse.emf.ecore.impl.EPackageImpl; +import satellite.CommSubsystem; +import satellite.CommunicatingElement; +import satellite.ConstellationMission; +import satellite.CubeSat; +import satellite.CubeSat3U; +import satellite.CubeSat6U; +import satellite.GroundStationNetwork; +import satellite.InterferometryMission; +import satellite.InterferometryPayload; +import satellite.KaCommSubsystem; +import satellite.Payload; +import satellite.SatelliteFactory; +import satellite.SatellitePackage; +import satellite.SmallSat; +import satellite.Spacecraft; +import satellite.UHFCommSubsystem; +import satellite.XCommSubsystem; + +/** + * + * 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 payloadEClass = null; + + /** + * + * + * @generated + */ + private EClass interferometryPayloadEClass = null; + + /** + * + * + * @generated + */ + private EClass cubeSat3UEClass = null; + + /** + * + * + * @generated + */ + private EClass cubeSat6UEClass = null; + + /** + * + * + * @generated + */ + private EClass smallSatEClass = null; + + /** + * + * + * @generated + */ + private EClass cubeSatEClass = null; + + /** + * + * + * @generated + */ + private EClass uhfCommSubsystemEClass = null; + + /** + * + * + * @generated + */ + private EClass xCommSubsystemEClass = null; + + /** + * + * + * @generated + */ + private EClass kaCommSubsystemEClass = 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 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 EClass getCommunicatingElement() { + return communicatingElementEClass; + } + + /** + * + * + * @generated + */ + @Override + public EReference getCommunicatingElement_CommSubsystem() { + return (EReference) communicatingElementEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @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 EClass getCommSubsystem() { + return commSubsystemEClass; + } + + /** + * + * + * @generated + */ + @Override + public EReference getCommSubsystem_Target() { + return (EReference) commSubsystemEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + @Override + public EClass getPayload() { + return payloadEClass; + } + + /** + * + * + * @generated + */ + @Override + public EClass getInterferometryPayload() { + return interferometryPayloadEClass; + } + + /** + * + * + * @generated + */ + @Override + public EClass getCubeSat3U() { + return cubeSat3UEClass; + } + + /** + * + * + * @generated + */ + @Override + public EClass getCubeSat6U() { + return cubeSat6UEClass; + } + + /** + * + * + * @generated + */ + @Override + public EClass getSmallSat() { + return smallSatEClass; + } + + /** + * + * + * @generated + */ + @Override + public EClass getCubeSat() { + return cubeSatEClass; + } + + /** + * + * + * @generated + */ + @Override + public EClass getUHFCommSubsystem() { + return uhfCommSubsystemEClass; + } + + /** + * + * + * @generated + */ + @Override + public EClass getXCommSubsystem() { + return xCommSubsystemEClass; + } + + /** + * + * + * @generated + */ + @Override + public EClass getKaCommSubsystem() { + return kaCommSubsystemEClass; + } + + /** + * + * + * @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); + + communicatingElementEClass = createEClass(COMMUNICATING_ELEMENT); + createEReference(communicatingElementEClass, COMMUNICATING_ELEMENT__COMM_SUBSYSTEM); + + groundStationNetworkEClass = createEClass(GROUND_STATION_NETWORK); + + spacecraftEClass = createEClass(SPACECRAFT); + createEReference(spacecraftEClass, SPACECRAFT__PAYLOAD); + + commSubsystemEClass = createEClass(COMM_SUBSYSTEM); + createEReference(commSubsystemEClass, COMM_SUBSYSTEM__TARGET); + + payloadEClass = createEClass(PAYLOAD); + + interferometryPayloadEClass = createEClass(INTERFEROMETRY_PAYLOAD); + + cubeSat3UEClass = createEClass(CUBE_SAT3_U); + + cubeSat6UEClass = createEClass(CUBE_SAT6_U); + + smallSatEClass = createEClass(SMALL_SAT); + + cubeSatEClass = createEClass(CUBE_SAT); + + uhfCommSubsystemEClass = createEClass(UHF_COMM_SUBSYSTEM); + + xCommSubsystemEClass = createEClass(XCOMM_SUBSYSTEM); + + kaCommSubsystemEClass = createEClass(KA_COMM_SUBSYSTEM); + } + + /** + * + * + * @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()); + cubeSat3UEClass.getESuperTypes().add(this.getCubeSat()); + cubeSat6UEClass.getESuperTypes().add(this.getCubeSat()); + smallSatEClass.getESuperTypes().add(this.getSpacecraft()); + cubeSatEClass.getESuperTypes().add(this.getSpacecraft()); + uhfCommSubsystemEClass.getESuperTypes().add(this.getCommSubsystem()); + xCommSubsystemEClass.getESuperTypes().add(this.getCommSubsystem()); + kaCommSubsystemEClass.getESuperTypes().add(this.getCommSubsystem()); + + // 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, -1, + 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); + + 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); + + 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); + + initEClass(commSubsystemEClass, CommSubsystem.class, "CommSubsystem", IS_ABSTRACT, !IS_INTERFACE, + IS_GENERATED_INSTANCE_CLASS); + initEReference(getCommSubsystem_Target(), this.getCommSubsystem(), null, "target", null, 0, 1, + CommSubsystem.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); + + initEClass(cubeSat3UEClass, CubeSat3U.class, "CubeSat3U", !IS_ABSTRACT, !IS_INTERFACE, + IS_GENERATED_INSTANCE_CLASS); + + initEClass(cubeSat6UEClass, CubeSat6U.class, "CubeSat6U", !IS_ABSTRACT, !IS_INTERFACE, + IS_GENERATED_INSTANCE_CLASS); + + initEClass(smallSatEClass, SmallSat.class, "SmallSat", !IS_ABSTRACT, !IS_INTERFACE, + IS_GENERATED_INSTANCE_CLASS); + + initEClass(cubeSatEClass, CubeSat.class, "CubeSat", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(uhfCommSubsystemEClass, UHFCommSubsystem.class, "UHFCommSubsystem", !IS_ABSTRACT, !IS_INTERFACE, + IS_GENERATED_INSTANCE_CLASS); + + initEClass(xCommSubsystemEClass, XCommSubsystem.class, "XCommSubsystem", !IS_ABSTRACT, !IS_INTERFACE, + IS_GENERATED_INSTANCE_CLASS); + + initEClass(kaCommSubsystemEClass, KaCommSubsystem.class, "KaCommSubsystem", !IS_ABSTRACT, !IS_INTERFACE, + IS_GENERATED_INSTANCE_CLASS); + + // Create resource + createResource(eNS_URI); + } + +} //SatellitePackageImpl diff --git a/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/SmallSatImpl.java b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/SmallSatImpl.java new file mode 100644 index 00000000..1785dbf3 --- /dev/null +++ b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/SmallSatImpl.java @@ -0,0 +1,37 @@ +/** + */ +package satellite.impl; + +import org.eclipse.emf.ecore.EClass; + +import satellite.SatellitePackage; +import satellite.SmallSat; + +/** + * + * An implementation of the model object 'Small Sat'. + * + * + * @generated + */ +public class SmallSatImpl extends SpacecraftImpl implements SmallSat { + /** + * + * + * @generated + */ + protected SmallSatImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return SatellitePackage.Literals.SMALL_SAT; + } + +} //SmallSatImpl diff --git a/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/SpacecraftImpl.java b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/SpacecraftImpl.java new file mode 100644 index 00000000..58f5d069 --- /dev/null +++ b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/SpacecraftImpl.java @@ -0,0 +1,184 @@ +/** + */ +package satellite.impl; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +import satellite.Payload; +import satellite.SatellitePackage; +import satellite.Spacecraft; + +/** + * + * An implementation of the model object 'Spacecraft'. + * + *

+ * The following features are implemented: + *

+ *
    + *
  • {@link satellite.impl.SpacecraftImpl#getPayload Payload}
  • + *
+ * + * @generated + */ +public abstract class SpacecraftImpl extends CommunicatingElementImpl implements Spacecraft { + /** + * The cached value of the '{@link #getPayload() Payload}' containment reference. + * + * + * @see #getPayload() + * @generated + * @ordered + */ + protected Payload payload; + + /** + * + * + * @generated + */ + protected SpacecraftImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return SatellitePackage.Literals.SPACECRAFT; + } + + /** + * + * + * @generated + */ + @Override + public Payload getPayload() { + return payload; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetPayload(Payload newPayload, NotificationChain msgs) { + Payload oldPayload = payload; + payload = newPayload; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, + SatellitePackage.SPACECRAFT__PAYLOAD, oldPayload, newPayload); + if (msgs == null) + msgs = notification; + else + msgs.add(notification); + } + return msgs; + } + + /** + * + * + * @generated + */ + @Override + public void setPayload(Payload newPayload) { + if (newPayload != payload) { + NotificationChain msgs = null; + if (payload != null) + msgs = ((InternalEObject) payload).eInverseRemove(this, + EOPPOSITE_FEATURE_BASE - SatellitePackage.SPACECRAFT__PAYLOAD, null, msgs); + if (newPayload != null) + msgs = ((InternalEObject) newPayload).eInverseAdd(this, + EOPPOSITE_FEATURE_BASE - SatellitePackage.SPACECRAFT__PAYLOAD, null, msgs); + msgs = basicSetPayload(newPayload, msgs); + if (msgs != null) + msgs.dispatch(); + } else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SatellitePackage.SPACECRAFT__PAYLOAD, newPayload, + newPayload)); + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case SatellitePackage.SPACECRAFT__PAYLOAD: + return basicSetPayload(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case SatellitePackage.SPACECRAFT__PAYLOAD: + return getPayload(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case SatellitePackage.SPACECRAFT__PAYLOAD: + setPayload((Payload) newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case SatellitePackage.SPACECRAFT__PAYLOAD: + setPayload((Payload) null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case SatellitePackage.SPACECRAFT__PAYLOAD: + return payload != null; + } + return super.eIsSet(featureID); + } + +} //SpacecraftImpl diff --git a/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/UHFCommSubsystemImpl.java b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/UHFCommSubsystemImpl.java new file mode 100644 index 00000000..df21b9e1 --- /dev/null +++ b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/UHFCommSubsystemImpl.java @@ -0,0 +1,37 @@ +/** + */ +package satellite.impl; + +import org.eclipse.emf.ecore.EClass; + +import satellite.SatellitePackage; +import satellite.UHFCommSubsystem; + +/** + * + * An implementation of the model object 'UHF Comm Subsystem'. + * + * + * @generated + */ +public class UHFCommSubsystemImpl extends CommSubsystemImpl implements UHFCommSubsystem { + /** + * + * + * @generated + */ + protected UHFCommSubsystemImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return SatellitePackage.Literals.UHF_COMM_SUBSYSTEM; + } + +} //UHFCommSubsystemImpl diff --git a/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/XCommSubsystemImpl.java b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/XCommSubsystemImpl.java new file mode 100644 index 00000000..c686a50e --- /dev/null +++ b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/satellite/impl/XCommSubsystemImpl.java @@ -0,0 +1,37 @@ +/** + */ +package satellite.impl; + +import org.eclipse.emf.ecore.EClass; + +import satellite.SatellitePackage; +import satellite.XCommSubsystem; + +/** + * + * An implementation of the model object 'XComm Subsystem'. + * + * + * @generated + */ +public class XCommSubsystemImpl extends CommSubsystemImpl implements XCommSubsystem { + /** + * + * + * @generated + */ + protected XCommSubsystemImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return SatellitePackage.Literals.XCOMM_SUBSYSTEM; + } + +} //XCommSubsystemImpl -- cgit v1.2.3-70-g09d2