Examples of RuleContainer


Examples of lupos.gui.operatorgraph.visualeditor.ruleeditor.util.RuleContainer

    LANGUAGE.HTML.setDefaultStyles(new Font("Courier New", Font.PLAIN, 12));
    LANGUAGE.JAVA.setDefaultStyles(new Font("Courier New", Font.PLAIN, 12));

    this.statusBar = new StatusBar();
    this.ruleContainer = new RuleContainer(this);
    this.rulePackageContainer = new RulePackageContainer(this);
    this.associationsContainer = new AssociationsContainer(this);

    this.treePane = new TreePane(this, this.ruleContainer, this.rulePackageContainer);
View Full Code Here

Examples of lupos.gui.operatorgraph.visualeditor.ruleeditor.util.RuleContainer

    for(JTabbedPane rulePackagePane : this.editor.getRulePackages()) {
      RulePackagePanel rulePackage = (RulePackagePanel) rulePackagePane;
      String rulePackageName = rulePackage.toString();
      String rulePackageClassName = this.capitalizeWord(rulePackageName.replaceAll(" ", "") + "RulePackage");
      String rulePackageClassFileName = rulePackageClassName + ".java";
      RuleContainer ruleContainer = this.editor.getRuleContainer();

      System.out.println(":: generating " + rulePackageClassFileName + "...");

      StringBuffer rules = new StringBuffer();
      LinkedList<String> associatedRulePackages = this.editor.getAssociationsContainer().getAssociationsToRulePackage(rulePackageName);
      int failedRules = 0;

      for(int i = 0; i < associatedRulePackages.size(); i += 1) {
        String ruleName = associatedRulePackages.get(i).replaceAll(" ", "") + "Rule";
        Triple<Boolean, HashMap<String, VariableContainer>, HashMap<String, VariableContainer>> resultTriple = this.validateRule(this.capitalizeWord(ruleName), ruleContainer.getRule(associatedRulePackages.get(i)));

        if(!resultTriple.getFirst()) {
          failedRules++;

          continue;
View Full Code Here

Examples of lupos.gui.operatorgraph.visualeditor.visualrif.util.RuleContainer

  public void initRule() {
    if (this.getDocumentName() == null) {
      this.setDocumentName(this.visualRifEditor.getDocumentContainer().getNameOfActiveElement());
    }
    final RuleContainer ruleContainer = this.visualRifEditor.getRuleContainer();
    final RulePanel rp = ruleContainer.createNewRule(this.getDocumentName(),this.getRuleName());
    this.setRulePanel(rp);
    this.setRuleName(rp.getRuleName());
    this.setInitRule(true);
  }
View Full Code Here

Examples of lupos.gui.operatorgraph.visualeditor.visualrif.util.RuleContainer


    this.statusBar = new StatusBar();

    this.documentContainer = new DocumentContainer(this);
    this.ruleContainer = new RuleContainer(this);


    this.treePane = new TreePane(this, this.documentContainer);

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.