edu.uci.ics.jung.algorithms.scoring.util
Class VertexScoreTransformer<V,S>

java.lang.Object
  extended by edu.uci.ics.jung.algorithms.scoring.util.VertexScoreTransformer<V,S>
All Implemented Interfaces:
org.apache.commons.collections15.Transformer<V,S>

public class VertexScoreTransformer<V,S>
extends Object
implements org.apache.commons.collections15.Transformer<V,S>

A Transformer convenience wrapper around VertexScorer.


Field Summary
protected  VertexScorer<V,S> vs
          The VertexScorer instance that provides the values returned by transform.
 
Constructor Summary
VertexScoreTransformer(VertexScorer<V,S> vs)
          Creates an instance based on the specified VertexScorer.
 
Method Summary
 S transform(V v)
          Returns the score for this vertex.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

vs

protected VertexScorer<V,S> vs
The VertexScorer instance that provides the values returned by transform.

Constructor Detail

VertexScoreTransformer

public VertexScoreTransformer(VertexScorer<V,S> vs)
Creates an instance based on the specified VertexScorer.

Method Detail

transform

public S transform(V v)
Returns the score for this vertex.

Specified by:
transform in interface org.apache.commons.collections15.Transformer<V,S>


Copyright © 2011. All Rights Reserved.