Examples of Envelope


Examples of com.vividsolutions.jts.geom.Envelope

  private static final double DELTA = 1e-20;

  @Test
  public void testCombine() throws Exception {
    Envelope e1 = new Envelope(10, 40, 10, 30);
    GetLocationResult glr1 = new GetLocationResult();
    glr1.setEnvelope(e1);
    Envelope e2 = new Envelope(20, 35, 25, 50);
    GetLocationResult glr2 = new GetLocationResult();
    glr2.setEnvelope(e2);
    List<GetLocationResult> list = new ArrayList<GetLocationResult>();
    list.add(glr1);
    list.add(glr2);

    CombineResultService cis = new CombineUnionService();
    Envelope res = cis.combine(list);
    Assert.assertEquals(10.0, res.getMinX(), DELTA);
    Assert.assertEquals(10.0, res.getMinY(), DELTA);
    Assert.assertEquals(40.0, res.getMaxX(), DELTA);
    Assert.assertEquals(50.0, res.getMaxY(), DELTA);
  }
View Full Code Here

Examples of de.maramuse.soundcomp.generator.Envelope

  private Event getTom(double left, double right) {
  // create a tom.
  // a pitched percussive sound with decreasing pitch and harmonics that fade out
  // faster than the fundamental.
  Event tom=new Event();
  ProcessElement ev=new Envelope();
  ProcessElement m=new mul();
  ProcessElement m1=new mul();
  ProcessElement m2=new mul();
  ProcessElement p1=new plus();
  ProcessElement p2=new plus();
  ProcessElement st=new SawTooth();
  try{
    ev.setSource(SYNC.i, tom, GATE.i);
    ev.setSource(A.i, ConstStream.c(0.01), OUT.i);
    ev.setSource(D.i, ConstStream.c(1), OUT.i);
    ev.setSource(R.i, ConstStream.c(1), OUT.i);
    ev.setSource(S.i, ConstStream.c(0), OUT.i);
    m.setSource(IN_IMAG.i, ev, OUT.i);
    m.setSource(IN.i, st, OUT.i);
    m1.setSource(IN_IMAG.i, ev, OUT.i);
    m1.setSource(IN.i, ConstStream.c(20), OUT.i);
    p1.setSource(IN_IMAG.i, m1, OUT.i);
View Full Code Here

Examples of eu.mosaic_cloud.platform.interop.idl.IdlCommon.Envelope

        final boolean immediate = publish.getImmediate ();
        final boolean mandatory = publish.getMandatory ();
        routingKey = publish.getRoutingKey ();
        String correlationId = null;
        String replyTo = null;
        final Envelope envelope = publish.getEnvelope ();
        if (publish.hasCorrelationId ()) {
          correlationId = publish.getCorrelationId ();
        }
        if (publish.hasReplyTo ()) {
          replyTo = publish.getReplyTo ();
        }
        final AmqpOutboundMessage mssg = new AmqpOutboundMessage (exchange, routingKey, dataBytes, mandatory, immediate, durable, replyTo, envelope.getContentEncoding (), envelope.getContentType (), correlationId, null);
        AmqpStub.logger.trace ("AmqpStub - Received request for PUBLISH"); // $NON-NLS-1$
        // NOTE: execute operation
        final DriverOperationFinishedHandler pubHandler = new DriverOperationFinishedHandler (token, session);
        resultBool = driver.basicPublish (token.getClientId (), mssg, pubHandler);
        pubHandler.setDetails (AmqpOperations.PUBLISH, resultBool);
View Full Code Here

Examples of eu.stratosphere.runtime.io.network.Envelope

    // discard empty buffers
    if (buffer.size() == 0) {
      return;
    }

    Envelope envelope = createNextEnvelope();
    envelope.setBuffer(buffer);
    this.envelopeDispatcher.dispatchFromOutputChannel(envelope);
  }
View Full Code Here

Examples of gistoolkit.features.Envelope

            double tempNewYHeight = (inScreenEnvelope.getMinY() - inScreenEnvelope.getMaxY())/myYMultiplier;
            double tempOldYHeight = (inWorldEnvelope.getMinY() - inWorldEnvelope.getMaxY());
            double tempYDiff = (tempNewYHeight - tempOldYHeight)/2;

            // calculate the new world Envelope.
            myWorldEnvelope = new Envelope(
                inWorldEnvelope.getMinX() - tempXDiff,
                inWorldEnvelope.getMaxY() - tempYDiff,
                inWorldEnvelope.getMaxX() + tempXDiff,
                inWorldEnvelope.getMinY() + tempYDiff
                );               
View Full Code Here

Examples of jade.domain.FIPAAgentManagement.Envelope

    if((param = msg.getEncoding())== null) param = "";
    encoding.setText(param);

    //Envelope
    Envelope envelope = msg.getEnvelope();

    if(envelope != null)
      showEnvelope(envelope);

View Full Code Here

Examples of jm.audio.synth.Envelope

        // set a fixed, rather the note determined, frequency
        if (frequency != -1.0f) {
            osc.setChoice(0);
            osc.setFrq(frequency);
        }
        Envelope env = new Envelope(osc, envPoints);
        Volume vol = new Volume(env);
        StereoPan span = new StereoPan(vol);
        if (output == RENDER) sout = new SampleOut(span);
    }
View Full Code Here

Examples of org.apache.flink.runtime.io.network.Envelope

  private Envelope nextEnvelope(boolean withBuffer) {
    return nextEnvelope(withBuffer, false);
  }

  private Envelope nextEnvelope(int bufferSize, AbstractEvent... events) {
    Envelope env = new Envelope(random.nextInt(), new JobID(), new ChannelID());
    if (bufferSize > 0) {
      byte[] data = new byte[bufferSize];
      random.nextBytes(data);

      env.setBuffer(spy(new Buffer(new MemorySegment(data), bufferSize, RECYCLER)));
    }

    if (events != null && events.length > 0) {
      env.serializeEventList(Arrays.asList(events));
    }

    return env;
  }
View Full Code Here

Examples of org.apache.soap.Envelope

            result.setDataEncoding(ENCODING);
            result.setContentType("text/xml"); // $NON-NLS-1$
            result.setDataType(SampleResult.TEXT);
            result.setSamplerData(fileContents);// WARNING - could be large

            Envelope msgEnv = Envelope.unmarshall(rdoc);
            // create a new message
            Message msg = new Message();
            result.sampleStart();
            SOAPHTTPConnection spconn = null;
            // if a blank HeaderManager exists, try to
View Full Code Here

Examples of org.eclipse.bpmn2.modeler.core.utils.GraphicsUtil.Envelope

    Rectangle invisibleRectangle = gaService.createInvisibleRectangle(envelope);
    gaService.setLocation(invisibleRectangle, x, y);
    gaService.setSize(invisibleRectangle, ENV_W + 50, ENV_H);

    Shape envelopeShape = peService.createShape(envelope, false);
    Envelope envelopeGa = GraphicsUtil.createEnvelope(envelopeShape, 0, 0, ENV_W, ENV_H);
    IColorConstant color = filled ? IColorConstant.LIGHT_GRAY : IColorConstant.WHITE;
    envelopeGa.rect.setFilled(true);
    envelopeGa.rect.setBackground(gaService.manageColor(diagram, color));
    envelopeGa.rect.setForeground(gaService.manageColor(diagram, StyleUtil.CLASS_FOREGROUND));
    envelopeGa.line.setForeground(gaService.manageColor(diagram, StyleUtil.CLASS_FOREGROUND));
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.