diff --git a/org.framed.orm.transformation/epsilon/CompartmentType.etl b/org.framed.orm.transformation/epsilon/CompartmentType.etl index 0b60f6eb6ddbf3dec179987bfbf85235685dc2d5..95b03482666659997e2a442dfd3bd2f6378f5a0c 100644 --- a/org.framed.orm.transformation/epsilon/CompartmentType.etl +++ b/org.framed.orm.transformation/epsilon/CompartmentType.etl @@ -51,15 +51,6 @@ rule CompartmentType n.getContains.add(e); if(not(t.~features.get("Contains_Compartments"))) n.getContains.remove(e); } else if (e.instanceOf(target!RelationshipImplication) or e.instanceOf(target!RelationshipExclusion)) { // INTER_RELATIONSHIP_CONSTRAINT - for (rst : source!Relation in children.elements){ - if (rst.getType.getValue == 7){ // RELATIONSHIP - //Discover source and target Relationships of the inter relationship constraint - if (rst.connectionAnchor == elem.source) - e.first = rst.equivalent(); - if (rst.connectionAnchor == elem.target) - e.second = rst.equivalent(); - } - } n.getConstraints().add(e); //add CONSTRAINTS as well } else if ( e.instanceOf(target!Constraint)) { // CONSTRAINT n.getConstraints().add(e); diff --git a/org.framed.orm.transformation/epsilon/Relationship.etl b/org.framed.orm.transformation/epsilon/Relationship.etl index 8c0016165bc59000031e9b0fbed989dccced4e2e..6f77789a4882b247b1ffec6545a3a67cd9ed08b6 100644 --- a/org.framed.orm.transformation/epsilon/Relationship.etl +++ b/org.framed.orm.transformation/epsilon/Relationship.etl @@ -105,7 +105,7 @@ rule AcyclicRelation transform s : source!Relation to t : target!Acyclic { - guard : s.getType.getValue == 17 and s.~features.get("Intra_Relationship_Constraints") + guard : s.getType.getValue == 16 and s.~features.get("Intra_Relationship_Constraints") } @@ -114,6 +114,6 @@ rule ReflexiveRelation transform s : source!Relation to t : target!Reflexive { - guard : s.getType.getValue == 18 and s.~features.get("Intra_Relationship_Constraints") + guard : s.getType.getValue == 17 and s.~features.get("Intra_Relationship_Constraints") } \ No newline at end of file diff --git a/org.framed.orm.transformation/epsilon/RelationshipExclusion.etl b/org.framed.orm.transformation/epsilon/RelationshipExclusion.etl index 17769b913c4eefd0818a52fcc3fbeba1b8b11559..db15d0f1d030664d8479aea035f3e6aa34dd7c8c 100644 --- a/org.framed.orm.transformation/epsilon/RelationshipExclusion.etl +++ b/org.framed.orm.transformation/epsilon/RelationshipExclusion.etl @@ -3,9 +3,8 @@ rule RelationshipExclusion transform s : source!Relation to t : target!RelationshipExclusion { - guard : s.getType.getValue == 19 and s.~features.get("Inter_Relationship_Constraints") // enum value RelationshipExclusion + guard : s.getType.getValue == 18 and s.~features.get("Inter_Relationship_Constraints") // enum value RelationshipExclusion - //does not work as RelationshipShapeChild has no ref to the actual Relationship - //t.first ::= s.source; - //t.second ::= s.target; + t.first ::= s.source; + t.second ::= s.target; } \ No newline at end of file diff --git a/org.framed.orm.transformation/epsilon/RelationshipImplication.etl b/org.framed.orm.transformation/epsilon/RelationshipImplication.etl index cbbf10a7ef6a3b2548b505862b9a90743cebe68e..bf353e7893c264c178fe3d2c952bc5af65ffedf9 100644 --- a/org.framed.orm.transformation/epsilon/RelationshipImplication.etl +++ b/org.framed.orm.transformation/epsilon/RelationshipImplication.etl @@ -5,8 +5,6 @@ rule RelationshipImplication guard : s.getType.getValue == 15 and s.~features.get("Inter_Relationship_Constraints") // enum value RelationshipImplication - - //does not work as RelationshipShapeChild has no ref to the actual Relationship - //t.first = s.source.equivalent(); - //t.second = s.target.equivalent(); + t.first = s.source.equivalent(); + t.second = s.target.equivalent(); } \ No newline at end of file