com.esri.core.tasks.ags.na
Class StopGraphic

java.lang.Object
  extended by com.esri.core.map.Graphic
      extended by com.esri.core.tasks.ags.na.StopGraphic
All Implemented Interfaces:
Serializable

public class StopGraphic
extends Graphic

Class providing some convenient methods for setting attributes of a Graphic that are related to routing.

Since:
10.1.1
See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.esri.core.map.Graphic
attributes
 
Constructor Summary
StopGraphic(Geometry geometry)
          Constructor taking the geometry and symbol used for the graphic
StopGraphic(Geometry geometry, Map<String,Object> attributes)
          Constructor taking the geometry, symbol, and list of attributes for the graphic
StopGraphic(Graphic graphic)
          Constructor taking a Graphic and creating a StopGraphic from it
 
Method Summary
 String getName()
          Gets the name of the stop
 String getRouteName()
          Gets the name of the route this stop belongs to
 int getSequence()
          Gets the sequence in which this stop should be visited (e.g. a value of 2 means this stop is visited second)
 long getTimeWindowEnd()
          Gets the end of the time window for visiting this stop (e.g. the latest time at which we should arrive)
 long getTimeWindowStart()
          Gets the start of the time window for visiting this stop (e.g. the earliest time at which we should arrive)
 void setName(String name)
          Sets the name of the stop
 void setRouteName(String routeName)
          Sets the name of the route this stop belongs to
 void setSequence(int sequence)
          Sets the sequence in which this stop should be visited (e.g. a value of 2 means this stop is visited second)
 void setTimeWindowEnd(long timeWindowEnd)
          Sets the end of the time window for visiting this stop (e.g. the latest time at which we should arrive)
 void setTimeWindowStart(long timeWindowStart)
          Sets the start of the time window for visiting this stop (e.g. the earliest time at which we should arrive)
 
Methods inherited from class com.esri.core.map.Graphic
fromJson, getAttributeNames, getAttributes, getAttributeValue, getDrawOrder, getGeometry, getInfoTemplate, getSpatialReference, getSymbol, getUid
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StopGraphic

public StopGraphic(Geometry geometry)
Constructor taking the geometry and symbol used for the graphic

Parameters:
geometry -
symbol -
Since:
10.1.1

StopGraphic

public StopGraphic(Geometry geometry,
                   Map<String,Object> attributes)
Constructor taking the geometry, symbol, and list of attributes for the graphic

Parameters:
geometry -
symbol -
attributes -
Since:
10.1.1

StopGraphic

public StopGraphic(Graphic graphic)
Constructor taking a Graphic and creating a StopGraphic from it

Parameters:
graphic -
Since:
10.1.1
Method Detail

getName

public String getName()
Gets the name of the stop

Returns:
the name of the stop
Since:
10.1.1

setName

public void setName(String name)
Sets the name of the stop

Parameters:
name - the name of the stop
Since:
10.1.1

getRouteName

public String getRouteName()
Gets the name of the route this stop belongs to

Returns:
the name of the route this stop belongs to
Since:
10.1.1

setRouteName

public void setRouteName(String routeName)
Sets the name of the route this stop belongs to

Parameters:
routeName - the name of the route this stop belongs to
Since:
10.1.1

getSequence

public int getSequence()
Gets the sequence in which this stop should be visited (e.g. a value of 2 means this stop is visited second)

Returns:
the sequence in which this stop should be visited
Since:
10.1.1

setSequence

public void setSequence(int sequence)
Sets the sequence in which this stop should be visited (e.g. a value of 2 means this stop is visited second)

Parameters:
sequence - the sequence in which this stop should be visited
Since:
10.1.1

getTimeWindowStart

public long getTimeWindowStart()
Gets the start of the time window for visiting this stop (e.g. the earliest time at which we should arrive)

Returns:
the start of the time window for visiting this stop
Since:
10.1.1

setTimeWindowStart

public void setTimeWindowStart(long timeWindowStart)
Sets the start of the time window for visiting this stop (e.g. the earliest time at which we should arrive)

Parameters:
timeWindowStart - the start of the time window for visiting this stop
Since:
10.1.1

getTimeWindowEnd

public long getTimeWindowEnd()
Gets the end of the time window for visiting this stop (e.g. the latest time at which we should arrive)

Returns:
the end of the time window for visiting this stop
Since:
10.1.1

setTimeWindowEnd

public void setTimeWindowEnd(long timeWindowEnd)
Sets the end of the time window for visiting this stop (e.g. the latest time at which we should arrive)

Parameters:
timeWindowEnd - the end of the time window for visiting this stop
Since:
10.1.1


Copyright © 2012. All Rights Reserved.