net.sf.opendse.generator
Class MappingGenerator
java.lang.Object
net.sf.opendse.generator.Generator
net.sf.opendse.generator.MappingGenerator
public class MappingGenerator
- extends Generator
The MappingGenerator contains several methods to generate and
transform mappings.
|
Method Summary |
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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
mappingId
protected final IdProvider mappingId
MappingGenerator
public MappingGenerator()
- Constructs a
MappingGenerator with a random seed.
MappingGenerator
public MappingGenerator(long seed)
- Constructs a
MappingGenerator with a given seed.
MappingGenerator
public MappingGenerator(long seed,
IdProvider mappingId)
- Constructs a
MappingGenerator.
- Parameters:
seed - the seedmappingId - the provider for the mapping ids
create
public 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.
- Parameters:
application - the applicationarchitecture - the architecturemin - the minimal number of mappings per taskmax - the maximal number of mappings per task
- Returns:
- the mappings
create
public 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.
- Parameters:
application - the applicationresources - the resourcesmin - the minimal number of mappings per taskmax - the maximal number of mappings per task
- Returns:
- the mappings
annotateAttribute
public 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)