[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.modeling.gmf] Re: Problem creating link from derived class

Hi Christian,

here the .ecore file.

<?xml version="1.0" encoding="UTF-8"?>
<ecore:EPackage xmi:version="2.0"
xmlns:xmi="http://www.omg.org/XMI"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore"; name="model"
nsURI="http://www.bahntechnik.de/opn/psc/prj"; nsPrefix="de.bahntechnik.dd.opn.psc.prj">
<eAnnotations source="EAnnotation0"/>
<eClassifiers xsi:type="ecore:EClass" name="PSC">
<eStructuralFeatures xsi:type="ecore:EReference" name="networks" upperBound="-1"
eType="#//Network" containment="true" eOpposite="#//Network/psc"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Network">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="psc" eType="#//PSC" eOpposite="#//PSC/networks"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="lines" upperBound="-1"
eType="#//Line" containment="true" eOpposite="#//Line/network"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="slices" upperBound="-1"
eType="#//Slice" containment="true" eOpposite="#//Slice/network"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="conductors" upperBound="-1"
eType="#//Conductor" containment="true" eOpposite="#//Conductor/network"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="tracks" upperBound="-1"
eType="#//Track" containment="true" eOpposite="#//Track/network"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="nodes" upperBound="-1"
eType="#//Node" containment="true" eOpposite="#//Node/network"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="connectors" upperBound="-1"
eType="#//Connector" containment="true" eOpposite="#//Connector/network"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Line">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="network" eType="#//Network"
eOpposite="#//Network/lines"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="firstSlice" eType="#//Slice"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="slices" ordered="false"
upperBound="-1" eType="#//Slice" eOpposite="#//Slice/line"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="tracks" upperBound="-1"
eType="#//Track" eOpposite="#//Track/lines"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Slice">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="pos_m" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="line" eType="#//Line" eOpposite="#//Line/slices"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="network" eType="#//Network"
eOpposite="#//Network/slices"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="nodes" upperBound="-1"
eType="#//Node" eOpposite="#//Node/slice"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="nextSlice" eType="#//Slice"
eOpposite="#//Slice/prevSlice"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="prevSlice" eType="#//Slice"
eOpposite="#//Slice/nextSlice"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Track">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="network" eType="#//Network"
eOpposite="#//Network/tracks"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="conductors" upperBound="-1"
eType="#//Conductor" eOpposite="#//Conductor/track"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="lines" upperBound="-1"
eType="#//Line" eOpposite="#//Line/tracks"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Conductor">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="track" eType="#//Track"
eOpposite="#//Track/conductors"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="nodeTo" eType="#//Node"
eOpposite="#//Node/nextCond"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="nodeFrom" eType="#//Node"
eOpposite="#//Node/prevCond"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="line" eType="#//Line"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="type" eType="#//ConductorType"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="x_m" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EDouble"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="y_m" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EDouble"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="equivalentRadius_mm" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EDouble"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="r20_Ohm_km" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EDouble"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="temperatureCoefficient"
eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EDouble"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="temperature_GradCelsius"
eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EDouble"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="network" eType="#//Network"
eOpposite="#//Network/conductors"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EEnum" name="ConductorType">
<eLiterals name="ContactWire"/>
<eLiterals name="Earth" value="1"/>
<eLiterals name="MessangerWire" value="2"/>
<eLiterals name="NegativeFeeder" value="3"/>
<eLiterals name="Rail" value="4"/>
<eLiterals name="ReinforcementFeeder" value="5"/>
<eLiterals name="ReinforcementReturnFeeder" value="6"/>
<eLiterals name="unknown" value="7"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Node">
<eStructuralFeatures xsi:type="ecore:EReference" name="network" eType="#//Network"
eOpposite="#//Network/nodes"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="nextCond" eType="#//Conductor"
eOpposite="#//Conductor/nodeTo"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="prevCond" eType="#//Conductor"
eOpposite="#//Conductor/nodeFrom"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="slice" eType="#//Slice"
eOpposite="#//Slice/nodes"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="prevConns" upperBound="-1"
eType="#//Connector" eOpposite="#//Connector/nodeFrom"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="nextConns" upperBound="-1"
eType="#//Connector" eOpposite="#//Connector/nodeTo"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="nodeID" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Connector">
<eStructuralFeatures xsi:type="ecore:EReference" name="nodeFrom" eType="#//Node"
eOpposite="#//Node/prevConns"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="nodeTo" eType="#//Node"
eOpposite="#//Node/nextConns"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="r_Ohm" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EDouble"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="x_Ohm" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EDouble"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="network" eType="#//Network"
eOpposite="#//Network/connectors"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Isolator" eSuperTypes="#//Conductor"/>
<eClassifiers xsi:type="ecore:EClass" name="Switch" eSuperTypes="#//Conductor"/>
</ecore:EPackage>


thanks,	Martin


Christian Muth wrote, On 05.02.2009 11:51:
hi martin,


please also post your .ecore file, i don't understand the domain model structure regarding Isolator and Conductor....



thanks christian