com.esri.arcgis.datasourcesfile
Class SMTripPlanSettings

java.lang.Object
  extended by com.esri.arcgis.datasourcesfile.SMTripPlanSettings
All Implemented Interfaces:
ISMTripPlanSettings, com.esri.arcgis.interop.RemoteObjRef, Serializable

public class SMTripPlanSettings
extends Object
implements com.esri.arcgis.interop.RemoteObjRef, ISMTripPlanSettings

The object that controls trip plan settings.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

See Also:
Serialized Form

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

SMTripPlanSettings

public SMTripPlanSettings(Object obj)
                   throws IOException
Construct a SMTripPlanSettings using a reference to such an object returned from ArcGIS Engine or Server. This is semantically equivalent to casting obj to SMTripPlanSettings.
Casting to this class from the return value of a method will not work, as this class represents an abstract class in ArcObjects.
*
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

Throws:
IOException - if there are interop problems SMTripPlanSettings theSMTripPlanSettings = (SMTripPlanSettings) obj;
Method Detail

equals

public boolean equals(Object o)
Compare this object with another

Overrides:
equals in class Object

hashCode

public int hashCode()
the hashcode for this object

Overrides:
hashCode in class Object

isTripPlanningEnable

public boolean isTripPlanningEnable()
                             throws IOException,
                                    AutomationException
Indicates whether trip planning is enabled.

Description

Reads the value which enables trip planning during the route finding.

Remarks

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.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
isTripPlanningEnable in interface ISMTripPlanSettings
Returns:
The pVal
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setTripPlanningEnable

public void setTripPlanningEnable(boolean pVal)
                           throws IOException,
                                  AutomationException
Indicates whether trip planning is enabled.

Description

Sets the enabled value of the trip planning during the route finding.

Remarks

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.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
setTripPlanningEnable in interface ISMTripPlanSettings
Parameters:
pVal - The pVal (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getTripStart

public Date getTripStart()
                  throws IOException,
                         AutomationException
The start date of the trip.

Description

Returns the departure time for the first day of travel.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
getTripStart in interface ISMTripPlanSettings
Returns:
The pVal
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setTripStart

public void setTripStart(Date pVal)
                  throws IOException,
                         AutomationException
The start date of the trip.

Description

Sets the departure time for the first day of travel.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
setTripStart in interface ISMTripPlanSettings
Parameters:
pVal - The pVal (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getDayDriveStart

public Date getDayDriveStart()
                      throws IOException,
                             AutomationException
Time from midnight when driving must start every day.

Description

Returns the departure time starting with day two.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
getDayDriveStart in interface ISMTripPlanSettings
Returns:
The pVal
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setDayDriveStart

public void setDayDriveStart(Date pVal)
                      throws IOException,
                             AutomationException
Time from midnight when driving must start every day.

Description

Sets the departure time starting with day two.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
setDayDriveStart in interface ISMTripPlanSettings
Parameters:
pVal - The pVal (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getDayDriveEnd

public Date getDayDriveEnd()
                    throws IOException,
                           AutomationException
Time from midnight when driving must stop every day.

Description

Returns the time when driving must end everyday.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
getDayDriveEnd in interface ISMTripPlanSettings
Returns:
The pVal
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setDayDriveEnd

public void setDayDriveEnd(Date pVal)
                    throws IOException,
                           AutomationException
Time from midnight when driving must stop every day.

Description

Sets the time when driving must end everyday.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
setDayDriveEnd in interface ISMTripPlanSettings
Parameters:
pVal - The pVal (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getDriveFlexibility

public short getDriveFlexibility()
                          throws IOException,
                                 AutomationException
Amount of driving time allowed after the DayDriveEnd time is reached.

Description

Returns the time (in minutes) that driving is allowed after the Drive End Time.

Remarks

DriveFlexibility sets an additional time interval (in minutes) after drive day end that may be spent to reach the stop.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
getDriveFlexibility in interface ISMTripPlanSettings
Returns:
The pVal
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setDriveFlexibility

public void setDriveFlexibility(short pVal)
                         throws IOException,
                                AutomationException
Amount of driving time allowed after the DayDriveEnd time is reached.

Description

Sets the time (in minutes) that driving is allowed after the Drive End Time.

Remarks

DriveFlexibility sets an additional time interval (in minutes) after drive day end that may be spent to reach the stop.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
setDriveFlexibility in interface ISMTripPlanSettings
Parameters:
pVal - The pVal (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

isRestBreaksEnable

public boolean isRestBreaksEnable()
                           throws IOException,
                                  AutomationException
Indicates whether periodic rest breaks are enabled.

Description

Returns the periodic rest breaks property that the route may require during the drive day.

Remarks

Sets the RestBreaksEnable property to True if you want to have periodic rest breaks. You can set the rest duration using the RestDuration property.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
isRestBreaksEnable in interface ISMTripPlanSettings
Returns:
The pVal
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setRestBreaksEnable

public void setRestBreaksEnable(boolean pVal)
                         throws IOException,
                                AutomationException
Indicates whether periodic rest breaks are enabled.

Description

Sets the periodic rest breaks property that the route may require during the drive day.

Remarks

Sets the RestBreaksEnable property to True if you want to have periodic rest breaks. You can set the rest duration using the RestDuration property.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
setRestBreaksEnable in interface ISMTripPlanSettings
Parameters:
pVal - The pVal (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getRestDuration

public short getRestDuration()
                      throws IOException,
                             AutomationException
The duration of rest breaks in minutes.

Description

Returns the duration of the rest break in minutes.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
getRestDuration in interface ISMTripPlanSettings
Returns:
The pVal
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setRestDuration

public void setRestDuration(short pVal)
                     throws IOException,
                            AutomationException
The duration of rest breaks in minutes.

Description

Sets the duration of the rest break in minutes.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
setRestDuration in interface ISMTripPlanSettings
Parameters:
pVal - The pVal (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getDriveBetweenRest

public short getDriveBetweenRest()
                          throws IOException,
                                 AutomationException
Driving time between rest breaks in minutes.

Description

Returns the amount of time (in minutes) to drive between rest breaks.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
getDriveBetweenRest in interface ISMTripPlanSettings
Returns:
The pVal
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setDriveBetweenRest

public void setDriveBetweenRest(short pVal)
                         throws IOException,
                                AutomationException
Driving time between rest breaks in minutes.

Description

Sets the amount of time (in minutes) to drive between rest breaks.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
setDriveBetweenRest in interface ISMTripPlanSettings
Parameters:
pVal - The pVal (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.