net.sf.taverna.t2.partition
Interface SetModel<ItemType>

Type Parameters:
ItemType - the parameterised type of the set
All Superinterfaces:
java.util.Collection<ItemType>, java.lang.Iterable<ItemType>, java.util.Set<ItemType>
All Known Subinterfaces:
Query<ItemType>
All Known Implementing Classes:
HashSetModel

public interface SetModel<ItemType>
extends java.util.Set<ItemType>

Extension of the java Set interface with the addition of change listener support. Intended to be plugged into the RootPartition class so the partition is synchronized with the set membership.

Author:
Tom Oinn

Method Summary
 void addSetModelChangeListener(SetModelChangeListener<ItemType> listener)
          Add a listener to be notified of change events on the set's membership
 void removeSetModelChangeListener(SetModelChangeListener<ItemType> listener)
          Remove a previously registered change listener
 
Methods inherited from interface java.util.Set
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray
 

Method Detail

addSetModelChangeListener

void addSetModelChangeListener(SetModelChangeListener<ItemType> listener)
Add a listener to be notified of change events on the set's membership

Parameters:
listener -

removeSetModelChangeListener

void removeSetModelChangeListener(SetModelChangeListener<ItemType> listener)
Remove a previously registered change listener

Parameters:
listener -