|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.ObjectNolli
public class Nolli
Nolli plan class; please see: http://nolli.uoregon.edu/ this will explain what you can expect
| 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 |
|---|
public Nolli(java.lang.Object parent)
| Method Detail |
|---|
public void target(Node N)
N - Node nearest to the targetpublic ArrayList path(Node N)
public ArrayList path(Node S,
Node T)
S - starting node of the pathT - target node of the path
public void unwalkable(Node N)
N - : set this node unwalkablepublic void allWalkable()
public Node nearest(PVector pos)
public void network(float sp)
sp - : minimum distance between the nodes;
public boolean wall(Node N1,
Node N2)
public boolean inside(PVector TempV)
public void displayAll()
public void display()
public void displayNodes()
public void displayConnections()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||