de.cesr.more.measures
Class MAbstractMeasureManager

java.lang.Object
  extended by de.cesr.more.measures.MAbstractMeasureSupplier
      extended by de.cesr.more.measures.MAbstractMeasureManager
All Implemented Interfaces:
MMeasureSelectorListener, MoreMeasureSupplier
Direct Known Subclasses:
MNetworkMeasureManager, MNodeMeasureManager

public abstract class MAbstractMeasureManager
extends MAbstractMeasureSupplier
implements MMeasureSelectorListener

MORe

Date:
16.11.2010

Field Summary
protected  Set<MoreMeasureManagerListener> listeners
           
protected  Map<MoreNetwork<?,?>,HashMap<MMeasureDescription,MoreAction>> measureActions
           
protected static boolean promptForMeasureParameters
           
 
Fields inherited from class de.cesr.more.measures.MAbstractMeasureSupplier
categories, measures, suppliers
 
Constructor Summary
protected MAbstractMeasureManager()
           
 
Method Summary
 void addMeasureManagerListener(MoreMeasureManagerListener listener)
          Adds a NetworkMeasureUtilitiesListener.
 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> getMeasureCalculations(MoreNetwork<?,?> network)
          Returns a Set of MeasureDescriptions that are dedicated to be calculated for the given ContextContextJungNetwork.
 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.
static boolean isPromptForMeasureParameters()
           
 void printLatexMeasureDescriptions()
           
 void removeMeasureManagerListener(MoreMeasureManagerListener listener)
          Removes a NetworkMeasureUtilitiesListener.
static void setPromptForMeasureParameters(boolean promptForMeasureParameters)
           
 
Methods inherited from class de.cesr.more.measures.MAbstractMeasureSupplier
addMeasureSupplier, equals, findMeasure, getCategories, getMeasureDescriptions, hashCode, removeMeasureSupplier
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface de.cesr.more.measures.MMeasureSelectorListener
setMeasureBundle
 

Field Detail

promptForMeasureParameters

protected static boolean promptForMeasureParameters

listeners

protected Set<MoreMeasureManagerListener> listeners

measureActions

protected Map<MoreNetwork<?,?>,HashMap<MMeasureDescription,MoreAction>> measureActions
Constructor Detail

MAbstractMeasureManager

protected MAbstractMeasureManager()
Method Detail

addMeasureManagerListener

public void addMeasureManagerListener(MoreMeasureManagerListener listener)
Adds a NetworkMeasureUtilitiesListener.

Parameters:
listener - the NetworkMeasureUtilitiesListener to add

removeMeasureManagerListener

public void removeMeasureManagerListener(MoreMeasureManagerListener listener)
Removes a NetworkMeasureUtilitiesListener.

Parameters:
listener - the NetworkMeasureUtilitiesListener to remove

getMeasureCalculations

public Set<MMeasureDescription> getMeasureCalculations(MoreNetwork<?,?> network)
Returns a Set of MeasureDescriptions that are dedicated to be calculated for the given ContextContextJungNetwork.

Type Parameters:
T - Parameter of ContextContextContextJungNetwork (type of nodes)
Parameters:
network -
Returns:
set of Measures. In case there are no measure actions scheduled for the given network an empty set is returned.
Date:
21.06.2008

getRemovableMeasures

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

Specified by:
getRemovableMeasures in interface MMeasureSelectorListener
Parameters:
network - the network for which removable measure shall be fetched
Returns:
a set of all removable measures

getAddableMeasures

public Set<MMeasureDescription> getAddableMeasures(MoreNetwork<?,?> network)
Description copied from interface: MMeasureSelectorListener
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.

Specified by:
getAddableMeasures in interface MMeasureSelectorListener
Parameters:
network - the network for which measure to add shall be fetched
Returns:
a set of all measures that may be added
See Also:
MMeasureSelectorListener.getAddableMeasures(de.cesr.more.basic.network.MoreNetwork)

isPromptForMeasureParameters

public static boolean isPromptForMeasureParameters()
Returns:
the promptForMeasureParameters

setPromptForMeasureParameters

public static void setPromptForMeasureParameters(boolean promptForMeasureParameters)
Parameters:
promptForMeasureParameters - the promptForMeasureParameters to set

printLatexMeasureDescriptions

public void printLatexMeasureDescriptions()