Examples of forward()


Examples of akka.actor.ActorRef.forward()

    @Override
    public void onReceive(Object message) throws Exception {
      if (message instanceof AskParam) {
        ActorRef supervisor = getContext().actorOf(
            Props.create(AskSupervisor.class));
        supervisor.forward(message, getContext());
      } else {
        unhandled(message);
      }
    }
  }
View Full Code Here

Examples of aspect.util.Transform.forward()

            turret.transform.forward = turret.transform.forward.rotateTowards(transform.forward, 4 * Time.deltaTime());
            turret.transform.up = Vector3.yAxis();

            Transform t = Frigate.this.transform.concat(transform);

            t.position = t.position.plus(t.forward().times(0.3f));
            t.position = t.position.plus(t.up().times(0.15f));
            view.set(t);
           
            shooty.update();
        }
View Full Code Here

Examples of ch.entwine.weblounge.dispatcher.DispatchListener.forward()

    }

    // Ask registered listeners whether they are willing to do the work for us
    for (int i = 0; i < dispatcher.size(); i++) {
      DispatchListener d = dispatcher.get(i);
      if (d.forward(request, response, url))
        return;
    }

    // If we get here, then no dispatcher seems to be responsible for handling
    // the request.
View Full Code Here

Examples of ch.unifr.nio.framework.transform.ChannelWriter.forward()

        public void forward(ByteBuffer input) throws IOException {
            switch (inputHandling) {
                case FORWARD:
                    try {
                        ChannelWriter peerWriter = peer.getChannelWriter();
                        peerWriter.forward(input);
                        forwardDone = true;
                        lock.lock();
                        try {
                            forwarded.signal();
                        } finally {
View Full Code Here

Examples of ch.unifr.nio.framework.transform.StringToByteBufferTransformer.forward()

                String userInput = stdIn.readLine();
                if (userInput.length() == 0) {
                    continue;
                }
                System.out.println("sending \"" + userInput + "\"");
                stringToByteBufferTransformer.forward(userInput);
                // wait until we get an echo from the server...
                lock.lock();
                try {
                    inputArrived.await();
                } catch (InterruptedException ex) {
View Full Code Here

Examples of com.bbn.openmap.proj.LLXY.forward()

    public void setScale(float scale) {
        this.scale = scale;

        LatLonPoint center = new LatLonPoint();
        LLXY llxy = new LLXY(center, scale, 2000, 1000);
        Point p1 = llxy.forward(90f, -180f);
        Point p2 = llxy.forward(-90f, 180f);

        int w = (int) (p2.getX() - p1.getX());
        int h = (int) (p2.getY() - p1.getY());
        Projection proj = new LLXY(center, scale, w, h);
View Full Code Here

Examples of com.bbn.openmap.proj.LLXY.forward()

        this.scale = scale;

        LatLonPoint center = new LatLonPoint();
        LLXY llxy = new LLXY(center, scale, 2000, 1000);
        Point p1 = llxy.forward(90f, -180f);
        Point p2 = llxy.forward(-90f, 180f);

        int w = (int) (p2.getX() - p1.getX());
        int h = (int) (p2.getY() - p1.getY());
        Projection proj = new LLXY(center, scale, w, h);
        setProj(proj);
View Full Code Here

Examples of com.bbn.openmap.proj.Proj.forward()

        // OGC 01-068r3 (wms 1.1.1) 7.2.3.8. "In the case where the aspect ratio
        // of the BBOX and the ratio width/height are different, the WMS shall
        // stretch the returned map so that the resulting
        // pixels could themselves be rendered in the aspect ratio of the BBOX"
        Point xyp1 = projection.forward(llp1);
        Point xyp2 = projection.forward(llp2);
        int w = xyp2.x - xyp1.x;
        int h = xyp1.y - xyp2.y;
        if (Math.abs(w - parameters.width) > 2 || Math.abs(h - parameters.height) > 2) {
            Debug.output("use aspect ratio fix");
View Full Code Here

Examples of com.bbn.openmap.proj.Proj.forward()

        // OGC 01-068r3 (wms 1.1.1) 7.2.3.8. "In the case where the aspect ratio
        // of the BBOX and the ratio width/height are different, the WMS shall
        // stretch the returned map so that the resulting
        // pixels could themselves be rendered in the aspect ratio of the BBOX"
        Point xyp1 = projection.forward(llp1);
        Point xyp2 = projection.forward(llp2);
        int w = xyp2.x - xyp1.x;
        int h = xyp1.y - xyp2.y;
        if (Math.abs(w - parameters.width) > 2 || Math.abs(h - parameters.height) > 2) {
            Debug.output("use aspect ratio fix");
            projection.setWidth(w);
View Full Code Here

Examples of com.bbn.openmap.proj.Projection.forward()

                // get corners
                LatLonPoint ul = projection.getUpperLeft();
                LatLonPoint lr = projection.getLowerRight();

                // set start/end indicies
                Point ulp = projection.forward(ul);
                Point lrp = projection.forward(lr);
                sx = (int) ulp.getX();
                ex = (int) lrp.getX();
                sy = (int) ulp.getY();
                ey = (int) lrp.getY();
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.