org.gcube.data.trees.generators
Class TemplateFactory

java.lang.Object
  extended by org.gcube.data.trees.generators.TemplateFactory

public class TemplateFactory
extends Object

Factory of TreeTemplates.

Author:
Fabio Simeoni

Constructor Summary
TemplateFactory()
           
 
Method Summary
static StructuralTemplate.STBuilder aTree()
          Returns a builder of StructuralTemplates.
static SimilarityTemplate aTreeLike(Tree proto)
          Returns a SimilarityTemplate for a given prototype and a similarity coefficient of .9.
static SimilarityTemplate aTreeLike(Tree proto, double similarity)
          Returns a SimilarityTemplate for a given prototype and similarity coefficient.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TemplateFactory

public TemplateFactory()
Method Detail

aTree

public static StructuralTemplate.STBuilder aTree()
Returns a builder of StructuralTemplates.

Returns:
the builder

aTreeLike

public static SimilarityTemplate aTreeLike(Tree proto,
                                           double similarity)
Returns a SimilarityTemplate for a given prototype and similarity coefficient.

Parameters:
proto - the prototype
similarity - the similarity coefficient
Returns:
the template

aTreeLike

public static SimilarityTemplate aTreeLike(Tree proto)
Returns a SimilarityTemplate for a given prototype and a similarity coefficient of .9.

Parameters:
proto - the prototype
Returns:
the template


Copyright © 2012. All Rights Reserved.