Commit 51715154 authored by Simon Eismann's avatar Simon Eismann

initial

parent 12761dea
This diff is collapsed.
This diff is collapsed.
/**
* <copyright>
* </copyright>
*
* $Id$
*/
package edu.kit.ipd.descartes.qpme.model;
import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.common.util.EMap;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.util.FeatureMap;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Qpme Document</b></em>'.
* <!-- end-user-doc -->
*
* <p>
* The following features are supported:
* </p>
* <ul>
* <li>{@link edu.kit.ipd.descartes.qpme.model.QpmeDocument#getMixed <em>Mixed</em>}</li>
* <li>{@link edu.kit.ipd.descartes.qpme.model.QpmeDocument#getXMLNSPrefixMap <em>XMLNS Prefix Map</em>}</li>
* <li>{@link edu.kit.ipd.descartes.qpme.model.QpmeDocument#getXSISchemaLocation <em>XSI Schema Location</em>}</li>
* <li>{@link edu.kit.ipd.descartes.qpme.model.QpmeDocument#getNet <em>Net</em>}</li>
* </ul>
*
* @see edu.kit.ipd.descartes.qpme.model.ModelPackage#getQpmeDocument()
* @model extendedMetaData="name='' kind='mixed'"
* @generated
*/
public interface QpmeDocument extends EObject {
/**
* Returns the value of the '<em><b>Mixed</b></em>' attribute list.
* The list contents are of type {@link org.eclipse.emf.ecore.util.FeatureMap.Entry}.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Mixed</em>' attribute list isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Mixed</em>' attribute list.
* @see edu.kit.ipd.descartes.qpme.model.ModelPackage#getQpmeDocument_Mixed()
* @model unique="false" dataType="org.eclipse.emf.ecore.EFeatureMapEntry" many="true"
* extendedMetaData="kind='elementWildcard' name=':mixed'"
* @generated
*/
FeatureMap getMixed();
/**
* Returns the value of the '<em><b>XMLNS Prefix Map</b></em>' map.
* The key is of type {@link java.lang.String},
* and the value is of type {@link java.lang.String},
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>XMLNS Prefix Map</em>' map isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>XMLNS Prefix Map</em>' map.
* @see edu.kit.ipd.descartes.qpme.model.ModelPackage#getQpmeDocument_XMLNSPrefixMap()
* @model mapType="org.eclipse.emf.ecore.EStringToStringMapEntry<org.eclipse.emf.ecore.EString, org.eclipse.emf.ecore.EString>" transient="true"
* extendedMetaData="kind='attribute' name='xmlns:prefix'"
* @generated
*/
EMap<String, String> getXMLNSPrefixMap();
/**
* Returns the value of the '<em><b>XSI Schema Location</b></em>' map.
* The key is of type {@link java.lang.String},
* and the value is of type {@link java.lang.String},
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>XSI Schema Location</em>' map isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>XSI Schema Location</em>' map.
* @see edu.kit.ipd.descartes.qpme.model.ModelPackage#getQpmeDocument_XSISchemaLocation()
* @model mapType="org.eclipse.emf.ecore.EStringToStringMapEntry<org.eclipse.emf.ecore.EString, org.eclipse.emf.ecore.EString>" transient="true"
* extendedMetaData="kind='attribute' name='xsi:schemaLocation'"
* @generated
*/
EMap<String, String> getXSISchemaLocation();
/**
* Returns the value of the '<em><b>Net</b></em>' containment reference list.
* The list contents are of type {@link edu.kit.ipd.descartes.qpme.model.QueueingPetriNet}.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Net</em>' containment reference isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Net</em>' containment reference list.
* @see edu.kit.ipd.descartes.qpme.model.ModelPackage#getQpmeDocument_Net()
* @model containment="true" transient="true" volatile="true" derived="true"
* extendedMetaData="kind='element' name='net' namespace='##targetNamespace'"
* @generated
*/
EList<QueueingPetriNet> getNet();
} // QpmeDocument
/**
* <copyright>
* </copyright>
*
* $Id$
*/
package edu.kit.ipd.descartes.qpme.model;
import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.common.util.EMap;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.util.FeatureMap;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Qpme Document</b></em>'.
* <!-- end-user-doc -->
*
* <p>
* The following features are supported:
* </p>
* <ul>
* <li>{@link edu.kit.ipd.descartes.qpme.model.QpmeDocument#getMixed <em>Mixed</em>}</li>
* <li>{@link edu.kit.ipd.descartes.qpme.model.QpmeDocument#getXMLNSPrefixMap <em>XMLNS Prefix Map</em>}</li>
* <li>{@link edu.kit.ipd.descartes.qpme.model.QpmeDocument#getXSISchemaLocation <em>XSI Schema Location</em>}</li>
* <li>{@link edu.kit.ipd.descartes.qpme.model.QpmeDocument#getNet <em>Net</em>}</li>
* </ul>
*
* @see edu.kit.ipd.descartes.qpme.model.ModelPackage#getQpmeDocument()
* @model extendedMetaData="name='' kind='mixed'"
* @generated
*/
public interface QpmeDocument extends EObject {
/**
* Returns the value of the '<em><b>Mixed</b></em>' attribute list.
* The list contents are of type {@link org.eclipse.emf.ecore.util.FeatureMap.Entry}.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Mixed</em>' attribute list isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Mixed</em>' attribute list.
* @see edu.kit.ipd.descartes.qpme.model.ModelPackage#getQpmeDocument_Mixed()
* @model unique="false" dataType="org.eclipse.emf.ecore.EFeatureMapEntry" many="true"
* extendedMetaData="kind='elementWildcard' name=':mixed'"
* @generated
*/
FeatureMap getMixed();
/**
* Returns the value of the '<em><b>XMLNS Prefix Map</b></em>' map.
* The key is of type {@link java.lang.String},
* and the value is of type {@link java.lang.String},
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>XMLNS Prefix Map</em>' map isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>XMLNS Prefix Map</em>' map.
* @see edu.kit.ipd.descartes.qpme.model.ModelPackage#getQpmeDocument_XMLNSPrefixMap()
* @model mapType="org.eclipse.emf.ecore.EStringToStringMapEntry&lt;org.eclipse.emf.ecore.EString, org.eclipse.emf.ecore.EString&gt;" transient="true"
* extendedMetaData="kind='attribute' name='xmlns:prefix'"
* @generated
*/
EMap<String, String> getXMLNSPrefixMap();
/**
* Returns the value of the '<em><b>XSI Schema Location</b></em>' map.
* The key is of type {@link java.lang.String},
* and the value is of type {@link java.lang.String},
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>XSI Schema Location</em>' map isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>XSI Schema Location</em>' map.
* @see edu.kit.ipd.descartes.qpme.model.ModelPackage#getQpmeDocument_XSISchemaLocation()
* @model mapType="org.eclipse.emf.ecore.EStringToStringMapEntry&lt;org.eclipse.emf.ecore.EString, org.eclipse.emf.ecore.EString&gt;" transient="true"
* extendedMetaData="kind='attribute' name='xsi:schemaLocation'"
* @generated
*/
EMap<String, String> getXSISchemaLocation();
/**
* Returns the value of the '<em><b>Net</b></em>' containment reference list.
* The list contents are of type {@link edu.kit.ipd.descartes.qpme.model.QueueingPetriNet}.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Net</em>' containment reference isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Net</em>' containment reference list.
* @see edu.kit.ipd.descartes.qpme.model.ModelPackage#getQpmeDocument_Net()
* @model containment="true" transient="true" volatile="true" derived="true"
* extendedMetaData="kind='element' name='net' namespace='##targetNamespace'"
* @generated
*/
EList<QueueingPetriNet> getNet();
} // QpmeDocument
/**
* <copyright>
* </copyright>
*
* $Id$
*/
package edu.kit.ipd.descartes.qpme.model.impl;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.impl.ENotificationImpl;
import edu.kit.ipd.descartes.qpme.model.Color;
import edu.kit.ipd.descartes.qpme.model.ModelPackage;
/**
* <!-- begin-user-doc -->
* An implementation of the model object '<em><b>Color</b></em>'.
* <!-- end-user-doc -->
* <p>
* The following features are implemented:
* </p>
* <ul>
* <li>{@link edu.kit.ipd.descartes.qpme.model.impl.ColorImpl#getDescription <em>Description</em>}</li>
* <li>{@link edu.kit.ipd.descartes.qpme.model.impl.ColorImpl#getName <em>Name</em>}</li>
* <li>{@link edu.kit.ipd.descartes.qpme.model.impl.ColorImpl#getRealColor <em>Real Color</em>}</li>
* </ul>
*
* @generated
*/
public class ColorImpl extends IdentifiableElementImpl implements Color {
/**
* The default value of the '{@link #getDescription() <em>Description</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getDescription()
* @generated
* @ordered
*/
protected static final String DESCRIPTION_EDEFAULT = null;
/**
* The cached value of the '{@link #getDescription() <em>Description</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getDescription()
* @generated
* @ordered
*/
protected String description = DESCRIPTION_EDEFAULT;
/**
* The default value of the '{@link #getName() <em>Name</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getName()
* @generated
* @ordered
*/
protected static final String NAME_EDEFAULT = null;
/**
* The cached value of the '{@link #getName() <em>Name</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getName()
* @generated
* @ordered
*/
protected String name = NAME_EDEFAULT;
/**
* The default value of the '{@link #getRealColor() <em>Real Color</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getRealColor()
* @generated
* @ordered
*/
protected static final String REAL_COLOR_EDEFAULT = null;
/**
* The cached value of the '{@link #getRealColor() <em>Real Color</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getRealColor()
* @generated
* @ordered
*/
protected String realColor = REAL_COLOR_EDEFAULT;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected ColorImpl() {
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected EClass eStaticClass() {
return ModelPackage.Literals.COLOR;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public String getDescription() {
return description;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setDescription(String newDescription) {
String oldDescription = description;
description = newDescription;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, ModelPackage.COLOR__DESCRIPTION, oldDescription, description));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public String getName() {
return name;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setName(String newName) {
String oldName = name;
name = newName;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, ModelPackage.COLOR__NAME, oldName, name));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public String getRealColor() {
return realColor;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setRealColor(String newRealColor) {
String oldRealColor = realColor;
realColor = newRealColor;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, ModelPackage.COLOR__REAL_COLOR, oldRealColor, realColor));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
case ModelPackage.COLOR__DESCRIPTION:
return getDescription();
case ModelPackage.COLOR__NAME:
return getName();
case ModelPackage.COLOR__REAL_COLOR:
return getRealColor();
}
return super.eGet(featureID, resolve, coreType);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case ModelPackage.COLOR__DESCRIPTION:
setDescription((String)newValue);
return;
case ModelPackage.COLOR__NAME:
setName((String)newValue);
return;
case ModelPackage.COLOR__REAL_COLOR:
setRealColor((String)newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case ModelPackage.COLOR__DESCRIPTION:
setDescription(DESCRIPTION_EDEFAULT);
return;
case ModelPackage.COLOR__NAME:
setName(NAME_EDEFAULT);
return;
case ModelPackage.COLOR__REAL_COLOR:
setRealColor(REAL_COLOR_EDEFAULT);
return;
}
super.eUnset(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case ModelPackage.COLOR__DESCRIPTION:
return DESCRIPTION_EDEFAULT == null ? description != null : !DESCRIPTION_EDEFAULT.equals(description);
case ModelPackage.COLOR__NAME:
return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
case ModelPackage.COLOR__REAL_COLOR:
return REAL_COLOR_EDEFAULT == null ? realColor != null : !REAL_COLOR_EDEFAULT.equals(realColor);
}
return super.eIsSet(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public String toString() {
if (eIsProxy()) return super.toString();
StringBuffer result = new StringBuffer(super.toString());
result.append(" (description: ");
result.append(description);
result.append(", name: ");
result.append(name);
result.append(", realColor: ");
result.append(realColor);
result.append(')');
return result.toString();
}
} //ColorImpl
/**
* <copyright>
* </copyright>
*
* $Id$
*/
package edu.kit.ipd.descartes.qpme.model.impl;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.impl.ENotificationImpl;
import edu.kit.ipd.descartes.qpme.model.Color;
import edu.kit.ipd.descartes.qpme.model.ModelPackage;
/**
* <!-- begin-user-doc -->
* An implementation of the model object '<em><b>Color</b></em>'.
* <!-- end-user-doc -->
* <p>
* The following features are implemented:
* </p>
* <ul>
* <li>{@link edu.kit.ipd.descartes.qpme.model.impl.ColorImpl#getDescription <em>Description</em>}</li>
* <li>{@link edu.kit.ipd.descartes.qpme.model.impl.ColorImpl#getName <em>Name</em>}</li>
* <li>{@link edu.kit.ipd.descartes.qpme.model.impl.ColorImpl#getRealColor <em>Real Color</em>}</li>
* </ul>
*
* @generated
*/
public class ColorImpl extends IdentifiableElementImpl implements Color {
/**
* The default value of the '{@link #getDescription() <em>Description</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getDescription()
* @generated
* @ordered
*/
protected static final String DESCRIPTION_EDEFAULT = null;
/**
* The cached value of the '{@link #getDescription() <em>Description</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getDescription()
* @generated
* @ordered
*/
protected String description = DESCRIPTION_EDEFAULT;
/**
* The default value of the '{@link #getName() <em>Name</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getName()
* @generated
* @ordered
*/
protected static final String NAME_EDEFAULT = null;
/**
* The cached value of the '{@link #getName() <em>Name</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getName()
* @generated
* @ordered
*/
protected String name = NAME_EDEFAULT;
/**
* The default value of the '{@link #getRealColor() <em>Real Color</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getRealColor()
* @generated
* @ordered
*/
protected static final String REAL_COLOR_EDEFAULT = null;
/**
* The cached value of the '{@link #getRealColor() <em>Real Color</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getRealColor()
* @generated
* @ordered
*/
protected String realColor = REAL_COLOR_EDEFAULT;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected ColorImpl() {
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated