org.geotools.graph.util.graph
Interface GraphFuser.EdgeMerger

Enclosing interface:
GraphFuser

public static interface GraphFuser.EdgeMerger

Merges the underlying objects represented by a number of edges into a single object.

Author:
Justin Deoliveira, Refractions Research Inc, jdeolive@refractions.net

Method Summary
 java.lang.Object merge(java.util.List edges)
          Creates a single object from collection of underlying objects represented by a collection of edges.
 void setMergedObject(Edge newEdge, java.lang.Object merged, java.util.List edges)
          Sets the object for the edge created to represented the merged object.
 

Method Detail

merge

public java.lang.Object merge(java.util.List edges)
Creates a single object from collection of underlying objects represented by a collection of edges.

Parameters:
edges - A collection of edges.
Returns:
A single object.

setMergedObject

public void setMergedObject(Edge newEdge,
                            java.lang.Object merged,
                            java.util.List edges)
Sets the object for the edge created to represented the merged object.

Parameters:
newEdge - The edge created to represent the merged object.
merged - The merged object.
edges - The original edges that were merged


Copyright © GeoTools. All Rights Reserved.