Examples of Semantics

  • vn.SEMANTICS

  • Examples of org.eclipse.wb.internal.css.semantics.Semantics

      ////////////////////////////////////////////////////////////////////////////
      /**
       * @return the {@link SimpleValue} to edit.
       */
      protected final SimpleValue getValueObject() throws Exception {
        Semantics semantics = getSemantics();
        return (SimpleValue) ScriptUtils.evaluate(m_valueObjectPath, semantics);
      }
    View Full Code Here

    Examples of org.eclipse.wb.internal.css.semantics.Semantics

      ////////////////////////////////////////////////////////////////////////////
      /**
       * @return the underlying semantic {@link AbstractSidedProperty}.
       */
      protected final AbstractSidedProperty getSemanticProperty() throws Exception {
        Semantics semantics = m_accessor.getSemantics(m_styleName);
        return (AbstractSidedProperty) ScriptUtils.evaluate(m_valueObjectPath, semantics);
      }
    View Full Code Here

    Examples of org.eclipse.wb.internal.css.semantics.Semantics

      ////////////////////////////////////////////////////////////////////////////
      /**
       * @return the {@link LengthValue} to edit.
       */
      protected final LengthValue getValueObject() throws Exception {
        Semantics semantics = getSemantics();
        return (LengthValue) ScriptUtils.evaluate(m_valueObjectPath, semantics);
      }
    View Full Code Here

    Examples of org.eclipse.wb.internal.css.semantics.Semantics

       */
      public Semantics getSemantics(String styleName) throws Exception {
        RuleDesc ruleDesc = getRule(styleName);
        // if no rule, use empty Semantics, to avoid null checks in many places
        if (ruleDesc == null) {
          return new Semantics();
        }
        // create Semantics for rule
        CssRuleNode rule = ruleDesc.rule;
        Semantics semantics = m_semantics.get(rule);
        if (semantics == null) {
          semantics = new Semantics();
          semantics.parse(rule);
          m_semantics.put(rule, semantics);
        }
        return semantics;
      }
    View Full Code Here

    Examples of org.eclipse.wb.internal.css.semantics.Semantics

      /**
       * Applies the {@link Semantics} into the source file.
       */
      public void applySemantics(String styleName) throws Exception {
        RuleDesc ruleDesc = getRule(styleName);
        Semantics semantics = getSemantics(styleName);
        semantics.update(ruleDesc.rule);
        m_updatedContexts.add(ruleDesc.contextDescription);
      }
    View Full Code Here

    Examples of synalp.commons.semantics.Semantics

       */
      public TestSuiteEntry(TestSuiteEntry entry)
      {
        this.id = entry.getId();
        this.strict = entry.isStrict();
        this.semantics = new Semantics(entry.getSemantics());
        this.sentences = new ArrayList<String>(entry.getSentences());
      }
    View Full Code Here

    Examples of synalp.commons.semantics.Semantics

        Macro macro = macros.get(macroName);
        if (macro == null)
        {
          logger.error("Warning: entry '" + name + "' has no related macro, hence an empty semantics");
          ret.setSemantics(new Semantics());
          ret.setInterface(new FeatureStructure());
        }
        else
        {
          InstantiationContext context = new InstantiationContext();
          FeatureStructure newHeader = Unifier.unify(macroHeader, macro.getHeader(), context);
          if (newHeader == null)
            logger.error("Warning: header of '" + name + "' does not unify with macro header '" + macro.getName() + "' : " + macro.getHeader());

          FeatureStructure entryInterface = new FeatureStructure(macro.getMacroInterface());
          entryInterface.instantiate(context);
          ret.setInterface(entryInterface);

          Semantics semantics = new Semantics(macro.getSemantics());
          semantics.instantiate(context);
          ret.setSemantics(semantics);
        }

        return ret;
      }
    View Full Code Here

    Examples of synalp.commons.semantics.Semantics

        generateButton.setToolTipText(GUIMessages.getString("GeneratorMainFrame.generateButton.toolTipText"));
        generateButton.setHorizontalAlignment(SwingConstants.RIGHT);
       
        generateButton.addActionListener(new ActionListener(){ 
              public void actionPerformed(ActionEvent ae){ 
                Semantics mrs = GeneratorGUI.getGeneratorGUI().getGeneratorRun().getSelectedSemantics();
                logger.info("Semantics = " + mrs.toString());
                logger.info("### GENERATION ####");
                List<? extends SyntacticRealization> reals = GeneratorGUI.getGeneratorGUI().getGeneratorRun().generate(mrs);
                for(SyntacticRealization real : reals){
                  logger.info("DerivedTree = " + real.getDerivedTree().toString());
                  logger.info("MorphoRealization = " + real.getMorphRealizations().toString());
    View Full Code Here

    Examples of synalp.commons.semantics.Semantics

      @Test
      public void testSubsumption1()
      {
        String str1 = "A0_1:indiv(?B0_1 ?C0_1 ?D0_1) F0_1:qeq(?G0_1 ?A0_1) A0_1:named(?B0_1 tammy_n) H0_1:proper_q(?B0_1 ?G0_1 ?I0_1)";
        String str2 = "L6:event(S pres indet ind) qeq(CR L5) L4:indiv(C f pl 3) L2:proper_q(B BR BS) L3:indiv(B f sg) L4:udef_q(C CR CS) L0:proper_q(A AR AS) L6:intelligent_adj(S C) L3:named(B fiona_n) qeq(BR L3) L5:and(C A B) L1:named(A tammy_n) L1:indiv(A f sg) qeq(AR L1)";
        Semantics sem1 = Semantics.readSemantics(str1);
        Semantics sem2 = Semantics.readSemantics(str2);
        assertTrue(sem1.subsumes(sem2).isEmpty());
      }
    View Full Code Here

    Examples of synalp.commons.semantics.Semantics

      @Test
      public void testSubsumption2()
      {
        String str1 = "?A0_1:indiv(?B0_1 ?C0_1 ?D0_1) ?F0_1:qeq(?G0_1 ?A0_1) ?A0_1:named(?B0_1 tammy_n) ?H0_1:proper_q(?B0_1 ?G0_1 ?I0_1)";
        String str2 = "L6:event(S pres indet ind) qeq(CR L5) L4:indiv(C f pl 3) L2:proper_q(B BR BS) L3:indiv(B f sg) L4:udef_q(C CR CS) L0:proper_q(A AR AS) L6:intelligent_adj(S C) L3:named(B fiona_n) qeq(BR L3) L5:and(C A B) L1:named(A tammy_n) L1:indiv(A f sg) qeq(AR L1)";
        Semantics sem1 = Semantics.readSemantics(str1);
        Semantics sem2 = Semantics.readSemantics(str2);
        assertFalse(sem1.subsumes(sem2).isEmpty());
      }
    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.