|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.cesr.more.measures.network.MAbstractNetworkMeasure
public abstract class MAbstractNetworkMeasure
MORe
The basic measure class that holds the measure type, a map of parameters, the MMeasureDescription
and the MoreAction
responsible for measure calculation.
The parameters
map should be filled with valid String
keys the user might
provide values for. The user than scans the map and assigns values to the keys.
Field Summary | |
---|---|
protected MoreAction |
action
The action to schedule the measure calculation |
protected MMeasureDescription |
desc
The measure description |
protected Map<String,Object> |
parameters
Parameters used to calculate this measure |
protected Class<?> |
type
the measure's type |
Constructor Summary | |
---|---|
MAbstractNetworkMeasure(MMeasureDescription description,
Class<?> measureType)
|
|
MAbstractNetworkMeasure(MMeasureDescription description,
Class<?> measureType,
Map<String,Object> parameters)
Initializes a Measure with its MMeasureDescription , its return type class
and a map with defined keys and default values as parameters. |
Method Summary | ||
---|---|---|
abstract
|
getAction(MoreNetwork<T,EdgeType> network,
Map<String,Object> parameters)
A new measure need to provide a MoreAction that calculates the measure values |
|
MMeasureDescription |
getMeasureDescription()
|
|
Map<String,Object> |
getParameters()
|
|
Class<?> |
getType()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Class<?> type
protected MMeasureDescription desc
protected Map<String,Object> parameters
protected MoreAction action
Constructor Detail |
---|
public MAbstractNetworkMeasure(MMeasureDescription description, Class<?> measureType)
description
- The measure descriptionmeasureType
- the measure's typeMAbstractNetworkMeasure#MNetworkMeasure(MMeasureDescription, Class, Map)
public MAbstractNetworkMeasure(MMeasureDescription description, Class<?> measureType, Map<String,Object> parameters)
Measure
with its MMeasureDescription
, its return type class
and a map with defined keys and default values as parameters.
description
- The MMeasureDescription
measureType
- The class type of the object that represents the measure and is set at the nodesparameters
- A map with predefined key-(default)values pairs as parametersMethod Detail |
---|
public Class<?> getType()
getType
in interface MoreMeasure
public Map<String,Object> getParameters()
getParameters
in interface MoreMeasure
public MMeasureDescription getMeasureDescription()
getMeasureDescription
in interface MoreMeasure
MMeasureDescription
for this measurepublic abstract <T,EdgeType extends MoreEdge<? super T>> MoreAction getAction(MoreNetwork<T,EdgeType> network, Map<String,Object> parameters)
MoreAction
that calculates the measure values
T
- The node typeEdgeType
- the network's edge typenetwork
- The network the measure is calculated forparameters
- The parameter map
BasicAction
that is scheduled for computation
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |