Package rinde.sim.core.model.road

Examples of rinde.sim.core.model.road.MoveProgress


      if (blockedNodes.contains(inputP.get(i))) {
        index = i;
        break;
      }
    }
    final MoveProgress mp;
    if (index >= 0) {
      final Queue<Point> newPath = index == -1 ? new LinkedList<Point>()
          : newLinkedList(inputP.subList(0, index));
      final int originalSize = newPath.size();
      mp = super.doFollowPath(object, newPath, time);
View Full Code Here


    final MovingRoadUser truck = new TrivialRoadUser();
    rm.addObjectAt(truck, t.get(0));
    final double len = pathLength(t);
    // speed of trivial truck is 1 len per hour thus we need to travel 'len'
    // hours
    final MoveProgress progress = rm.followPath(
        truck,
        new LinkedList<Point>(t),
        TimeLapseFactory.create(NonSI.HOUR, 0,
            DoubleMath.roundToLong(len, RoundingMode.CEILING)));
    assertEquals(len, progress.distance.getValue(), EPSILON);
View Full Code Here

TOP

Related Classes of rinde.sim.core.model.road.MoveProgress

Copyright © 2018 www.massapicom. 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.