Examples of position()


Examples of org.movsim.simulator.trafficlights.TrafficLightLocation.position()

    // TODO profiling ... lookup done quite often even w/o any trafficlights
    public TrafficLightLocationWithDistance getNextDownstreamTrafficLight(double position, int lane,
            double maxLookAheadDistance) {
        TrafficLightLocation trafficLightLocation = getNextDownstreamTrafficLight(position);
        double distance = (trafficLightLocation != null) ? trafficLightLocation.position() - position : roadLength
                - position;
        RoadSegment segment = this;
        while (trafficLightLocation == null && distance < maxLookAheadDistance) {
            segment = segment.sinkRoadSegment(Math.min(lane, segment.laneCount));
            if (segment == null) {
View Full Code Here

Examples of org.nasutekds.server.types.ByteSequenceReader.position()

        length = getNextLength(in, pos);
        String destinationString = new String(in, pos, length, "UTF-8");
        this.destination = Integer.valueOf(destinationString);
        pos += length +1;

        reader.position(pos);
      }
      catch (UnsupportedEncodingException e)
      {
        throw new DataFormatException("UTF-8 is not supported by this jvm.");
      }
View Full Code Here

Examples of org.neo4j.graphdb.traversal.TraversalBranch.position()

                {
                    return null;
                }
                if ( result.evaluation().includes() )
                {
                    return result.position();
                }
            }
        }
    }
}
View Full Code Here

Examples of org.seleniuminspector.openfaces.PopupLayerInspector.position()

        int popupLayerWidth = 200;
        int popupLayerHeight = 200;
        Dimension windowSize = window().size();

        Point popupLayerPos = popupLayer.position();
        assertTrue(Math.abs(popupLayerPos.x - (windowSize.width - popupLayerWidth) / 2) <= 10);
        assertTrue(Math.abs(popupLayerPos.y - (windowSize.height - popupLayerHeight) / 2) <= 10);

        popupLayer.assertVisible(true);
        element("formID:submit").clickAndWait();
View Full Code Here

Examples of org.sindice.siren.analysis.attributes.PositionAttribute.position()

      if (expectedNode != null) {
        assertEquals(expectedNode[i], nodeAtt.node());
      }

      if (expectedPos != null) {
        assertEquals(expectedPos[i], posAtt.position());
      }
    }

    assertFalse("end of stream, received token " + termAtt.toString(), t.incrementToken());
    t.end();
View Full Code Here

Examples of org.springmodules.xt.model.generator.annotation.ConstructorArg.position()

        if (args.length != 1) {
            throw new IllegalStateException("The setter method " + method.getName() + " must have only one argument!");
        } else {
            String name = StringUtils.uncapitalize(method.getName().substring(3));
            ConstructorArg annotation = method.getAnnotation(ConstructorArg.class);
            int position = annotation.position();
            Class type = null;
            if (method.isAnnotationPresent(ConstructorArgType.class)) {
                type = method.getAnnotation(ConstructorArgType.class).type();
            } else {
                type = args[0].getClass();
View Full Code Here

Examples of org.teavm.classlib.impl.charset.ByteBuffer.position()

        CharBuffer src = new CharBuffer(s, begin, end);
        byte[] destBytes = new byte[TMath.max(16, TMath.min(s.length, 1024))];
        ByteBuffer dest = new ByteBuffer(destBytes);
        while (!src.end()) {
            charset.encode(src, dest);
            write(destBytes, 0, dest.position());
            dest.rewind(0);
        }
    }

    public void print(char c) {
View Full Code Here

Examples of org.teavm.classlib.impl.charset.CharBuffer.position()

            wrapBuffer.put(outBuffer);
            if (outBuffer.end() && !fillBuffer()) {
                break;
            }
        }
        return wrapBuffer.position() - off;
    }

    private boolean fillBuffer() throws TIOException {
        if (eof) {
            return false;
View Full Code Here

Examples of org.uberfire.java.nio.channels.SeekableByteChannel.position()

        final SeekableByteChannel sbc = new SeekableByteChannelFileBasedImpl( new RandomAccessFile( tempFile, "rw" ).getChannel() );

        assertTrue( sbc.isOpen() );
        sbc.write( ByteBuffer.wrap( "CONTENT\n?!".getBytes() ) );

        sbc.position( 0L );
        ByteBuffer buffer = ByteBuffer.allocate( 10 );
        sbc.read( buffer );
        assertEquals( "CONTENT\n?!", new String( buffer.array() ) );

        sbc.close();
View Full Code Here

Examples of org.xtreemfs.foundation.buffer.ReusableBuffer.position()

        if (data != null) {
            f = data.createViewBuffer();
            f.limit(limit);
            from = f.getData();
            t = data.createViewBuffer();
            t.position(limit);
            to = t.getData();
        }
       
        Logging.logMessage(Logging.LEVEL_DEBUG, this, "RangeLookupOperation:" +
                "db %s, index %d, from %s, to %s.", req.getDatabaseName(), req.getIndexId(),
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.