|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.cesr.more.measures.MAbstractMeasureSupplier de.cesr.more.measures.MAbstractMeasureManager de.cesr.more.measures.node.MNodeMeasureManager
public class MNodeMeasureManager
The NetworkMeasureUtilites
manage network measure calculation. NetworkMeasureSupplier
s are
registered here. This class also implements the MMeasureSelectorListener
interface for adding measures for
computation via the MeasureChooser
. It holds all scheduled actions that calculate measures.
Field Summary | |
---|---|
protected static MNodeMeasureManager |
instance
|
Fields inherited from class de.cesr.more.measures.MAbstractMeasureManager |
---|
listeners, measureActions, promptForMeasureParameters |
Fields inherited from class de.cesr.more.measures.MAbstractMeasureSupplier |
---|
categories, measures, suppliers |
Method Summary | ||
---|---|---|
|
addMeasureCalculation(MoreNetwork<T,E> network,
MMeasureDescription measureDesc,
Map<String,Object> params)
The Type of nodes in the given MoreNetwork needs to extend
MoreNodeMeasureSupport since the MNodeMeasureManager requires
access to methods that get and set measures at the node. |
|
|
addMeasureCalculation(MoreNetwork<T,E> network,
String shortname)
Takes a short description instead of a MeasureDescription and uses default parameter map. |
|
|
addMeasureCalculation(MoreNetwork<T,E> network,
String shortname,
Map<String,Object> params)
Takes a short description instead of a MeasureDescription . |
|
|
addMeasureCalculation(String network,
MMeasureDescription measureDesc,
Map<String,Object> params)
|
|
|
addMeasureCalculation(String network,
String shortname,
Map<String,Object> params)
Takes a short description instead of a MeasureDescription . |
|
static MNodeMeasureManager |
getInstance()
|
|
|
removeMeasureCalculation(MoreNetwork<T,E> network,
MMeasureDescription key)
Removes BasicAction that calculates the measure for the given network for the given measure key from
the Schedule to stop computation of that measure. |
|
|
removeMeasureCalculation(MoreNetwork<T,E> network,
String key)
|
|
static void |
reset()
Reset the static instance variable. |
|
boolean |
setMeasureBundle(MMeasureBundle bundle,
boolean remove)
This method is invoked every time the user selects a measure at the MeasureChooser |
Methods inherited from class de.cesr.more.measures.MAbstractMeasureManager |
---|
addMeasureManagerListener, getAddableMeasures, getMeasureCalculations, getRemovableMeasures, isPromptForMeasureParameters, printLatexMeasureDescriptions, removeMeasureManagerListener, setPromptForMeasureParameters |
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 |
Field Detail |
---|
protected static MNodeMeasureManager instance
Method Detail |
---|
public static MNodeMeasureManager getInstance()
NetworkMeasureUtilities
.public <T extends MoreNodeMeasureSupport,E extends MoreEdge<? super T>> boolean addMeasureCalculation(MoreNetwork<T,E> network, MMeasureDescription measureDesc, Map<String,Object> params)
MoreNetwork
needs to extend
MoreNodeMeasureSupport
since the MNodeMeasureManager
requires
access to methods that get and set measures at the node.
T
- Type of nodes)E
- Edge typenetwork
- the network to add the measure formeasureDesc
- the measure description of the measure to addparams
- parameter map of options for calculation
public <T extends MoreNodeMeasureSupport,E extends MoreEdge<? super T>> boolean addMeasureCalculation(String network, MMeasureDescription measureDesc, Map<String,Object> params)
T
- agent typeE
- edge typenetwork
- measureDesc
- measure description to addparams
- parameter map
MNodeMeasureManager#addMeasureCalculation(MoreNetwork,
de.cesr.more.measures.MMeasureDescription, Map)
public <T extends MoreNodeMeasureSupport,E extends MoreEdge<? super T>> boolean addMeasureCalculation(MoreNetwork<T,E> network, String shortname)
MeasureDescription
and uses default parameter map.
T
- agent typeE
- edge typenetwork
- measureDesc
- measure description to add
MNodeMeasureManager#addMeasureCalculation(MoreNetwork,
de.cesr.more.measures.MMeasureDescription, Map)
public <T extends MoreNodeMeasureSupport,E extends MoreEdge<? super T>> boolean addMeasureCalculation(String network, String shortname, Map<String,Object> params)
MeasureDescription
.
MNodeMeasureManager#addMeasureCalculation(MoreNetwork,
de.cesr.more.measures.MMeasureDescription, Map)
public <T extends MoreNodeMeasureSupport,E extends MoreEdge<? super T>> boolean removeMeasureCalculation(MoreNetwork<T,E> network, MMeasureDescription key)
BasicAction
that calculates the measure for the given network for the given measure key from
the Schedule
to stop computation of that measure. Furthermore its sets the associated measures at
the node to Double.NaN
or null
respectively.
T
- Type of elements in the given ContextContextContextJungNetwork
that should implement
NetworkMeasureSupport
network
- The network the measure is associated withkey
- The key for the measure to remove from calculation
public <T extends MoreNodeMeasureSupport,E extends MoreEdge<? super T>> boolean removeMeasureCalculation(MoreNetwork<T,E> network, String key)
T
- Type of elements in the given ContextContextContextJungNetwork
that should implement
NetworkMeasureSupport
network
- The network the measure is associated withkey
- The key for the measure to remove from calculation
removeMeasureCalculation(MoreNetwork, MMeasureDescription)
public boolean setMeasureBundle(MMeasureBundle bundle, boolean remove)
MMeasureSelectorListener
MeasureChooser
bundle
- the measure bundle that was selectedremove
- true if the selected measure shall be removed from this collection
edu.MMeasureSelectorListener.sh.soneta.gui.MeasureChooserListener#setMeasureBundle(edu.MMeasureBundle.sh.soneta.measures.MeasureBundle,
boolean)
public <T extends MoreNodeMeasureSupport,E extends MoreEdge<? super T>> void addMeasureCalculation(MoreNetwork<T,E> network, String shortname, Map<String,Object> params)
MeasureDescription
.
MNodeMeasureManager#addMeasureCalculation(ContextContextJungNetwork,
de.cesr.more.measures.node.MNodeMeasureManager.sh.soneta.measures.NetworkMeasureUtilities.MeasureDescription,
Map)
public static void reset()
MManager.reset()
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |