|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.ObjectConnectionPath
class ConnectionPath
ConnectionPath objects are used in the implementation of Intersection class. Each intersection objects has an array of ConnectionPath. ConnectionPath stores a path from an intersection to another intersection along with according spokes
| Field Summary | |
|---|---|
(package private) Intersection |
a
variable Intersection - destination intersection |
(package private) int |
spoke1
variable spoke1 - the spoke of origin intersection in this path |
(package private) int |
spoke2
variable spoke2 - the spoke of origin intersection in this path |
| Constructor Summary | |
|---|---|
ConnectionPath(Intersection a,
int spoke1,
int spoke2)
Constructor |
|
| Method Summary | |
|---|---|
Intersection |
getIntersection()
Return the destination intersection |
int |
getSpoke1()
Return spoke of origin intersection |
int |
getSpoke2()
Return spoke of destination intersection |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
Intersection a
Intersection - destination intersection
int spoke1
spoke1 - the spoke of origin intersection in this path
int spoke2
spoke2 - the spoke of origin intersection in this path
| Constructor Detail |
|---|
public ConnectionPath(Intersection a,
int spoke1,
int spoke2)
a - destination intersectionspoke1 - the spoke of origin intersection in this pathspoke2 - the spoke of destination intersection in this path| Method Detail |
|---|
public Intersection getIntersection()
public int getSpoke1()
public int getSpoke2()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||