|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.adf.web.ags.data.AGSNAFunctionality
public class AGSNAFunctionality
Represents the Network Analyst routing capability of the ArcGIS Server.
Field Summary | |
---|---|
protected GraphicElement |
barrierElement
Stores the Barrier Geometry and Symbol. |
static String |
FUNCTIONALITY_NAME
The name used to identify the Network Analyst functionality. |
protected GraphicElement |
routeElement
Stores the Route Geometry and Symbol. |
protected GraphicElement |
stopsElement
Stores the Stop Geometry and Symbol. |
static double |
ZOOM_TO_FACTOR
The default zoom to factor. |
Constructor Summary | |
---|---|
AGSNAFunctionality()
|
Method Summary | |
---|---|
void |
addBarrier(WebPoint point)
Adds the barrier based on the specified point. |
void |
addStop(String stopName,
WebPoint point,
String routeName)
Adds a stop at the specified location to the route layer. |
void |
addStop(WebPoint point)
Adds the stop in route network analyst layer based on the specified point |
void |
addStop(WebPoint point,
String routeName)
Adds the stop in route network analyst layer based on the specified point and route name |
void |
addStops(ArrayList<? extends WebPoint> routeStops,
String routeName)
Adds the list of stops to the network analyst routing layer. |
void |
addStops(ArrayList<String> stopNames,
ArrayList<? extends WebPoint> routeStops,
String routeName)
Adds the list of stops and stop names to the route layer. |
void |
clearBarriers()
Clear the Barrier(s) from the WebGraphics Layer as well as from the route parameter. |
void |
clearRoute()
Clear the Route from the WebGraphics Layer. |
void |
clearStops()
Clear the Stop(s) from the WebGraphics Layer as well as from the route parameter. |
void |
destroyFunctionality()
The cleanup chores (such as releasing held resources) for the functionality must be performed in this method. |
WebTrueTypeMarkerSymbol |
getBarrierSymbol()
Returns the default barrier symbol associated with this functionality. |
String |
getDefaultNALayerName()
Returns the default network analyst layer name associated with this functionality. |
GISResource |
getResource()
Returns the GISResource associated with this functionality. |
com.esri.arcgisws.NAServerRouteParams |
getRouteParams()
Returns the associated route parameters with this functionality. |
WebSimpleLineSymbol |
getRouteSymbol()
Returns the default route symbol associated with this functionality. |
WebTrueTypeMarkerSymbol |
getStopSymbol()
Returns the default stop symbol associated with this functionality. |
void |
initFunctionality(GISResource resource)
Initializes an instance of the network analyst functionality for this resource. |
void |
setBarrierSymbol(WebTrueTypeMarkerSymbol barrierSymbol)
Sets the default barrier symbol which is used for drawing barrier(s) in the map as a Web Graphics. |
void |
setDefaultNALayerName(String defaultNALayerName)
Sets the default network analyst layer name in which the routing analysis should be performed. |
void |
setRouteSymbol(WebSimpleLineSymbol routeSymbol)
Sets the default route symbol which is used for drawing route(s) in the map as a Web Graphics. |
void |
setStopSymbol(WebTrueTypeMarkerSymbol stopSymbol)
Sets the default stop symbol which is used for drawing stop(s) in the map as a Web Graphics. |
AGSTraversalResult[] |
solve()
Perform network routing analysis based on the input solve parameters. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String FUNCTIONALITY_NAME
public static final double ZOOM_TO_FACTOR
protected GraphicElement routeElement
protected GraphicElement stopsElement
protected GraphicElement barrierElement
Constructor Detail |
---|
public AGSNAFunctionality()
Method Detail |
---|
public void initFunctionality(GISResource resource)
initFunctionality
in interface GISFunctionality
resource
- the GISResource
that this functionality supportsGISResource.init(WebContext)
public GISResource getResource()
GISFunctionality
Returns the GISResource
associated with this functionality.
The resource passed to GISFunctionality.initFunctionality(GISResource)
is maintained as a class variable and is accessible
through this method.
getResource
in interface GISFunctionality
GISResource
associated with this functionalitypublic void destroyFunctionality()
GISFunctionality
The cleanup chores (such as releasing held resources) for the functionality must be performed in this method. This
method is called by the GISResource
when the resource itself is being destroyed.
The functionality is no longer usable after this method has been called.
destroyFunctionality
in interface GISFunctionality
GISResource.destroy()
public void addStop(WebPoint point)
point
- the point geometry in which the stop to be added.public void addStop(WebPoint point, String routeName)
point
- the point geometry in which the stop to be added.routeName
- the route name.public void addStop(String stopName, WebPoint point, String routeName)
stopName
- the stop name.point
- the point geometry in which the stop to be added.routeName
- the name of the route.public void addStops(ArrayList<? extends WebPoint> routeStops, String routeName)
routeStops
- the list of WebPoint
objects representing stops.routeName
- the route name.public void addStops(ArrayList<String> stopNames, ArrayList<? extends WebPoint> routeStops, String routeName)
stopNames
- the string list of stop names.routeStops
- the list of WebPoint
objects representing stops.routeName
- the route name.public void addBarrier(WebPoint point)
point
- the point geometry.public void clearStops()
public void clearBarriers()
public void clearRoute()
public AGSTraversalResult[] solve()
public void setStopSymbol(WebTrueTypeMarkerSymbol stopSymbol)
stopSymbol
- the default stop symbol.public void setBarrierSymbol(WebTrueTypeMarkerSymbol barrierSymbol)
barrierSymbol
- the default barrier symbol.public void setRouteSymbol(WebSimpleLineSymbol routeSymbol)
routeSymbol
- the default route symbol.public void setDefaultNALayerName(String defaultNALayerName)
defaultNALayerName
- the default network analyst layer name.public WebTrueTypeMarkerSymbol getStopSymbol()
public WebTrueTypeMarkerSymbol getBarrierSymbol()
public WebSimpleLineSymbol getRouteSymbol()
public String getDefaultNALayerName()
public com.esri.arcgisws.NAServerRouteParams getRouteParams()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |