Examples of Context


Examples of org.overturetool.vdmj.runtime.Context

          try
          {
            ValueUpdateRequest request = updateValueQueueRequest.take();
            try
            {
              Context coSimCtxt = new ClassContext(coSimLocation, "SimulationInterface", interpreter.initialContext, request.value.classDef);
              coSimCtxt.setThreadState(null, request.value.cpu);

              request.value.value.set(coSimLocation, request.newValue, coSimCtxt);
              if (request.value.value instanceof TransactionValue)
              {
                TransactionValue.commitOne(BasicSchedulableThread.getThread(Thread.currentThread()).getId());
View Full Code Here

Examples of org.rascalmpl.interpreter.cursors.Context

  public IValue compute(IValue cursor, IValue to, IValue from) {
    checkCursorness("first", cursor);
    checkUnaryFunction("second", to);
    checkUnaryFunction("third", from);
    ICursor c = (ICursor)cursor;
    Context ctx = new InvertorContext(c.getCtx(), (ICallableValue)from);
    ICallableValue f = (ICallableValue)to;
    IValue computed = f.call(new Type[] {c.getWrappedValue().getType()}, new IValue[] { c.getWrappedValue() }, null).getValue();
    return CursorFactory.makeCursor(computed, ctx);
  }
View Full Code Here

Examples of org.red5.server.Context

    System.out.println("setUp");
    //
    System.setProperty("red5.deployment.type", "junit");
    if (pss == null) {
      pss = (PlaylistSubscriberStream) applicationContext.getBean("playlistSubscriberStream");
      Context ctx = new Context();
      ctx.setApplicationContext(applicationContext);
      Scope scope = new DummyScope();
      scope.setName("");
      scope.setContext(ctx);
      pss.setScope(scope);
      //
View Full Code Here

Examples of org.renjin.eval.Context

public class PackageArtifactTest {

  @Ignore("Commenting test out because other tests verify that we can run library, and cannot reproduce the test failure.")
  @Test
  public void test() throws IOException {
      Context context = Context.newTopLevelContext();
      context.init();
   
      context.evaluate(RParser.parseSource("library(aspect, verbose=TRUE)\n"));
  }
View Full Code Here

Examples of org.restlet.Context

    }
    component.getClients().add(Protocol.HTTP);
    component.getClients().add(Protocol.HTTPS);
    component.getLogService().setEnabled(false);

    Context appContext = component.getContext().createChildContext();
    sesameApplication = new SesameApplication(appContext, dataDir);

    component.getDefaultHost().attachDefault(sesameApplication);

    if (getShutdownKey() != null) {
View Full Code Here

Examples of org.restlet.ext.rdf.internal.turtle.Context

     * @throws IOException
     */
    protected void parseFormula(FormulaToken formulaToken) throws IOException {
        step();
        do {
            parseStatement(new Context());
        } while (!isEndOfFile(getChar()) && getChar() != '}');
        if (getChar() == '}') {
            // Set the cursor at the right of the formula token.
            step();
        }
View Full Code Here

Examples of org.scijava.Context

  /** Creates a new ImageJ application context with all available services. */
  public ImageJ() {
    // TODO: Consider whether to restrict available services
    // to SciJava, SCIFIO and ImageJ by default.
    this(new Context());
  }
View Full Code Here

Examples of org.seleniumhq.selenium.fluent.internal.Context

        return new NegatingFluentWebDriver(delegate, period, Context.singular(context, "without", null, period), monitor);
    }

    protected Internal.BaseFluentWebElements newFluentWebElements(MultipleResult multiple) {
        List<WebElement> result = multiple.getResult();
        Context ctx = multiple.getCtx();
        List<FluentWebElement> elems = new ArrayList<FluentWebElement>();
        for (WebElement aResult : result) {
            elems.add(new FluentWebElement(delegate, new Internal.WebElementHolder(null, aResult, null), ctx, monitor, booleanInsteadOfNotFoundException));
        }
        return new FluentWebElements(delegate, elems, ctx, monitor, booleanInsteadOfNotFoundException);
View Full Code Here

Examples of org.strategoxt.lang.Context

    IStrategoTerm ppTableFile = ATermCommands.makeString(p);
    return parse_pptable_file_0_0.instance.invoke(org.strategoxt.stratego_gpp.stratego_gpp.init(), ppTableFile);
  }

  public static String prettyPrint(IStrategoTerm ppTable, IStrategoTerm term, HybridInterpreter interp) {
    Context ctx = interp.getCompiledContext();
    IStrategoTerm ppt_list = makeList("PPTable", ppTable);
    IStrategoTerm aboxTerm = ast2abox_0_1.instance.invoke(ctx, term, ppt_list);
    if (aboxTerm == null)
      return null;
    IStrategoTerm textTerm = box2text_string_0_1.instance.invoke(ctx, aboxTerm, factory.makeInt(80));
View Full Code Here

Examples of org.structr.rest.serialization.html.attr.Context

    beginTag(writer, tagName, newline, false, attributes, level, indent);
  }
 
  protected static void beginTag(final PrintWriter writer, final String tagName, final boolean newline, final boolean empty, final List<Attr> attributes, final int level, final String indent) throws IOException {
   
    final Context context = new Context(level);
   
    writer.flush();
   
    for (int i=0; i<level; i++) {
      writer.print(indent);
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.