|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectRouteList
class RouteList
"RouteList" is a singly linked list class. It uses the 'node' class for items in the list.
Field Summary | |
---|---|
(package private) RouteNode[] |
array
|
(package private) int |
length
|
(package private) RouteNode |
start
|
Constructor Summary | |
---|---|
RouteList()
|
Method Summary | |
---|---|
(package private) boolean |
anneal(double temp,
int nlimit,
int glimit,
boolean fix_ends)
"anneal( double, int, int, boolean )" performs the simulated annealing algorithm. |
(package private) RouteList |
duplicate()
"duplicate()" creates a copy of this linked list |
(package private) RouteNode |
get_item(int i)
"get_item( int )" finds the indexed item in the list. |
(package private) int |
get_length()
"get_length" is for access to length of list. |
(package private) double |
get_route_length()
"get_route_length()" computes the total path length for the list |
(package private) void |
init_llist()
"init_llist()" creates an array for fast lookup of nodes. |
(package private) void |
insert(int x,
int y,
int i)
"insert( int, int, int )" appends a new node to the list. |
(package private) static int |
randint(int beg,
int end)
"randint( int, int )" generate a random integer in the range [beg...end] |
(package private) void |
replace(RouteList from)
"replace( llist )" copies another list into this linked list |
(package private) void |
swap(int i1,
int i2)
"swap( int, int )" exchanges two items in the list by swapping values. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
RouteNode start
int length
RouteNode[] array
Constructor Detail |
---|
RouteList()
Method Detail |
---|
RouteNode get_item(int i)
void init_llist()
int get_length()
void insert(int x, int y, int i)
RouteList duplicate()
void replace(RouteList from)
void swap(int i1, int i2)
static int randint(int beg, int end)
boolean anneal(double temp, int nlimit, int glimit, boolean fix_ends)
double get_route_length()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |