|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.datasourcesfile.SMTripPlanSettings
public class SMTripPlanSettings
The object that controls trip plan settings.
Constructor Summary | |
---|---|
SMTripPlanSettings(Object obj)
Construct a SMTripPlanSettings using a reference to such an object returned from ArcGIS Engine or Server. |
Method Summary | |
---|---|
boolean |
equals(Object o)
Compare this object with another |
Date |
getDayDriveEnd()
Time from midnight when driving must stop every day. |
Date |
getDayDriveStart()
Time from midnight when driving must start every day. |
short |
getDriveBetweenRest()
Driving time between rest breaks in minutes. |
short |
getDriveFlexibility()
Amount of driving time allowed after the DayDriveEnd time is reached. |
short |
getRestDuration()
The duration of rest breaks in minutes. |
Date |
getTripStart()
The start date of the trip. |
int |
hashCode()
the hashcode for this object |
boolean |
isRestBreaksEnable()
Indicates whether periodic rest breaks are enabled. |
boolean |
isTripPlanningEnable()
Indicates whether trip planning is enabled. |
void |
setDayDriveEnd(Date pVal)
Time from midnight when driving must stop every day. |
void |
setDayDriveStart(Date pVal)
Time from midnight when driving must start every day. |
void |
setDriveBetweenRest(short pVal)
Driving time between rest breaks in minutes. |
void |
setDriveFlexibility(short pVal)
Amount of driving time allowed after the DayDriveEnd time is reached. |
void |
setRestBreaksEnable(boolean pVal)
Indicates whether periodic rest breaks are enabled. |
void |
setRestDuration(short pVal)
The duration of rest breaks in minutes. |
void |
setTripPlanningEnable(boolean pVal)
Indicates whether trip planning is enabled. |
void |
setTripStart(Date pVal)
The start date of the trip. |
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 SMTripPlanSettings(Object obj) throws IOException
obj
to SMTripPlanSettings
. *
SMTripPlanSettings o = (SMTripPlanSettings)obj; // will not work
SMTripPlanSettings o = new SMTripPlanSettings(obj); // Use this constructor instead
* @param obj an object returned from ArcGIS Engine or Server
IOException
- if there are interop problems
SMTripPlanSettings theSMTripPlanSettings = (SMTripPlanSettings) obj;
Method Detail |
---|
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public boolean isTripPlanningEnable() throws IOException, AutomationException
Reads the value which enables trip planning during the route finding.
If TripPlanningEnable is set to True then router finds the route and generates directions using all settings made in ISMTripPlanSettings interface. Otherwise no trip planning is performed.
isTripPlanningEnable
in interface ISMTripPlanSettings
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setTripPlanningEnable(boolean pVal) throws IOException, AutomationException
Sets the enabled value of the trip planning during the route finding.
If TripPlanningEnable is set to True then router finds the route and generates directions using all settings made in ISMTripPlanSettings interface. Otherwise no trip planning is performed.
setTripPlanningEnable
in interface ISMTripPlanSettings
pVal
- The pVal (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public Date getTripStart() throws IOException, AutomationException
Returns the departure time for the first day of
travel.
getTripStart
in interface ISMTripPlanSettings
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setTripStart(Date pVal) throws IOException, AutomationException
Sets the departure time for the first day of travel.
setTripStart
in interface ISMTripPlanSettings
pVal
- The pVal (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public Date getDayDriveStart() throws IOException, AutomationException
Returns the departure time starting with day two.
getDayDriveStart
in interface ISMTripPlanSettings
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setDayDriveStart(Date pVal) throws IOException, AutomationException
Sets the departure time starting with day two.
setDayDriveStart
in interface ISMTripPlanSettings
pVal
- The pVal (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public Date getDayDriveEnd() throws IOException, AutomationException
Returns the time when driving must end everyday.
getDayDriveEnd
in interface ISMTripPlanSettings
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setDayDriveEnd(Date pVal) throws IOException, AutomationException
Sets the time when driving must end everyday.
setDayDriveEnd
in interface ISMTripPlanSettings
pVal
- The pVal (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public short getDriveFlexibility() throws IOException, AutomationException
Returns the time (in minutes) that driving is allowed after the Drive End Time.
DriveFlexibility sets an additional time interval (in minutes) after drive day end that may be spent to reach the stop.
getDriveFlexibility
in interface ISMTripPlanSettings
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setDriveFlexibility(short pVal) throws IOException, AutomationException
Sets the time (in minutes) that driving is allowed after the Drive End Time.
DriveFlexibility sets an additional time interval (in minutes) after drive day end that may be spent to reach the stop.
setDriveFlexibility
in interface ISMTripPlanSettings
pVal
- The pVal (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isRestBreaksEnable() throws IOException, AutomationException
Returns the periodic rest breaks property that the route may require during the drive day.
isRestBreaksEnable
in interface ISMTripPlanSettings
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setRestBreaksEnable(boolean pVal) throws IOException, AutomationException
Sets the periodic rest breaks property that the route may require during the drive day.
setRestBreaksEnable
in interface ISMTripPlanSettings
pVal
- The pVal (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public short getRestDuration() throws IOException, AutomationException
Returns the duration of the rest break in minutes.
getRestDuration
in interface ISMTripPlanSettings
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setRestDuration(short pVal) throws IOException, AutomationException
Sets the duration of the rest break in minutes.
setRestDuration
in interface ISMTripPlanSettings
pVal
- The pVal (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public short getDriveBetweenRest() throws IOException, AutomationException
Returns the amount of time (in minutes) to drive between rest breaks.
getDriveBetweenRest
in interface ISMTripPlanSettings
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setDriveBetweenRest(short pVal) throws IOException, AutomationException
Sets the amount of time (in minutes) to drive between rest breaks.
setDriveBetweenRest
in interface ISMTripPlanSettings
pVal
- The pVal (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 |