com.esri.arcgis.networkanalyst
Class TimeSlice

java.lang.Object
  extended by com.esri.arcgis.networkanalyst.TimeSlice
All Implemented Interfaces:
com.esri.arcgis.interop.RemoteObjRef, ITimeSlice, Serializable

public class TimeSlice
extends Object
implements com.esri.arcgis.interop.RemoteObjRef, ITimeSlice

Time slice class.

Product Availability

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

See Also:
Serialized Form

Constructor Summary
TimeSlice()
          Constructs a TimeSlice using ArcGIS Engine.
TimeSlice(Object obj)
          Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
TimeSlice theTimeSlice = (TimeSlice) obj;
 
Method Summary
 boolean equals(Object o)
          Compare this object with another
static String getClsid()
          getClsid.
 Date getFromDate()
          Time slice left bound.
 Date getToDate()
          Time slice right bound.
 int hashCode()
          the hashcode for this object
 void setFromDate(Date pFrom)
          Time slice left bound.
 void setToDate(Date pTo)
          Time slice right bound.
 
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

TimeSlice

public TimeSlice()
          throws IOException,
                 UnknownHostException
Constructs a TimeSlice using ArcGIS Engine.

Throws:
IOException - if there are interop problems
UnknownHostException - if there are interop problems

TimeSlice

public TimeSlice(Object obj)
          throws IOException
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
TimeSlice theTimeSlice = (TimeSlice) obj;

Construct a TimeSlice using a reference to such an object returned from ArcGIS Engine or Server. This is semantically equivalent to casting obj to TimeSlice.

Parameters:
obj - an object returned from ArcGIS Engine or Server
Throws:
IOException - if there are interop problems
Method Detail

getClsid

public static String getClsid()
getClsid.


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

getFromDate

public Date getFromDate()
                 throws IOException,
                        AutomationException
Time slice left bound.

Product Availability

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

Specified by:
getFromDate in interface ITimeSlice
Returns:
The pFrom
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setFromDate

public void setFromDate(Date pFrom)
                 throws IOException,
                        AutomationException
Time slice left bound.

Product Availability

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

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

getToDate

public Date getToDate()
               throws IOException,
                      AutomationException
Time slice right bound.

Product Availability

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

Specified by:
getToDate in interface ITimeSlice
Returns:
The pTo
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setToDate

public void setToDate(Date pTo)
               throws IOException,
                      AutomationException
Time slice right bound.

Product Availability

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

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