Examples of call()


Examples of ctypes.java.CFunction.call()

      CFunction getSystemTimeAsFileTime = dll
          .loadFunction("GetSystemTimeAsFileTime");

      FILETIME ft = new FILETIME();
      Object[] ary = { ft };
      Object o = getSystemTimeAsFileTime.call(null, ary,
          CFunction.FUNCFLAG_STDCALL);
      long lowValue = ft.dwLowDateTime.getValue();
      long highValue = ft.dwHighDateTime.getValue();
      System.out.println(lowValue);
      System.out.println(highValue);
View Full Code Here

Examples of edu.emory.mathcs.backport.java.util.concurrent.Callable.call()

        for (int i = 0; i < CONSUMER_COUNT; i++) {
            new Thread("Consumer:" + i) {
                public void run() {
                    try {
                        consumer.call();
                    } catch (Throwable e) {
                        e.printStackTrace();
                        workerError[0] = e;
                    }
                }
View Full Code Here

Examples of edu.mit.csail.sdg.alloy4compiler.ast.Func.call()

        Func atMost3 = new Func(null, "atMost3", Util.asList(x,y), null, body);

        List<Sig> sigs = Arrays.asList(new Sig[]{A, B, A1, A2});

        // run { some A && atMostThree[B,B] } for 3 but 3 int, 3 seq
        Expr expr1 = A.some().and(atMost3.call(B,B));
        Command cmd1 = new Command(false, 3, 3, 3, expr1);
        A4Solution sol1 = TranslateAlloyToKodkod.execute_command(NOP, sigs, cmd1, opt);
        System.out.println("[Solution1]:");
        System.out.println(sol1.toString());
View Full Code Here

Examples of erjang.EInternalPort.call()

      throw ERT.badarg(port, operation, data);
    }

    // TODO: improve exception handling/wrapping here so we get
    // ErlangException types only!
    return p.call(proc, op.value, data);
  }

  @BIF
  static EPort open_port(EProc proc, EObject portName, EObject portSetting)
      throws Pausable {
View Full Code Here

Examples of eu.mosaic_cloud.components.core.ComponentController.call()

    final CallbackIsolate componentCallbacksIsolate = reactor.createIsolate ();
    Assert.assertTrue (reactor.assignHandler (componentCallbacksProxy, componentCallbacks, componentCallbacksIsolate).await (BasicComponentTest.defaultPollTimeout));
    final ComponentIdentifier peer = ComponentIdentifier.resolve (Strings.repeat ("00", 20));
    for (int index = 0; index < BasicComponentTest.defaultTries; index++) {
      final ComponentCallRequest outboundRequest = RandomMessageGenerator.defaultInstance.generateComponentCallRequest ();
      Assert.assertTrue (componentController.call (peer, outboundRequest).await (BasicComponentTest.defaultPollTimeout));
      final ComponentCallRequest inboundRequest = (ComponentCallRequest) componentCallbacks.queue.poll (BasicComponentTest.defaultPollTimeout, TimeUnit.MILLISECONDS);
      Assert.assertNotNull (inboundRequest);
      Assert.assertEquals (outboundRequest.operation, inboundRequest.operation);
      Assert.assertEquals (outboundRequest.inputs, inboundRequest.inputs);
      Assert.assertEquals (outboundRequest.data, inboundRequest.data);
View Full Code Here

Examples of flex.messaging.io.amf.client.AMFConnection.call()

        }

        // Make a remoting call and retrieve the result.
        try
        {
            Object result = amfConnection.call(getOperationCall("echo"), "Foo");
            System.out.println("Result: " + result);
        }
        catch (ClientStatusException cse)
        {
            cse.printStackTrace();
View Full Code Here

Examples of fr.imag.adele.apam.app1.spec.App1Spec.call()

    App1Spec app1Spec = apam.createInstance(app1CompoType, App1Spec.class);

    System.out
        .println("\n==================Start call test=================== \n");

    app1Spec.call("Call Main APP1 from Test");

    System.out
        .println("\n=================End call test====================\n");
  }
View Full Code Here

Examples of fr.imag.adele.apam.app2.spec.App2Spec.call()

        App2Spec.class);

    System.out
        .println("\n==================Start call test=================== \n");

    app2Spec.call("Call Main APP2 from Test");

    System.out
        .println("\n=================End call test====================\n");
  }
View Full Code Here

Examples of groovy.json.JsonBuilder.call()

* Created by dteo on 10/05/2014.
*/
public class MapToJson {
  public static String convert(Map map) {
    JsonBuilder json = new JsonBuilder();
    json.call(map);
    return json.toPrettyString();
  }

}
View Full Code Here

Examples of groovy.lang.Closure.call()

                context.add(dependency);
            } else if (dependency instanceof TaskDependency) {
                context.add(dependency);
            } else if (dependency instanceof Closure) {
                Closure closure = (Closure) dependency;
                Object closureResult = closure.call(context.getTask());
                if (closureResult != null) {
                    queue.add(0, closureResult);
                }
            } else if (dependency instanceof Iterable) {
                Iterable<?> iterable = (Iterable) dependency;
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.