hydroScalingAPI.util.randomSelfSimilarNetworks
Class Generator

java.lang.Object
  extended by hydroScalingAPI.util.randomSelfSimilarNetworks.Generator

public class Generator
extends java.lang.Object

Implementation of the Random Self-similar Networks generation algorithm. The constructor for this class is recursive.

Author:
Ricardo Mantilla

Constructor Summary
Generator(int extInt, int generation, DiscreteDistribution myIntDis, DiscreteDistribution myExtDis, java.lang.String familyID)
          Creates a new instance of Generator
Generator(int extInt, int generation, ScaleDependentDiscreteDistribution myIntDis, ScaleDependentDiscreteDistribution myExtDis, java.lang.String familyID)
          Creates a new instance of Generator
 
Method Summary
 java.lang.String[] decodeRsnTree()
          Returns a String[] with a human readable codification for the tree.
 java.lang.String getGenID()
          Returns a String with the tree id (family name)
static void main(java.lang.String[] args)
           
static void main0(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Generator

public Generator(int extInt,
                 int generation,
                 DiscreteDistribution myIntDis,
                 DiscreteDistribution myExtDis,
                 java.lang.String familyID)
Creates a new instance of Generator

Parameters:
extInt - A flag indicating if this is an exterior (0) or an interior generator
generation - The level of the generation of this Generator. Note: Generation = 0 indicates that the members of this Generator have no descendents
myIntDis - An object describing the probability distribution of the size of the descendency for interior pseudo-links
myExtDis - An object describing the probability distribution of the size of the descendency for exterior pseudo-links
familyID - An ID for the parent family

Generator

public Generator(int extInt,
                 int generation,
                 ScaleDependentDiscreteDistribution myIntDis,
                 ScaleDependentDiscreteDistribution myExtDis,
                 java.lang.String familyID)
Creates a new instance of Generator

Parameters:
extInt - A flag indicating if this is an exterior (0) or an interior generator
generation - The level of the generation of this Generator. Note: Generation = 0 indicates that the members of this Generator have no descendents
myIntDis - An object describing the probability distribution of the size of the descendency for interior pseudo-links
myExtDis - An object describing the probability distribution of the size of the descendency for exterior pseudo-links
familyID - An ID for the parent family
Method Detail

getGenID

public java.lang.String getGenID()
Returns a String with the tree id (family name)

Returns:
The id (family name) of the tree

decodeRsnTree

public java.lang.String[] decodeRsnTree()
Returns a String[] with a human readable codification for the tree.

Returns:
The tree codification

main

public static void main(java.lang.String[] args)
Parameters:
args - the command line arguments

main0

public static void main0(java.lang.String[] args)


CUENCAS was initially developed by Ricardo Mantilla at the University of Colorado under the supervision of Dr. Vijay K. Gupta. We wish to recognize the support from the National Science Fundation.