com.groundwork.collage.model
Interface CollageTrend


public interface CollageTrend

Author:
rdandridge

Method Summary
 double getAverageAvailability()
          Returns the average amount of time that the Host/HostGroup/Service has been unavailable.
 java.util.Collection getDataPoints()
          Provides access to the datapoints that were used in calculating the trend
 int getTrend()
          Returns the calculated trend.
 void initialize(java.util.Collection points)
          Initializes this object.
 

Method Detail

getDataPoints

public java.util.Collection getDataPoints()
Provides access to the datapoints that were used in calculating the trend

Returns:
the Collection of datapoints used to calculate the trend

getTrend

public int getTrend()
Returns the calculated trend.

Returns:
The calculated trend: -1 = DOWN, 0 = FLAT, and 1 = UP.

getAverageAvailability

public double getAverageAvailability()
Returns the average amount of time that the Host/HostGroup/Service has been unavailable. TODO: Should this return the positive instead?

Returns:
The calculated value representing the average amount of time the Host/HostGroup/Service has been unavailable.

initialize

public void initialize(java.util.Collection points)
                throws CollageTrendInsufficientDataPointsException,
                       CollageTrendUnsupportedDataPointObject
Initializes this object. Causes average and trend to be calculated.

Parameters:
points - The collection data points to be used in the average and trend calculation.
Throws:
CollageTrendInsufficientDataPointsException
CollageTrendUnsupportedDataPointObject


Copyright © 2005 IT Groundwork. All Rights Reserved.