com.esri.arcgis.server
Class ServerStatisticsArray

java.lang.Object
  extended by com.esri.arcgis.server.ServerStatisticsArray
All Implemented Interfaces:
com.esri.arcgis.interop.RemoteObjRef, IServerTimeRange, IDoubleArray, Serializable

public class ServerStatisticsArray
extends Object
implements com.esri.arcgis.interop.RemoteObjRef, IDoubleArray, IServerTimeRange

The ServerStatisticsArray object which returns an array of a specific statistic over a range of time periods.

Product Availability

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

See Also:
Serialized Form

Constructor Summary
ServerStatisticsArray(Object obj)
          Construct a ServerStatisticsArray using a reference to such an object returned from ArcGIS Engine or Server.
 
Method Summary
 void add(double element)
          Adds an element to the array.
 boolean equals(Object o)
          Compare this object with another
 int getCount()
          The number of elements in the array.
 double getElement(int index)
          An element from the array.
 Date getEndTime()
          The end time for the period that the statistics represent.
 Date getStartTime()
          The start time for the period that the statistics represent.
 int hashCode()
          the hashcode for this object
 void insert(int index, double element)
          Inserts an element to the array.
 void remove(int index)
          Removes an element from the array.
 void removeAll()
          Removes all elements from the array.
 void setElement(int index, double pElement)
          An element from the array.
 
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

ServerStatisticsArray

public ServerStatisticsArray(Object obj)
                      throws IOException
Construct a ServerStatisticsArray using a reference to such an object returned from ArcGIS Engine or Server. This is semantically equivalent to casting obj to ServerStatisticsArray.
Casting to this class from the return value of a method will not work, as this class represents an abstract class in ArcObjects.
*
ServerStatisticsArray o = (ServerStatisticsArray)obj; // will not work

ServerStatisticsArray o = new ServerStatisticsArray(obj); // Use this constructor instead
* @param obj an object returned from ArcGIS Engine or Server

Throws:
IOException - if there are interop problems ServerStatisticsArray theServerStatisticsArray = (ServerStatisticsArray) 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

getCount

public int getCount()
             throws IOException,
                    AutomationException
The number of elements in the array.

Description

Returns the number of elements in the array.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
getCount in interface IDoubleArray
Returns:
The pCount
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

remove

public void remove(int index)
            throws IOException,
                   AutomationException
Removes an element from the array.

Description

Removes the element at the specified index from the array. The element at the beginning or the array has an index of 0, and the element at the end of the array has in index of Count - 1.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

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

removeAll

public void removeAll()
               throws IOException,
                      AutomationException
Removes all elements from the array.

Description

Removes all of the elements from the array.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
removeAll in interface IDoubleArray
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getElement

public double getElement(int index)
                  throws IOException,
                         AutomationException
An element from the array.

Product Availability

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

Specified by:
getElement in interface IDoubleArray
Parameters:
index - The index (in)
Returns:
The pElement
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setElement

public void setElement(int index,
                       double pElement)
                throws IOException,
                       AutomationException
An element from the array.

Product Availability

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

Specified by:
setElement in interface IDoubleArray
Parameters:
index - The index (in)
pElement - The pElement (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

add

public void add(double element)
         throws IOException,
                AutomationException
Adds an element to the array.

Description

Adds the element to the end of the array.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

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

insert

public void insert(int index,
                   double element)
            throws IOException,
                   AutomationException
Inserts an element to the array.

Description

Adds the element to the array at the specified index. The element at the beginning or the array has an index of 0, and the element at the end of the array has in index of Count - 1.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
insert in interface IDoubleArray
Parameters:
index - The index (in)
element - The element (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getStartTime

public Date getStartTime()
                  throws IOException,
                         AutomationException
The start time for the period that the statistics represent.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
getStartTime in interface IServerTimeRange
Returns:
The pTime
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getEndTime

public Date getEndTime()
                throws IOException,
                       AutomationException
The end time for the period that the statistics represent.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
getEndTime in interface IServerTimeRange
Returns:
The pTime
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.