/**
  load "Annotation"
*/
load "Annotation"

AnnotationSyntax ReferenceSemantics {
   abstract ReferenceAnnotation RefSemantics {
     strong : boolean;
   }

   ReferenceAnnotation composition : RefSemantics {
      semanticHooks = [NoTwoContainers];
   }
   
   ReferenceAnnotation aggregation : RefSemantics {
   }
   
   ConstraintSpec NoTwoContainers {
      messageIfFail = "There is a cycle that includes %s, or a node owned by it has another container";
      execPoint = pre;
      trigger = verify;
      level = 1;
      actionCodeFile = "Composition.eol";
      annotations = [composition];
   }
}


