net.sf.opendse.generator
Class ArchitectureGenerator
java.lang.Object
net.sf.opendse.generator.Generator
net.sf.opendse.generator.ArchitectureGenerator
public class ArchitectureGenerator
- extends Generator
The ArchitectureGenerator contains several methods to generate and
transform architectures.
|
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
resourceId
protected final IdProvider resourceId
linkId
protected final IdProvider linkId
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 seedresourceId - the provider for the resource idslinkId - the provider for the link ids
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 branchesbranches - the number of branches
- Returns:
- the architecture