Class Nolli

java.lang.Object
  extended by Nolli

public class Nolli
extends java.lang.Object

Nolli plan class; please see: http://nolli.uoregon.edu/ this will explain what you can expect

Version:
: 1.0
Author:
: Richard Schaffranek

Constructor Summary
Nolli(java.lang.Object parent)
          you can only call the constructor from the main part where your setup() method is this is due to the JFileChooser class used; Nolli N = new Nolli(this) code sample in setup
 
Method Summary
 void allWalkable()
          sets all Nodes walkable
 void display()
          call to display buildings
 void displayAll()
          call to display buildings,nodes and connections to screen
 void displayConnections()
          call to display connections
 void displayNodes()
          call to display nodes
 boolean inside(PVector TempV)
           
 Node nearest(PVector pos)
          get the nearest Node to a position
 void network(float sp)
          greates a network of nodes
 ArrayList path(Node N)
           
 ArrayList path(Node S, Node T)
           
 void target(Node N)
          call to set a target for the dijkstra algorithmus; when called the shortest path from every Node to this Node is callculated; this might take a while but can be usefule; please see: http://robotacid.com/ (Documents & Code - Pathfinder Libary)
 void unwalkable(Node N)
           
 boolean wall(Node N1, Node N2)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Nolli

public Nolli(java.lang.Object parent)
you can only call the constructor from the main part where your setup() method is this is due to the JFileChooser class used; Nolli N = new Nolli(this) code sample in setup

Method Detail

target

public void target(Node N)
call to set a target for the dijkstra algorithmus; when called the shortest path from every Node to this Node is callculated; this might take a while but can be usefule; please see: http://robotacid.com/ (Documents & Code - Pathfinder Libary)

Parameters:
N - Node nearest to the target

path

public ArrayList path(Node N)
Returns:
ArrayList of Nodes (path) from this node to the target set befor

path

public ArrayList path(Node S,
                      Node T)
Parameters:
S - starting node of the path
T - target node of the path
Returns:
ArrayList of Nodes (path) from the start to the target

unwalkable

public void unwalkable(Node N)
Parameters:
N - : set this node unwalkable

allWalkable

public void allWalkable()
sets all Nodes walkable


nearest

public Node nearest(PVector pos)
get the nearest Node to a position


network

public void network(float sp)
greates a network of nodes

Parameters:
sp - : minimum distance between the nodes;

wall

public boolean wall(Node N1,
                    Node N2)
Returns:
false if there is a wall between the two nodes

inside

public boolean inside(PVector TempV)
Returns:
true if the given vector is inside a wall

displayAll

public void displayAll()
call to display buildings,nodes and connections to screen


display

public void display()
call to display buildings


displayNodes

public void displayNodes()
call to display nodes


displayConnections

public void displayConnections()
call to display connections