GraphLab Project

graphlab.samples.extensions
Class BinaryTreeGenerator

java.lang.Object
  extended by graphlab.samples.extensions.BinaryTreeGenerator
All Implemented Interfaces:
BasicExtension, Extension, Parametrizable, GraphGeneratorExtension, GraphGeneratorInterface

public class BinaryTreeGenerator
extends java.lang.Object
implements GraphGeneratorExtension, Parametrizable


Field Summary
 BoundedInteger depth
           
 
Constructor Summary
BinaryTreeGenerator()
           
 
Method Summary
 java.lang.String checkParameters()
          checks the parameters and return an error string if the parameter values are invalid, otherwise it returns null, also if some other fields should be set after setting the parameters you can do it in this method
 GraphModel generateGraph()
           
 java.lang.String getDescription()
           
 java.lang.String getName()
           
 GraphPoint[] getVertexPositions()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

depth

public BoundedInteger depth
Constructor Detail

BinaryTreeGenerator

public BinaryTreeGenerator()
Method Detail

checkParameters

public java.lang.String checkParameters()
Description copied from interface: Parametrizable
checks the parameters and return an error string if the parameter values are invalid, otherwise it returns null, also if some other fields should be set after setting the parameters you can do it in this method

Specified by:
checkParameters in interface Parametrizable

getName

public java.lang.String getName()
Specified by:
getName in interface Extension

getDescription

public java.lang.String getDescription()
Specified by:
getDescription in interface Extension

getVertexPositions

public GraphPoint[] getVertexPositions()

generateGraph

public GraphModel generateGraph()
Specified by:
generateGraph in interface GraphGeneratorInterface

GraphLab Project