|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.esri.adf.web.ags.tasks.RoutingTask
public class RoutingTask
Constructor Summary | |
---|---|
RoutingTask()
|
Method Summary | |
---|---|
void |
addBarrier(MapEvent event)
|
void |
addStop(MapEvent event)
|
void |
clearBarriers()
|
void |
clearRoute()
|
void |
clearStops()
|
void |
destroy()
The cleaup chores (such as releasing held resources) of attributes of a WebContext should be performed in
this method. |
int |
getAllowUturn()
|
LinkedHashMap<Integer,String> |
getAllowUTurns()
|
TaskInfo |
getTaskInfo()
|
WebContext |
getWebContext()
|
void |
init(WebContext wContext)
The initialization chores of attributes of a WebContext should be performed in this method. |
boolean |
isIgnoreInvalidLoc()
|
void |
setAllowUturn(int allowUturn)
|
void |
setIgnoreInvalidLoc(boolean ignoreInvalidLoc)
|
void |
setTaskInfo(TaskInfo info)
|
void |
setWebContext(WebContext wContext)
|
void |
solve(TaskEvent event)
|
void |
update(WebContext context,
Object arg)
This method is called by the WebContext on its registered WebContextObserver s when users call the
refresh() methods on the context. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RoutingTask()
Method Detail |
---|
public void init(WebContext wContext)
WebContextInitialize
The initialization chores of attributes of a WebContext
should be performed in this method.
Typically this method is called by the WebContext
when the context itself is initialized. It is important
to note that this method is again called by the context when a GISResource
is dynamically added to or
removed from the context. Classes that implement this method should keep this in mind and adapt the method to react
to the callbacks in these circumstances as well.
A WebContext
attribute is usable only after this method has been called.
init
in interface WebContextInitialize
wContext
- WebContext
- the WebContextWebContext.init(WebContext)
,
WebContext.addResource(String, GISResource, int)
,
WebContext.removeResource(GISResource)
public void destroy()
WebContextInitialize
The cleaup chores (such as releasing held resources) of attributes of a WebContext
should be performed in
this method.
Typically this method is called by the WebContext
when the context itself is destroyed.
The WebContext
attribute is unusable after this method has been called.
destroy
in interface WebContextInitialize
WebContext.destroy()
public void update(WebContext context, Object arg)
WebContextObserver
This method is called by the WebContext
on its registered WebContextObserver
s when users call the
refresh()
methods on the context.
To setup an object to be updated by the context, one needs to use the
WebContext.addObserver(WebContextObserver)
to register itself with the context. All
context attributes are wired up to the WebContext
. When users change state on any of
the attributes and need to intimate other attributes of the context to react to the change they call either the
WebContext.refresh()
or WebContext.refresh(Object)
methods. The context in turns calls the WebContextObserver.update(WebContext, Object)
methods on all its registered
observers.
update
in interface WebContextObserver
context
- the WebContext
that has been refreshedarg
- the argument passed to the WebContext
's refresh(arg)
methodWebContext.refresh(Object)
,
WebContext.addObserver(WebContextObserver)
,
WebContext.removeObserver(WebContextObserver)
public WebContext getWebContext()
public void setWebContext(WebContext wContext)
public TaskInfo getTaskInfo()
getTaskInfo
in interface TaskInfoBean
public void setTaskInfo(TaskInfo info)
setTaskInfo
in interface TaskInfoBean
public LinkedHashMap<Integer,String> getAllowUTurns()
public boolean isIgnoreInvalidLoc()
public void setIgnoreInvalidLoc(boolean ignoreInvalidLoc)
public int getAllowUturn()
public void setAllowUturn(int allowUturn)
public void addStop(MapEvent event)
public void addBarrier(MapEvent event)
public void solve(TaskEvent event)
public void clearStops()
public void clearBarriers()
public void clearRoute()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |