net.sf.opendse.generator
Class ArchitectureGenerator

java.lang.Object
  extended by net.sf.opendse.generator.Generator
      extended by net.sf.opendse.generator.ArchitectureGenerator

public class ArchitectureGenerator
extends Generator

The ArchitectureGenerator contains several methods to generate and transform architectures.


Nested Class Summary
 
Nested classes/interfaces inherited from class net.sf.opendse.generator.Generator
Generator.Type
 
Field Summary
protected  IdProvider linkId
           
protected  IdProvider resourceId
           
 
Fields inherited from class net.sf.opendse.generator.Generator
random
 
Constructor Summary
ArchitectureGenerator()
          Constructs an ArchitectureGenerator with a random seed.
ArchitectureGenerator(long seed)
          Constructs an ArchitectureGenerator with a given seed.
ArchitectureGenerator(long seed, IdProvider resourceId, IdProvider linkId)
          Constructs an ArchitectureGenerator.
 
Method Summary
 net.sf.opendse.model.Architecture<net.sf.opendse.model.Resource,net.sf.opendse.model.Link> getStar(int depth, int branches)
          Constructs a star architecture.
 
Methods inherited from class net.sf.opendse.generator.Generator
annotateAttribute, rand, rand
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

resourceId

protected final IdProvider resourceId

linkId

protected final IdProvider linkId
Constructor Detail

ArchitectureGenerator

public ArchitectureGenerator()
Constructs an ArchitectureGenerator with a random seed.


ArchitectureGenerator

public ArchitectureGenerator(long seed)
Constructs an ArchitectureGenerator with a given seed.


ArchitectureGenerator

public ArchitectureGenerator(long seed,
                             IdProvider resourceId,
                             IdProvider linkId)
Constructs an ArchitectureGenerator.

Parameters:
seed - the seed
resourceId - the provider for the resource ids
linkId - the provider for the link ids
Method Detail

getStar

public net.sf.opendse.model.Architecture<net.sf.opendse.model.Resource,net.sf.opendse.model.Link> getStar(int depth,
                                                                                                          int branches)
Constructs a star architecture.

Parameters:
depth - the depths of the branches
branches - the number of branches
Returns:
the architecture