public class MappingGenerator extends Generator
MappingGenerator contains several methods to generate and
transform mappings.Generator.Type| Modifier and Type | Field and Description |
|---|---|
protected IdProvider |
mappingId |
| Constructor and Description |
|---|
MappingGenerator()
Constructs a
MappingGenerator with a random seed. |
MappingGenerator(long seed)
Constructs a
MappingGenerator with a given seed. |
MappingGenerator(long seed,
IdProvider mappingId)
Constructs a
MappingGenerator. |
| Modifier and Type | Method and Description |
|---|---|
void |
annotateAttribute(net.sf.opendse.model.Mappings<net.sf.opendse.model.Task,net.sf.opendse.model.Resource> mappings,
java.lang.String attribute,
int min,
int max) |
net.sf.opendse.model.Mappings<net.sf.opendse.model.Task,net.sf.opendse.model.Resource> |
create(net.sf.opendse.model.Application<net.sf.opendse.model.Task,net.sf.opendse.model.Dependency> application,
net.sf.opendse.model.Architecture<net.sf.opendse.model.Resource,net.sf.opendse.model.Link> architecture,
int min,
int max)
Creates mappings.
|
net.sf.opendse.model.Mappings<net.sf.opendse.model.Task,net.sf.opendse.model.Resource> |
create(net.sf.opendse.model.Application<net.sf.opendse.model.Task,net.sf.opendse.model.Dependency> application,
java.util.Collection<net.sf.opendse.model.Resource> resources,
int min,
int max)
Creates mappings.
|
annotateAttribute, rand, randprotected final IdProvider mappingId
public MappingGenerator()
MappingGenerator with a random seed.public MappingGenerator(long seed)
MappingGenerator with a given seed.public MappingGenerator(long seed,
IdProvider mappingId)
MappingGenerator.seed - the seedmappingId - the provider for the mapping idspublic net.sf.opendse.model.Mappings<net.sf.opendse.model.Task,net.sf.opendse.model.Resource> create(net.sf.opendse.model.Application<net.sf.opendse.model.Task,net.sf.opendse.model.Dependency> application,
net.sf.opendse.model.Architecture<net.sf.opendse.model.Resource,net.sf.opendse.model.Link> architecture,
int min,
int max)
application - the applicationarchitecture - the architecturemin - the minimal number of mappings per taskmax - the maximal number of mappings per taskpublic net.sf.opendse.model.Mappings<net.sf.opendse.model.Task,net.sf.opendse.model.Resource> create(net.sf.opendse.model.Application<net.sf.opendse.model.Task,net.sf.opendse.model.Dependency> application,
java.util.Collection<net.sf.opendse.model.Resource> resources,
int min,
int max)
application - the applicationresources - the resourcesmin - the minimal number of mappings per taskmax - the maximal number of mappings per taskpublic void annotateAttribute(net.sf.opendse.model.Mappings<net.sf.opendse.model.Task,net.sf.opendse.model.Resource> mappings,
java.lang.String attribute,
int min,
int max)