Package org.emftrace.metamodel.RuleModel

Examples of org.emftrace.metamodel.RuleModel.ElementDefinition


         
          List<BaseCondition> conditions = new ArrayList<BaseCondition>();
          conditions.add(bc1);
          conditions.add(bc2);
         
          ElementDefinition e1 = RuleModelFactory.eINSTANCE.createElementDefinition();
          ElementDefinition e2 = RuleModelFactory.eINSTANCE.createElementDefinition();
          ElementDefinition e3 = RuleModelFactory.eINSTANCE.createElementDefinition();
         
          rule.getElements().add(e1);
          rule.getElements().add(e2);
          rule.getElements().add(e3);
         
          // set all the attributes:
          e1.setAlias("e1");
          e2.setAlias("e2");
          e3.setAlias("e3");
         
          List<EObject[]> finalTuples   = new ArrayList<EObject[]>();
          List<EObject[]> currentTuples = new ArrayList<EObject[]>();
         
          Concern c1 = URNModelFactory.eINSTANCE.createConcern();
View Full Code Here


      @Override
      public Void call() throws Exception
      {
          Rule rule = RuleModelFactory.eINSTANCE.createRule();
         
          ElementDefinition e1 = RuleModelFactory.eINSTANCE.createElementDefinition();
          ElementDefinition e2 = RuleModelFactory.eINSTANCE.createElementDefinition();
         
          e1.setAlias("e1");
          e2.setAlias("e2");
         
          rule.getElements().add(e1);
          rule.getElements().add(e2);
         
          BaseCondition condition = RuleModelFactory.eINSTANCE.createBaseCondition();
View Full Code Here

          conditions.add(bc1);
          conditions.add(bc2);
          conditions.add(bc3);
          conditions.add(bc4);
         
          ElementDefinition e1 = RuleModelFactory.eINSTANCE.createElementDefinition();
          ElementDefinition e2 = RuleModelFactory.eINSTANCE.createElementDefinition();
          ElementDefinition e3 = RuleModelFactory.eINSTANCE.createElementDefinition();
         
          ActionDefinition a = RuleModelFactory.eINSTANCE.createActionDefinition();
          a.setActionType(ActionType.CREATE_LINK);
         
          rule.getElements().add(e1);
          rule.getElements().add(e2);
          rule.getElements().add(e3);
         
          rule.getActions().add(a);
         
          e1.setAlias("e1");
          e2.setAlias("e2");
          e3.setAlias("e3");
         
          rule.setConditions(lc1);
         
          lc1.setType(LogicConditionType.AND);
          lc2.setType(LogicConditionType.OR);
View Full Code Here

TOP

Related Classes of org.emftrace.metamodel.RuleModel.ElementDefinition

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.