Examples of evaluate()


Examples of org.eclipse.xpand2.XpandFacade.evaluate()

    execCtx.registerMetaModel(new org.eclipse.xtend.type.impl.java.JavaBeansMetaModel());

    // Generate
    XpandFacade facade = XpandFacade.create(execCtx);
    String templatePath = "templates::corbasim::Main::main";
    facade.evaluate(templatePath, model);
  }

  /**
   * @param args
   */
 

Examples of org.encog.ml.prg.EncogProgram.evaluate()

public class TestExpressionVar extends TestCase {
  public void testAssignment() {
    EncogProgram expression = new EncogProgram("a");
    expression.getVariables().setVariable("a",5);
    Assert.assertEquals(5,expression.evaluate().toFloatValue(),Encog.DEFAULT_DOUBLE_EQUAL);
  }
 
  public void testNegAssignment() {
    EncogProgram expression = new EncogProgram("-a");
    expression.getVariables().setVariable("a",5);

Examples of org.exist.security.xacml.ExistPDP.evaluate()

        final XACMLSource source = expression.getSource();
        try {
            final ExistPDP pdp = context.getPDP();
            if(pdp != null) {
                final RequestCtx request = pdp.getRequestHelper().createQueryRequest(context, source);
                pdp.evaluate(request);
            }
        } catch(final PermissionDeniedException pde) {
            throw new XPathException("Permission to execute query: " + source.createId() + " denied.", pde);
        }
   

Examples of org.fenixedu.academic.domain.curricularRules.PreviousYearsEnrolmentCurricularRule.evaluate()

        RuleResult finalResult = RuleResult.createInitialTrue();
        if (!getRoot().hasExternalCycles()) {
            final PreviousYearsEnrolmentCurricularRule previousYearsEnrolmentCurricularRule =
                    new PreviousYearsEnrolmentCurricularRule(getRoot().getDegreeModule());
            finalResult =
                    finalResult.and(previousYearsEnrolmentCurricularRule.evaluate(new EnroledCurriculumModuleWrapper(getRoot(),
                            getExecutionSemester()), this.enrolmentContext));

        } else {
            for (final CycleCurriculumGroup cycleCurriculumGroup : getRoot().getCycleCurriculumGroups()) {
                final PreviousYearsEnrolmentCurricularRule previousYearsEnrolmentCurricularRule =

Examples of org.ff4j.strategy.ReleaseDateFlipStrategy.evaluate()

    @Test
    public void testPastDayOK() throws ParseException {
        Feature f = ff4j.getFeature("past1");
        ReleaseDateFlipStrategy rds = (ReleaseDateFlipStrategy) f.getFlippingStrategy();
        Assert.assertTrue(rds.evaluate("past1", null, null));
    }

    @Test
    public void testFutureOK() throws ParseException {
        Feature f = ff4j.getFeature("future1");

Examples of org.ff4j.strategy.el.ExpressionFlipStrategy.evaluate()

    @Test
    public void testExplicitevaluate() {
        ExpressionFlipStrategy efs = new ExpressionFlipStrategy();

        Assert.assertTrue(efs.evaluate("D", ff4j.getStore(), null));
        Assert.assertTrue(efs.evaluate("TOTO", ff4j.getStore(), null));

        FlippingExecutionContext fex = new FlippingExecutionContext();
        fex.putString(ExpressionFlipStrategy.PARAM_EXPRESSION, "D");
        Assert.assertTrue(efs.evaluate("D", ff4j.getStore(), fex));

Examples of org.gdbms.engine.customQuery.CustomQuery.evaluate()

    if (query == null) {
      throw new RuntimeException("No such custom query");
    }

    try {
      return query.evaluate(instr.getTables(), instr.getValues());
    } catch (DriverLoadException e) {
      throw new ExecutionException(e);
    } catch (NoSuchTableException e) {
      throw new ExecutionException(e);
    } catch (DataSourceCreationException e) {

Examples of org.gdbms.engine.function.Function.evaluate()

    for (int i = 0; i < paramValues.length; i++) {
      paramValues[i] = ((Expression) params[i]).evaluate(row);
    }

    try {
      return func.evaluate(paramValues);
    } catch (FunctionException e) {
      throw new EvaluationException("Function error", e);
    }
  }

Examples of org.geotools.coverage.grid.GridCoverage2D.evaluate()

            sb.append("The coverage information could not be read.");
        } else if (isOnGrid) {
            int bands = coverage.getSampleDimensions().length;
            final double[] evaluated = new double[bands];
            try {
                coverage.evaluate(p, evaluated);
            } catch (Exception e) {
                e.printStackTrace();
            }
            final GridCoordinates2D gridCoord = gridGeometry.worldToGrid(new DirectPosition2D(p));
            sb.append("Coverage info:\n\n");

Examples of org.geotools.filter.AttributeExpressionImpl.evaluate()

            assertTrue(mf instanceof FeatureType);
           
            AttributeExpressionImpl ex = new AttributeExpressionImpl("gsml:specification/gsml:GeologicUnit/gsml:preferredAge/gsml:GeologicEvent/gsml:eventAge/gsml:CGI_TermRange/gsml:upper/gsml:CGI_TermValue/gsml:value",
                    new Hints(FeaturePropertyAccessorFactory.NAMESPACE_CONTEXT, GSMLNAMESPACES));
                   
            Object o = ex.evaluate(mf);
            assertNotNull(o);
            assertTrue(o instanceof PropertyDescriptor);
           
            ex = new AttributeExpressionImpl("gsml:specification/gsml:GeologicUnit/gsml:composition/gsml:CompositionPart/gsml:lithology/@xlink:href",
                    new Hints(FeaturePropertyAccessorFactory.NAMESPACE_CONTEXT, GSMLNAMESPACES));
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.