|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbcds.phison.gm.GraphMetricBase<V,E>
public abstract class GraphMetricBase<V,E>
Provides default implementations for some of the methods of
the GraphMetric interface.
| Constructor Summary | |
|---|---|
GraphMetricBase()
|
|
| Method Summary | |
|---|---|
void |
dump(java.io.Writer wr)
Does nothing. |
java.util.Map<E,java.lang.Double> |
getEdgeMetric()
|
Environ |
getEnviron()
Returns the object holding environment parameters for this instance. |
java.lang.Object[] |
getEnvParams()
Returns zero-length array. |
SimGraph<V,E> |
getGraph()
Returns the reference to the graph, so that classes outside this package can use it. |
double |
getGraphMetric()
|
double |
getGraphMetricStdev()
|
java.lang.String |
getName()
Returns a short name of this class. |
java.util.Map<V,java.lang.Double> |
getNodeMetric()
|
boolean |
isApplicableTo(MetricTarget m)
Returns false. |
void |
run()
Default implementation. |
void |
setup(SimGraph<V,E> g,
Environ env)
Saves the parameters for future use. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GraphMetricBase()
| Method Detail |
|---|
public void setup(SimGraph<V,E> g,
Environ env)
g must
not be null. If env is null, a new empty environment
is created. Default values are incorporated by calling
getEnvParams and the types of already-present
values are adapted, if possible.
public boolean isApplicableTo(MetricTarget m)
public void run()
public double getGraphMetric()
UnsupportedOperationException.public double getGraphMetricStdev()
UnsupportedOperationException.public java.util.Map<V,java.lang.Double> getNodeMetric()
UnsupportedOperationException.public java.util.Map<E,java.lang.Double> getEdgeMetric()
UnsupportedOperationException.public Environ getEnviron()
public java.lang.Object[] getEnvParams()
public void dump(java.io.Writer wr)
public SimGraph<V,E> getGraph()
public java.lang.String getName()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||