Examples of Pathfinder


Examples of com.pointcliki.dizgruntled.utils.PathFinder

    fGrunt.movement().move(xy);
    fGrunt.state(GruntState.MOVING);
  }

  public boolean start() {
    PathFinder finder = new PathFinder(fGrunt.levelScene());
    fPath = finder.calculate(fGrunt.getTile(), fTarget, 1000);
    fPathIndex = 1;
    return fPath != null;
  }
View Full Code Here

Examples of com.pointcliki.dizgruntled.utils.PathFinder

  }

  public boolean start() {
    if (fGrunt.getTile().adjacent(fTarget)) return true;
   
    PathFinder finder = new PathFinder(fGrunt.levelScene());
    fPath = finder.calculate(fGrunt.getTile(), fTarget, 1000);
   
    // Remove the last tile as we don't want to walk onto the tile
    if (fPath != null) fPath.remove(fPath.size() - 1);
   
    fPathIndex = 1;
View Full Code Here

Examples of lejos.robotics.proposal.PathFinder

    // Make random moves until we know where we are
    Pose start = localize();
 
    // Find a route home
    Pose home = new Pose(50, 300, -90);
    PathFinder pf = new MapPathFinder(map, readings);
    PoseController pc = new  ArcPoseController(pilot, mcl);
   
    System.out.println("Located: (" + (int) start.getX() + "," + (int) start.getY() + ")");
   
    // Go home
    try {
      Collection<WayPoint> route = pf.findRoute(start, home);
     
      for(WayPoint wp: route) {
        System.out.println("Go to (" + (int) wp.x + "," + (int) wp.y + ")");
        Pose pose = pc.goTo(wp);
        goodEstimate(pose); // Just for diagnostics
View Full Code Here

Examples of logisticspipes.routing.pathfinder.PathFinder

    CoreRoutedPipe thisPipe = getPipe();
    if (thisPipe == null) return false;
    HashMap<CoreRoutedPipe, ExitRoute> adjacent;
    List<Pair<ILogisticsPowerProvider,List<IFilter>>> power;
    List<Pair<ISubSystemPowerProvider,List<IFilter>>> subSystemPower;
    PathFinder finder = new PathFinder(thisPipe.container, Configs.LOGISTICS_DETECTION_COUNT, Configs.LOGISTICS_DETECTION_LENGTH);
    power = finder.powerNodes;
    subSystemPower = finder.subPowerProvider;
    adjacent = finder.result;
   
    for(CoreRoutedPipe pipe : adjacent.keySet()) {
View Full Code Here

Examples of micdoodle8.mods.galacticraft.api.transmission.grid.Pathfinder

                {
                    for (final TileEntity connectedBlockB : connectedBlocks)
                    {
                        if (connectedBlockA != connectedBlockB && connectedBlockB instanceof INetworkConnection)
                        {
                            Pathfinder finder = new PathfinderChecker(((TileEntity) splitPoint).getWorldObj(), (INetworkConnection) connectedBlockB, NetworkType.OXYGEN, splitPoint);
                            finder.init(new BlockVec3(connectedBlockA));

                            if (finder.results.size() > 0)
                            {
                                /**
                                 * The connections A and B are still intact
View Full Code Here

Examples of org.corrib.s3b.sscf.tools.PathFinder

    for(ChangeBean change:changes)
    {
      List<ChangeLogBean> results = new ArrayList<ChangeLogBean>();
     
      //get paths
      PathFinder pf = PathFinder.getInstance(dirUri, false);
     
      //changed element will be only once
      results.add(new ChangeLogBean(this.dirUri,0));
     
      Map<String, Set<List<String>>> paths = pf.getAllPaths();
     
      //generate list of changes
      Set<String> mboxes = paths.keySet();
     
      for(String mbox:mboxes)
View Full Code Here

Examples of org.corrib.s3b.sscf.tools.PathFinder

    //String query = SscfRdfQuery.RDF_FILTER_PARENTS_BY_URI.toString();
   
    //QueryResultsTable results = SesameDbFace.getDbFace().performTableQuery(query,
    //  uri,S3B_SSCF.isIn);
   
    PathFinder pf = PathFinder.getInstance(uri,withRecom);
   
    //get found paths returns the result without recommendations
    int result = pf.getFoundPaths();
    //add recommendations, but only for the person which invoked the question
    // it is because others do not see the person's recommendations
    if(withRecom&&person!=null&&!"".equals(person))
      result+=pf.recommendationsCount(person);
   
    return result;
 
View Full Code Here

Examples of org.freerealm.map.PathFinder

     */
    public CommandResult execute(Realm realm) {
        if (unit.getCoordinate().equals(coordinate)) {
            return new CommandResult(CommandResult.RESULT_OK, "");
        }
        PathFinder pathFinder = realm.getPathFinder();
        if (pathFinder == null) {
            return new CommandResult(CommandResult.RESULT_ERROR, "PathFinder for realm is null.");
        }
        Path path = pathFinder.findPath(unit, coordinate, true);
        if (path == null) {
            String errorMessage = "There is not any path from unit's current location to target tile\n";
            errorMessage = errorMessage + "Units location : " + unit.getCoordinate();
            errorMessage = errorMessage + " Target coordinate :" + coordinate;
            return new CommandResult(CommandResult.RESULT_ERROR, errorMessage);
View Full Code Here

Examples of org.freerealm.map.PathFinder

     */
    public CommandResult execute(Realm realm) {
        if (unit.getCoordinate().equals(coordinate)) {
            return new CommandResult(CommandResult.RESULT_OK, "");
        }
        PathFinder pathFinder = realm.getPathFinder();
        if (pathFinder == null) {
            return new CommandResult(CommandResult.RESULT_ERROR, "PathFinder for realm is null.");
        }
        Path path = pathFinder.findPath(unit, coordinate, false);
        if (path == null) {
            String errorMessage = "There is not any path from unit's current location to target tile\n";
            errorMessage = errorMessage + "Units location : " + unit.getCoordinate();
            errorMessage = errorMessage + " Target coordinate :" + coordinate;
            return new CommandResult(CommandResult.RESULT_ERROR, errorMessage);
View Full Code Here

Examples of org.openbel.framework.api.PathFinder

    @Override
    public List<SimplePath> findPaths(final Kam kam,
            final List<KamNode> sources,
            final List<KamNode> targets, final int maxSearchDepth)
            throws PathFindServiceException {
        final PathFinder pathFinder = new BasicPathFinder(kam);

        final Kam.KamNode[] sourceKamNodes =
                convert(kam, sources);

        final Kam.KamNode[] targetKamNodes =
                convert(kam, targets);

        final org.openbel.framework.api.SimplePath[] paths = pathFinder
                .findPaths(sourceKamNodes, targetKamNodes);

        final List<SimplePath> wsSimplePaths = new ArrayList<SimplePath>(
                paths.length);
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.