Skip to content
Snippets Groups Projects
Commit c43c9313 authored by vikin91's avatar vikin91
Browse files

minor changes in MM - add derived name for flow traffix

parent 774e2655
No related branches found
No related tags found
No related merge requests found
......@@ -5,8 +5,8 @@ settingDelegates="http://www.eclipse.org/emf/2002/Ecore/OCL/Pivot", validationDe
package dnimm3
import org.eclipse.emf.ecore.util.EcoreUtil
//annotation "http://www.eclipse.org/emf/2002/Ecore/OCL/Pivot" as Pivot
annotation "http://www.eclipse.org/emf/2002/Ecore/OCL/Pivot" as OCL
annotation "http://www.eclipse.org/emf/2002/Ecore/OCL/Pivot" as Pivot
//annotation "http://www.eclipse.org/emf/2002/Ecore/OCL/Pivot" as OCL
// "/OCL/Pivot" replaced old "/OCL". Source: http://help.eclipse.org/juno/index.jsp?topic=%2Forg.eclipse.ocl.doc%2Fhelp%2FDelegates.html
//ocl in xcore forum thread: https://www.eclipse.org/forums/index.php/t/368546/
......@@ -18,7 +18,8 @@ interface NamedElement {
@Ecore(constraints="uidHasToBeUnique")
@OCL(uidHasToBeUnique="Identifier.allInstances()->isUnique(p: Identifier | p.uid)")
@Pivot(uidHasToBeUnique="Identifier.allInstances()->isUnique(p: Identifier | p.uid)")
abstract class Identifier {
id unsettable unique String uid
//TODO: make sure this is globally unique - with ocl?
......@@ -151,12 +152,17 @@ class Flow extends Entity {
}
class SdnControlFlow extends Flow {
refers Flow[1] originalFlow
refers Flow[1] originalFlow //parent Flow
}
abstract class FlowTraffic {
container Flow flow opposite generatedTraffic // change: 23.06.2016 - added opposite
readonly derived String name get {
return "FlowTraffic"+"["+flow.name+"]";
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment