|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
PATH_ELEMENT
- public interface IPathFuture<PATH_ELEMENT>
Returns a path as the future result of IPathPlanner
computation.
You should read the javadoc for Future
first to know the concept first.
Method Summary | |
---|---|
void |
addFutureListener(IFutureListener<java.util.List<PATH_ELEMENT>> listener)
Adds a listener on a future status (using strong reference). |
java.util.List<PATH_ELEMENT> |
get()
First, see Future.get() . |
java.util.List<PATH_ELEMENT> |
get(long timeout,
java.util.concurrent.TimeUnit unit)
Returns a path from getPathFrom() to getPathTo() . |
PATH_ELEMENT |
getPathFrom()
Where does the path start. |
PATH_ELEMENT |
getPathTo()
Where does the path end. |
FutureStatus |
getStatus()
Current status of the path computation. |
boolean |
isListening(IFutureListener<java.util.List<PATH_ELEMENT>> listener)
Whether some listener is listening on the future. |
void |
removeFutureListener(IFutureListener<java.util.List<PATH_ELEMENT>> listener)
Removes a listener from the future. |
Methods inherited from interface java.util.concurrent.Future |
---|
cancel, isCancelled, isDone |
Method Detail |
---|
java.util.List<PATH_ELEMENT> get()
Future.get()
.
May return null if no such path exist.
Throws some runtime exception if the path could not be computed (exact type of exception depends on the implementor of the interface).
get
in interface java.util.concurrent.Future<java.util.List<PATH_ELEMENT>>
java.util.List<PATH_ELEMENT> get(long timeout, java.util.concurrent.TimeUnit unit)
getPathFrom()
to getPathTo()
. "From" is the first
element of the path, "To" is the last element of the path.
First, see Future.get(long, TimeUnit)
.
May return null if no such path exist.
Throws some runtime exception if the path could not be computed (exact type of exception depends on the implementor of the interface).
get
in interface java.util.concurrent.Future<java.util.List<PATH_ELEMENT>>
PATH_ELEMENT getPathFrom()
PATH_ELEMENT getPathTo()
FutureStatus getStatus()
void addFutureListener(IFutureListener<java.util.List<PATH_ELEMENT>> listener)
listener
- void removeFutureListener(IFutureListener<java.util.List<PATH_ELEMENT>> listener)
listener
- boolean isListening(IFutureListener<java.util.List<PATH_ELEMENT>> listener)
listener
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |