de.cesr.more.measures
Interface MMeasureSelectorListener

All Known Implementing Classes:
MAbstractMeasureManager, MNetworkMeasureManager, MNodeMeasureManager

public interface MMeasureSelectorListener

This interface needs to be implemented by objects the MeasureChooser interacts with.

Date:
23.06.2008

Method Summary
 Set<MMeasureDescription> getAddableMeasures(MoreNetwork<?,?> network)
          The MeasureChooser calls this method in order to fetch measures that might be added by the user for a (user-)specified network.
 Set<MMeasureDescription> getRemovableMeasures(MoreNetwork<?,?> network)
          The MeasureChooser calls this method in order to fetch measures that might be removed by the user for a (user-)specified network.
 boolean setMeasureBundle(MMeasureBundle bundle, boolean remove)
          This method is invoked every time the user selects a measure at the MeasureChooser
 

Method Detail

setMeasureBundle

boolean setMeasureBundle(MMeasureBundle bundle,
                         boolean remove)
This method is invoked every time the user selects a measure at the MeasureChooser

Parameters:
bundle - the measure bundle that was selected
remove - true if the selected measure shall be removed from this collection
Returns:
true, if the measure could be set (and has not been existing before) or removed (and has been existing)
Date:
10.07.2008

getRemovableMeasures

Set<MMeasureDescription> getRemovableMeasures(MoreNetwork<?,?> network)
The MeasureChooser calls this method in order to fetch measures that might be removed by the user for a (user-)specified network.

Parameters:
network - the network for which removable measure shall be fetched
Returns:
a set of all removable measures
Date:
10.07.2008

getAddableMeasures

Set<MMeasureDescription> getAddableMeasures(MoreNetwork<?,?> network)
The MeasureChooser calls this method in order to fetch measures that might be added by the user for a (user-)specified network. Only returns measures that have not been added before for the given network.

Parameters:
network - the network for which measure to add shall be fetched
Returns:
a set of all measures that may be added
Date:
10.07.2008