Examples of eval()


Examples of org.omegahat.Environment.Parser.Parse.ExpressionInt.eval()

{
  Object val = o;
  int n = indices.length;

  ExpressionInt e = new org.omegahat.Environment.Parser.Parse.ArrayAccess(o, indices);
  val = e.eval(this);

  return(val);
}

View Full Code Here

Examples of org.ontospread.restrictions.OntoSpreadRestriction.eval()

  public void testEval() {
    OntoSpreadRestriction maxRestriction = new OntoSpreadRestrictionMaxConcepts(10);
    OntoSpreadState ontoSpreadState = new OntoSpreadState();
    Set<String> spreadedConcepts= new HashSet<String>();
    ontoSpreadState.setSpreadedConcepts(spreadedConcepts);
    assertTrue(maxRestriction.eval(ontoSpreadState));
    for(int i = 0; i<=10;i++){
      ontoSpreadState.getSpreadedConcepts().add(String.valueOf(i));
    }
    assertFalse(maxRestriction.eval(ontoSpreadState));
  }
View Full Code Here

Examples of org.openmrs.logic.LogicService.eval()

        if (logicCriteria != null) {
            if ("testing-html-form-entry".equals(session.getPatient().getUuid()))
                return false;
            else {
                try {
                    return ls.eval(session.getPatient(), logicCriteria).toBoolean();
                } catch (Exception ex) {
                    throw new BadFormDesignException(ex.getMessage());
                }
            }
        } else {
View Full Code Here

Examples of org.opentripplanner.analyst.core.Sample.eval()

                // TODO Make the sample source multi-router compatible
                Sample sample = sampleSource.getSample(c.x, c.y);
                if (sample == null) {
                    return Long.MAX_VALUE;
                }
                Long z = sample.eval(spt);
                return z;
            }
        };
        // TODO Snap the center as XYZ tile grid for better sample-reuse (if using sample cache).
        Coordinate center = sptRequest.from.getCoordinate();
View Full Code Here

Examples of org.overturetool.vdmj.values.OperationValue.eval()

          try
          {
            EventThread eThread = new EventThread(Thread.currentThread());
            BasicSchedulableThread.add(eThread);
            CPUResource.vCPU.register(eThread, 1000);
            eventOp.eval(coSimLocation, new ValueList(), mainContext);
            eThread.setState(RunState.COMPLETE);
            BasicSchedulableThread.remove(eThread);
            evaluated = true;
          } catch (ValueException e)
          {
View Full Code Here

Examples of org.python.util.PythonInterpreter.eval()

  }

  public void check(String scriptCode) throws ScriptCompilerException
  {
    PythonInterpreter interpreter = new PythonInterpreter();
    interpreter.eval(scriptCode);
  }
}
View Full Code Here

Examples of org.raptorjs.rhino.JavaScriptEngine.eval()

    }
   
    protected boolean checkCondition(RaptorJSEnv jsEnv, ScriptableObject extensionCollection) {
        JavaScriptEngine jsEngine = jsEnv.getJavaScriptEngine();
        if (this.function == null) {
            this.function = (NativeFunction)jsEngine.eval(
                    "(function (extensions) { return " + this.condition + ";})",
                    this.name);   
        }
       
        Boolean result =  (Boolean)jsEngine.invokeFunction(this.function, extensionCollection);
View Full Code Here

Examples of org.rhq.scripting.javascript.engine.RhinoScriptEngine.eval()

        if (eng == null) {
            throw new IllegalStateException("Failed to instantiate the 'rhino-nonjdk' script engine. This means that either the required library is missing from the classpath or that there are some security issues preventing it from being instantiated.");
        }
       
        for (String pkg : packages) {
            eng.eval("importPackage(" + pkg + ")");
        }

        return eng;
    }
}
View Full Code Here

Examples of org.rosuda.JRI.Rengine.eval()

    /* High-level API - do not use RNI methods unless there is no other way
      to accomplish what you want */
    try {
      REXP x;
      re.eval("data(iris)",false);
      System.out.println(x=re.eval("iris"));
      // generic vectors are RVector to accomodate names
      RVector v = x.asVector();
      if (v.getNames()!=null) {
        System.out.println("has names:");
View Full Code Here

Examples of org.rosuda.REngine.Rserve.RConnection.eval()

                                                BEGIN_MAGIC, END_MAGIC);
    handler.start();

    RConnection rconn = new RConnection("127.0.0.1", port);
    rconn.login("beaker", password);
    int pid = rconn.eval("Sys.getpid()").asInteger();
    return new RServer(rconn, handler, errorGobbler, port, password, pid);
  }

  // set the port used for communication with the Core server
  public void setCorePort(int corePort)
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.