|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.datasourcesfile.SMStop
public class SMStop
The information about route stop.
Constructor Summary | |
---|---|
SMStop()
Constructs a SMStop using ArcGIS Engine. |
|
SMStop(Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. SMStop theSMStop = (SMStop) obj; |
Method Summary | |
---|---|
boolean |
equals(Object o)
Compare this object with another |
static String |
getClsid()
getClsid. |
String |
getDescription()
Descriptive text of the route stop used in driving directions. |
short |
getDuration()
Stop duration in minutes. |
ISMFlag |
getFlag()
The SMFlag object of the stop that describes its geographic location. |
double |
getMinDistanceToTurn()
Minimal allowed distance to turn. |
int |
getStopID()
Numeric identifier of the user defined route stop. |
int |
hashCode()
the hashcode for this object |
boolean |
isEnforceSideOfStreet()
Indicates whether shortest path is restricted when traveling to and from the given stop. |
void |
setDescription(String pVal)
Descriptive text of the route stop used in driving directions. |
void |
setDuration(short pVal)
Stop duration in minutes. |
void |
setEnforceSideOfStreet(boolean pbESS)
Indicates whether shortest path is restricted when traveling to and from the given stop. |
void |
setFlag(ISMFlag pVal)
The SMFlag object of the stop that describes its geographic location. |
void |
setMinDistanceToTurn(double pdDist)
Minimal allowed distance to turn. |
void |
setStopID(int pVal)
Numeric identifier of the user defined route stop. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.esri.arcgis.interop.RemoteObjRef |
---|
getJintegraDispatch, release |
Constructor Detail |
---|
public SMStop() throws IOException, UnknownHostException
IOException
- if there are interop problems
UnknownHostException
- if there are interop problemspublic SMStop(Object obj) throws IOException
SMStop theSMStop = (SMStop) obj;
obj
to SMStop
.
obj
- an object returned from ArcGIS Engine or Server
IOException
- if there are interop problemsMethod Detail |
---|
public static String getClsid()
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public int getStopID() throws IOException, AutomationException
Represents the numeric user-defined stop identifier.
getStopID
in interface ISMStop
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setStopID(int pVal) throws IOException, AutomationException
Sets the numeric user-defined stop identifier.
setStopID
in interface ISMStop
pVal
- The pVal (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getDescription() throws IOException, AutomationException
Returns the description text of the stop.
getDescription
in interface ISMStop
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setDescription(String pVal) throws IOException, AutomationException
Sets the description text of the stop.
setDescription
in interface ISMStop
pVal
- The pVal (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public ISMFlag getFlag() throws IOException, AutomationException
Returns the ISMFlag interface of the stop.
getFlag
in interface ISMStop
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setFlag(ISMFlag pVal) throws IOException, AutomationException
Sets the ISMFlag interface of the stop.
setFlag
in interface ISMStop
pVal
- A reference to a com.esri.arcgis.datasourcesfile.ISMFlag (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public short getDuration() throws IOException, AutomationException
Returns stop duration in minutes.
getDuration
in interface ISMStop
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setDuration(short pVal) throws IOException, AutomationException
Sets stop duration in minutes.
setDuration
in interface ISMStop
pVal
- The pVal (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public double getMinDistanceToTurn() throws IOException, AutomationException
Returns the minimum allowed distance to turn.
This value is used to indicate how SMRouter should handle the first turn of each route leg. The Router generates the shortest path route in a way that the first turn does not appear within the MinDistanceToTurn specified in miles, unless a turn is required to proceed based on the current direction of travel (i.e. road ends, fork in the road, etc.) In the scenario where a turn is required, the route is generated from the street that has the least turn angle from the preceding street. In the case where turn angles are within 10° of each other, these are considered equal turn angles, and the route is generated from the intersection that is being traveled through.
getMinDistanceToTurn
in interface ISMStop
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setMinDistanceToTurn(double pdDist) throws IOException, AutomationException
Sets the minimal allowed distance for a turn.
This value is used to indicate how SMRouter should handle the first turn of each route leg. The Router generates the shortest path route in a way that the first turn does not appear within the MinDistanceToTurn specified in miles, unless a turn is required to proceed based on the current direction of travel (i.e. road ends, fork in the road, etc.) In the scenario where a turn is required, the route is generated from the street that has the least turn angle from the preceding street. In the case where turn angles are within 10° of each other, these are considered equal turn angles, and the route is generated from the intersection that is being traveled through.
setMinDistanceToTurn
in interface ISMStop
pdDist
- The pdDist (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isEnforceSideOfStreet() throws IOException, AutomationException
Enforces street side at the stop. Returns the street side.
If this value is set to true, the shortest path is restricted when traveling to and from the given stop. The restriction is that the shortest path can enter the street from only one end-point and exit from the other, depending on which side of the street the stop is located. If the flag is not set, the shortest path can enter the street in either direction. Unless otherwise specified by the caller, the default value for this flag is false.
Note: If the street is one-way, the shortest path always enters the street in the correct direction.
isEnforceSideOfStreet
in interface ISMStop
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setEnforceSideOfStreet(boolean pbESS) throws IOException, AutomationException
Enforces street side at the stop. Sets the street side.
If this value is set to true, the shortest path is restricted when traveling to and from the given stop. The restriction is that the shortest path can enter the street from only one end-point and exit from the other, depending on which side of the street the stop is located. If the flag is not set, the shortest path can enter the street in either direction. Unless otherwise specified by the caller, the default value for this flag is false.
Note: If the street is one-way, the shortest path always enters the street in the correct direction.
setEnforceSideOfStreet
in interface ISMStop
pbESS
- The pbESS (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |