Examples of Rule


Examples of OntoUML.URML.Rule

   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public NotificationChain basicSetConditionRule(Rule newConditionRule, NotificationChain msgs) {
    Rule oldConditionRule = conditionRule;
    conditionRule = newConditionRule;
    if (eNotificationRequired()) {
      ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, URMLPackage.ROLE_TYPE_ATOM__CONDITION_RULE, oldConditionRule, newConditionRule);
      if (msgs == null) msgs = notification; else msgs.add(notification);
    }
View Full Code Here

Examples of aima.core.agent.impl.aprog.simplerule.Rule

  // function MODEL-BASED-REFLEX-AGENT(percept) returns an action
  public Action execute(Percept percept) {
    // state <- UPDATE-STATE(state, action, percept, model)
    state = updateState(state, action, percept, model);
    // rule <- RULE-MATCH(state, rules)
    Rule rule = ruleMatch(state, rules);
    // action <- rule.ACTION
    action = ruleAction(rule);
    // return action
    return action;
  }
View Full Code Here

Examples of alt.jiapi.Rule


        this.opCodes = opCodes;

        try {
            rule = new Rule(resolution);
        }
        catch(JiapiException je) {
        }
    }
View Full Code Here

Examples of ariba.ui.meta.core.Rule

        // Any items after the new predecessor should now follow item
        reparentFollowers(dragContext, dropItem, draggedItem, editSet, preds);

        // Now place this field after its dropTarget
        Rule rule = editSet.editableRuleForContext(dragContext);
        editSet.updateRule(rule, Collections.singletonMap(UIMeta.KeyAfter, (Object)dropItem));
        Log.meta.debug("Resetting predecessor of %s to %s\n", draggedItem, dropItem);

        if (_selectedRecord != null) {
            setSelectedRecord((Context.AssignmentRecord)dragRec);
View Full Code Here

Examples of br.com.caelum.vraptor.panettone.parser.rule.Rule

    return ast;
  }

  private void extractAllChunksBasedOnRules(SourceCode sc) {
    for(Rules aRule : Rules.rulesToExecute()) {
      Rule rule = aRule.getRule();
     
      List<TextChunk> chunks = rule.getChunks(sc);
      for(TextChunk c : chunks) {
        sc.transform(c, aRule);
      }
    }
  }
View Full Code Here

Examples of br.com.six2six.fixturefactory.Rule

public class ProposalTemplate implements TemplateLoader {

  @Override
  public void load() {
    Fixture.of(SimpleProposal.class).addTemplate("valid", new Rule(){{
      add("item.order.id", "123456");
    }});
  }
View Full Code Here

Examples of ca.uhn.hl7v2.validation.Rule

* @version $Revision: 1.3 $ updated on $Date: 2010-08-23 01:14:44 $ by $Author: jamesagnew $
*/
@SuppressWarnings("serial")
public class DefaultValidation extends ValidationContextImpl {
    public DefaultValidation() {
        Rule trim = new TrimLeadingWhitespace();
        getPrimitiveRuleBindings().add(new RuleBinding("*", "FT", trim));
        getPrimitiveRuleBindings().add(new RuleBinding("*", "ST", trim));
        getPrimitiveRuleBindings().add(new RuleBinding("*", "TX", trim));                

        Rule size200 = new SizeRule(200);
        Rule size32000 = new SizeRule(32000);
        getPrimitiveRuleBindings().add(new RuleBinding("*", "FT", size32000));
        getPrimitiveRuleBindings().add(new RuleBinding("*", "ID", size200));
        getPrimitiveRuleBindings().add(new RuleBinding("*", "IS", size200));

        Rule nonNegativeInteger = new RegexPrimitiveRule("\\d*", "");
        getPrimitiveRuleBindings().add(new RuleBinding("*", "SI", nonNegativeInteger));                                   

        Rule number = new RegexPrimitiveRule("(\\+|\\-)?\\d*\\.?\\d*", "");
        getPrimitiveRuleBindings().add(new RuleBinding("*", "NM", number));
       
        Rule telephoneNumber
            = new RegexPrimitiveRule("(\\d{1,2} )?(\\(\\d{3}\\))?\\d{3}-\\d{4}(X\\d{1,5})?(B\\d{1,5})?(C.*)?",
                "Version 2.4 Section 2.9.45");
        getPrimitiveRuleBindings().add(new RuleBinding("*", "TN", telephoneNumber));       
       
        String datePattern = "(\\d{4}([01]\\d(\\d{2})?)?)?"; //YYYY[MM[DD]]
        Rule date = new RegexPrimitiveRule(datePattern, "Version 2.5 Section 2.16.24");
        getPrimitiveRuleBindings().add(new RuleBinding("*", "DT", date));
       
        String timePattern  //HH[MM[SS[.S[S[S[S]]]]]][+/-ZZZZ]
            = "([012]\\d([0-5]\\d([0-5]\\d(\\.\\d(\\d(\\d(\\d)?)?)?)?)?)?)?([\\+\\-]\\d{4})?";
        Rule time = new RegexPrimitiveRule(timePattern, "Version 2.5 Section 2.16.79");
        getPrimitiveRuleBindings().add(new RuleBinding("*", "TM", time));
               
        String datetimePattern  
            = "(\\d{4}([01]\\d(\\d{2}([012]\\d([0-5]\\d([0-5]\\d(\\.\\d(\\d(\\d(\\d)?)?)?)?)?)?)?)?)?)?([\\+\\-]\\d{4})?";
        Rule datetime = new RegexPrimitiveRule(datetimePattern, "Version 2.5 Section 2.16.25");
        getPrimitiveRuleBindings().add(new RuleBinding("*", "TSComponentOne", datetime));
        getPrimitiveRuleBindings().add(new RuleBinding("*", "DTM", datetime));
       
        // NULLDT shouldn't have a value
        getPrimitiveRuleBindings().add(new RuleBinding("*", "NULLDT", new WithdrawnDatatypeRule()));
View Full Code Here

Examples of cbg.editor.jedit.Rule

    final boolean ignoreCase = rule.getIgnoreCase();
    type.accept(new IVisitor() {
      public void acceptSpan(Span span) {
        IToken defaultToken = token;
        if(span.hasDelegate()) {
          Rule delegateRule = mode.getRule(span.getDelegate());
          defaultToken = new DelegateToken(type, delegateRule, span.getEnd());
        }
        /* Using a PatternRule instead of a MultiLineRule because
         * PatternRule exposes the break on newline behavior. */
        PatternRule pat = new CasedPatternRule(span.getStart(), span.getEnd(),
View Full Code Here

Examples of ch.ethz.iks.slp.impl.attr.gen.Rule

    if("".equals(input)) {
      return new ArrayList();
    }
    Parser parser = new Parser();
    try {
      Rule parse = parser.parse("attr-list", input);
      AttributeListVisitor visitor = new AttributeListVisitor();
      parse.visit(visitor);
      return visitor.getAttributes();
    } catch (IllegalArgumentException e) {
      throw new ServiceLocationException(ServiceLocationException.PARSE_ERROR, e.getMessage());
    } catch (ParserException e) {
      throw new ServiceLocationException(ServiceLocationException.PARSE_ERROR, e.getMessage());
View Full Code Here

Examples of ch.hortis.sonar.model.Rule

          filename = StringUtils.substringAfterLast(name, "\\");
        }
        List<Element> violations = parser.getChildElements(element, "violation");
        for (Element violation : violations) {
          RuleFailure failure = new RuleFailure();
          Rule rule = getRuleService().getRuleByPluginKey(violation.getAttribute("rule"));
          if (rule == null) {
            continue;
          }
          failure.setRule(rule);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.