edu.nrao.sss.model.resource
Class BasebandCollectionEvent

java.lang.Object
  extended by java.util.EventObject
      extended by edu.nrao.sss.model.resource.BasebandCollectionEvent
All Implemented Interfaces:
Serializable

public class BasebandCollectionEvent
extends EventObject

An event that indicates a collection of CorrelatorBaseband has been changed. Note that this event says nothing about what may or may not have changed about the basebands within the collection. It is concerned with the collection itself and whether any basebands have left or joined the collection of interest.

Version Info:

$Revision: 1107 $
$Date: 2008-02-15 16:50:27 -0700 (Fri, 15 Feb 2008) $
$Author: dharland $ (last person to modify)

Since:
2008-02-14
Author:
David M. Harland
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
BasebandCollectionEvent(Object source, Collection<CorrelatorBaseband> basebandsAdded, Collection<CorrelatorBaseband> basebandsRemoved)
          Creates a new event.
 
Method Summary
 Collection<CorrelatorBaseband> getBasebandsAdded()
          Returns the basebands that were added as a result of this event.
 Collection<CorrelatorBaseband> getBasebandsRemoved()
          Returns the basebands that were removed as a result of this event.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BasebandCollectionEvent

public BasebandCollectionEvent(Object source,
                               Collection<CorrelatorBaseband> basebandsAdded,
                               Collection<CorrelatorBaseband> basebandsRemoved)
Creates a new event.

Method Detail

getBasebandsAdded

public Collection<CorrelatorBaseband> getBasebandsAdded()
Returns the basebands that were added as a result of this event. The returned collection is a copy of the one held internally by this event. It may be empty if no basebands were added, but it will never be null.

Returns:
the basebands that were added as a result of this event.

getBasebandsRemoved

public Collection<CorrelatorBaseband> getBasebandsRemoved()
Returns the basebands that were removed as a result of this event. The returned collection is a copy of the one held internally by this event. It may be empty if no basebands were removed, but it will never be null.

Returns:
the basebands that were moved as a result of this event.


Copyright © 2009. All Rights Reserved.