Examples of type()


Examples of org.luaj.vm2.LuaValue.type()

    final LuaValue[] k = f.k;
    int i, n = k.length;
    dumpInt(n);
    for (i = 0; i < n; i++) {
      final LuaValue o = k[i];
      switch ( o.type() ) {
      case LuaValue.TNIL:
        writer.write(LuaValue.TNIL);
        break;
      case LuaValue.TBOOLEAN:
        writer.write(LuaValue.TBOOLEAN);
View Full Code Here

Examples of org.luaj.vm2.lib.ZeroArgFunction.type()

    {
      LuaThread t = new LuaThread(new LuaClosure(p2,_G), _G);
      Varargs v = t.resume(LuaValue.NONE);
      assertEquals(LuaValue.TRUE, v.arg(1) );
      LuaValue f = v.arg(2);
      assertEquals( LuaValue.TFUNCTION, f.type() );
      assertEquals( aaa, f.call() );
      assertEquals( _G, f.getfenv() );
    }
    {
      // change the thread environment after creation!
View Full Code Here

Examples of org.milyn.delivery.annotation.Resource.type()

    private void registerInstalledHandlerFactories() {
        for (Class<ContentHandlerFactory> handlerFactory : handlerFactories) {
            Resource resourceAnnotation = handlerFactory.getAnnotation(Resource.class);

            if(resourceAnnotation != null) {
                addHandlerFactoryConfig(handlerFactory, resourceAnnotation.type());
            }
        }

        // And add the Java handler...
        addHandlerFactoryConfig(JavaContentHandlerFactory.class, "class");
View Full Code Here

Examples of org.modeshape.jcr.query.model.Join.type()

        assertThat(query.columns().isEmpty(), is(true));
        // FROM ...
        Join join = isJoin(query.source());
        assertThat(join.getLeft(), is((Source)namedSelector(selectorName("mgnl:content"))));
        assertThat(join.getRight(), is((Source)namedSelector(selectorName("acme:stuff"))));
        assertThat(join.type(), is(JoinType.INNER));
        SameNodeJoinCondition joinCondition = isSameNodeJoinCondition(join.getJoinCondition());
        assertThat(joinCondition.selector1Name(), is(selectorName("mgnl:content")));
        assertThat(joinCondition.selector2Name(), is(selectorName("acme:stuff")));
        assertThat(joinCondition.getSelector2Path(), is(nullValue()));
        // WHERE ...
View Full Code Here

Examples of org.movsim.simulator.roadnetwork.LaneSegment.type()

            // the vehicle is in the exit road segment, but not in the exit lane
            // react to vehicle ahead in exit lane
            // TODO this reaction is in same situations too short-sighted so that the vehicle in the exit lane must be
            // considered already in the upstream segment
            final LaneSegment exitLaneSegment = roadSegment.laneSegment(roadSegment.trafficLaneMax());
            if (exitLaneSegment != null && exitLaneSegment.type() == Lanes.Type.EXIT) {
                // this front vehicle could also result in negative net distances
                // but the deceleration is limited anyway
                Vehicle frontVehicle = exitLaneSegment.frontVehicle(this);
                double accToVehicleInExitLane = longitudinalModel.calcAcc(this, frontVehicle);
                final double decelLimit = 4.0;
View Full Code Here

Examples of org.movsim.simulator.vehicles.Vehicle.type()

        final int currentLane = me.lane();
        if (roadSegment.laneCount() > 2
                && roadSegment.laneSegment(roadSegment.laneCount()).type() == Lanes.Type.ENTRANCE
                && currentLane == roadSegment.trafficLaneMax()) {
            Vehicle frontVehicle = roadSegment.laneSegment(roadSegment.trafficLaneMax()).frontVehicle(me);
            if(frontVehicle==null || frontVehicle.type() == Vehicle.Type.OBSTACLE){
                return LaneChangeDecision.NONE;
            }
           
            double accToFront = me.getLongitudinalModel().calcAcc(me, frontVehicle);
            if (accToFront < -lcModelMOBIL.getParameter().getSafeDeceleration()) {
View Full Code Here

Examples of org.mule.api.annotations.meta.Channel.type()

    }

    protected InboundEndpoint tryInboundEndpointAnnotation(AnnotationMetaData metaData, ChannelType channelType) throws MuleException
    {
        Channel channelAnno = metaData.getAnnotation().annotationType().getAnnotation(Channel.class);
        if (channelAnno != null && channelAnno.type() == channelType)
        {
            EndpointAnnotationParser parser = parserFactory.getEndpointParser(metaData.getAnnotation(), metaData.getClazz(), metaData.getMember());
            if (parser == null)
            {
                //TODO i18n
View Full Code Here

Examples of org.mule.api.annotations.meta.Router.type()

    {
        for (int i = 0; i < componentFactoryClass.getAnnotations().length; i++)
        {
            Annotation annotation = componentFactoryClass.getAnnotations()[i];
            Router routerAnnotation = annotation.annotationType().getAnnotation(Router.class);
            if (routerAnnotation != null && routerAnnotation.type() == RouterType.Inbound)
            {
                MessageProcessorAnnotationParser parser = parserFactory.getRouterParser(annotation, componentFactoryClass, null);
                if (parser != null)
                {
                    ((ServiceCompositeMessageSource) service.getMessageSource()).addMessageProcessor(parser.parseMessageProcessor(annotation));
View Full Code Here

Examples of org.nlogo.agent.AgentSet.type()

        new LinkedHashSet<Patch>();
    for (int i = 0; i < args.length; i++) {
      Object elt = args[i].report(context);
      if (elt instanceof AgentSet) {
        AgentSet tempSet = (AgentSet) elt;
        if (tempSet.type() != org.nlogo.agent.Patch.class) {
          throw new ArgumentTypeException
              (context, this, i, Syntax.PatchType() | Syntax.PatchsetType(), elt);
        }
        for (AgentSet.Iterator iter = tempSet.iterator(); iter.hasNext();) {
          resultSet.add((Patch) iter.next());
View Full Code Here

Examples of org.nlogo.api.AgentSet.type()

      Object next = iter.next();
      // I'm unable to reproduce bug #1400, but a user did see it, and
      // this instanceof check should prevent it - ST 9/21/11
      if(next instanceof AgentSet) {
        AgentSet breed = (AgentSet) next;
        if (Turtle.class.isAssignableFrom(breed.type())) {
          for (Agent a : breed.agents()) {
            turtleDrawer.drawTurtle(g, topology, (Turtle) a, patchSize);
            turtlesDrawn++;
          }
        }
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.