Package lupos.gui.operatorgraph.visualeditor.ruleeditor.util

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


    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

TOP

Related Classes of lupos.gui.operatorgraph.visualeditor.ruleeditor.util.RuleContainer

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.