org.tfe.console
Class AlertCollection

java.lang.Object
  |
  +--org.tfe.console.AlertCollection

public class AlertCollection
extends java.lang.Object


Constructor Summary
AlertCollection(Alert a)
          Creates new AlertCollection
 
Method Summary
 void addAlert(Alert a)
          Adds an Alert to the collection.
 int getAlertCount()
          Retrieves the number of Alerts in the collection
 AlertList getAlertList()
          Retrieves the AlertList associated with this collection.
 java.lang.String getEndDate()
          Retrieves the latest date associated with the collection.
 int getID()
          Retrieves the ID number of the collection.
 java.lang.String getSourceIP()
          Retrieves the Source IP address associated with the collection.
 java.lang.String getStartDate()
          Retrieves the earliest date associated with the collection.
 java.lang.String[] toSummary()
          Retrieves a summary of the collection.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AlertCollection

public AlertCollection(Alert a)
Creates new AlertCollection

Method Detail

addAlert

public void addAlert(Alert a)
Adds an Alert to the collection.

Parameters:
a - the Alert to be added to the collection

getAlertCount

public int getAlertCount()
Retrieves the number of Alerts in the collection

Returns:
the number of Alerts in the collection

getStartDate

public java.lang.String getStartDate()
Retrieves the earliest date associated with the collection.

Returns:
a String representation of the earliest date in the collection

getEndDate

public java.lang.String getEndDate()
Retrieves the latest date associated with the collection.

Returns:
a String representation of the latest date in the collection

getSourceIP

public java.lang.String getSourceIP()
Retrieves the Source IP address associated with the collection.

Returns:
a String representation of the Source IP address of the collection

getID

public int getID()
Retrieves the ID number of the collection.

Returns:
the collection ID

toSummary

public java.lang.String[] toSummary()
Retrieves a summary of the collection. This is useful for displaying the collection in a table.

Returns:
a string array summarizing key information about the collection

getAlertList

public AlertList getAlertList()
Retrieves the AlertList associated with this collection.

Returns:
AlertList of Alerts with the same Collection ID.