net.sf.opendse.generator
Class Generator

java.lang.Object
  extended by net.sf.opendse.generator.Generator
Direct Known Subclasses:
ApplicationGenerator, ArchitectureGenerator, MappingGenerator

public abstract class Generator
extends java.lang.Object


Nested Class Summary
static class Generator.Type
           
 
Field Summary
protected  java.util.Random random
           
 
Constructor Summary
Generator(java.util.Random random)
           
 
Method Summary
 void annotateAttribute(net.sf.opendse.model.Graph<?,?> graph, java.lang.String attribute, int min, int max, Generator.Type type)
           
 int rand(int min, int max)
           
<V> V
rand(java.util.List<V> list)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

random

protected final java.util.Random random
Constructor Detail

Generator

public Generator(java.util.Random random)
Method Detail

rand

public int rand(int min,
                int max)

rand

public <V> V rand(java.util.List<V> list)

annotateAttribute

public void annotateAttribute(net.sf.opendse.model.Graph<?,?> graph,
                              java.lang.String attribute,
                              int min,
                              int max,
                              Generator.Type type)