From 2531cfb60d747c261a20201415728beb0e24ab9b Mon Sep 17 00:00:00 2001 From: Kristóf Marussy Date: Mon, 15 Apr 2019 16:23:19 +0200 Subject: Satellite constellation case study WIP --- .../domains/satellite/impl/CommSubsystemImpl.java | 226 +++++++++++++++++++++ 1 file changed, 226 insertions(+) create mode 100644 Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/hu/bme/mit/inf/dslreasoner/domains/satellite/impl/CommSubsystemImpl.java (limited to 'Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/hu/bme/mit/inf/dslreasoner/domains/satellite/impl/CommSubsystemImpl.java') diff --git a/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/hu/bme/mit/inf/dslreasoner/domains/satellite/impl/CommSubsystemImpl.java b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/hu/bme/mit/inf/dslreasoner/domains/satellite/impl/CommSubsystemImpl.java new file mode 100644 index 00000000..fbde1603 --- /dev/null +++ b/Domains/hu.bme.mit.inf.dslreasoner.domains.satellite/ecore-gen/hu/bme/mit/inf/dslreasoner/domains/satellite/impl/CommSubsystemImpl.java @@ -0,0 +1,226 @@ +/** + */ +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.SatellitePackage; +import hu.bme.mit.inf.dslreasoner.domains.satellite.TransceiverBand; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; + +/** + * + * An implementation of the model object 'Comm Subsystem'. + * + *

+ * The following features are implemented: + *

+ * + * + * @generated + */ +public class CommSubsystemImpl extends MinimalEObjectImpl.Container implements CommSubsystem { + /** + * The default value of the '{@link #getBand() Band}' attribute. + * + * + * @see #getBand() + * @generated + * @ordered + */ + protected static final TransceiverBand BAND_EDEFAULT = TransceiverBand.UHF; + + /** + * The cached value of the '{@link #getBand() Band}' attribute. + * + * + * @see #getBand() + * @generated + * @ordered + */ + protected TransceiverBand band = BAND_EDEFAULT; + + /** + * The default value of the '{@link #getGain() Gain}' attribute. + * + * + * @see #getGain() + * @generated + * @ordered + */ + protected static final AntennaGain GAIN_EDEFAULT = AntennaGain.LOW; + + /** + * The cached value of the '{@link #getGain() Gain}' attribute. + * + * + * @see #getGain() + * @generated + * @ordered + */ + protected AntennaGain gain = GAIN_EDEFAULT; + + /** + * + * + * @generated + */ + protected CommSubsystemImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return SatellitePackage.Literals.COMM_SUBSYSTEM; + } + + /** + * + * + * @generated + */ + @Override + public TransceiverBand getBand() { + return band; + } + + /** + * + * + * @generated + */ + @Override + public void setBand(TransceiverBand newBand) { + TransceiverBand oldBand = band; + band = newBand == null ? BAND_EDEFAULT : newBand; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SatellitePackage.COMM_SUBSYSTEM__BAND, oldBand, + band)); + } + + /** + * + * + * @generated + */ + @Override + public AntennaGain getGain() { + return gain; + } + + /** + * + * + * @generated + */ + @Override + public void setGain(AntennaGain newGain) { + AntennaGain oldGain = gain; + gain = newGain == null ? GAIN_EDEFAULT : newGain; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, SatellitePackage.COMM_SUBSYSTEM__GAIN, oldGain, + gain)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case SatellitePackage.COMM_SUBSYSTEM__BAND: + return getBand(); + case SatellitePackage.COMM_SUBSYSTEM__GAIN: + return getGain(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case SatellitePackage.COMM_SUBSYSTEM__BAND: + setBand((TransceiverBand) newValue); + return; + case SatellitePackage.COMM_SUBSYSTEM__GAIN: + setGain((AntennaGain) newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case SatellitePackage.COMM_SUBSYSTEM__BAND: + setBand(BAND_EDEFAULT); + return; + case SatellitePackage.COMM_SUBSYSTEM__GAIN: + setGain(GAIN_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case SatellitePackage.COMM_SUBSYSTEM__BAND: + return band != BAND_EDEFAULT; + case SatellitePackage.COMM_SUBSYSTEM__GAIN: + return gain != GAIN_EDEFAULT; + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) + return super.toString(); + + StringBuilder result = new StringBuilder(super.toString()); + result.append(" (band: "); + result.append(band); + result.append(", gain: "); + result.append(gain); + result.append(')'); + return result.toString(); + } + +} //CommSubsystemImpl -- cgit v1.2.3-70-g09d2