public static class MRVMWorldSetup.MRVMWorldSetupBuilder extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
HIGH_PAIRED_NAME |
static String |
LOW_PAIRED_NAME |
org.jgrapht.UndirectedGraph<MRVMWorldSetup.RegionSetup,org.jgrapht.graph.DefaultEdge> |
predefinedGraph |
static String |
UNPAIRED_NAME |
boolean |
usePredefinedGraph |
| Constructor and Description |
|---|
MRVMWorldSetupBuilder() |
| Modifier and Type | Method and Description |
|---|---|
Map<String,MRVMWorldSetup.BandSetup> |
bandSetups() |
MRVMWorldSetup |
build() |
void |
changeNumberOfLots(String bandName,
IntegerInterval numberOfLots) |
void |
createGraphRandomly(IntegerInterval numberOfRegions,
IntegerInterval averageOfAdjacenciesPerRegion,
double populationPerRegionMean,
double populationPerRegionStandardDeviation) |
void |
createPredefinedGraph(org.jgrapht.UndirectedGraph<MRVMWorldSetup.RegionSetup,org.jgrapht.graph.DefaultEdge> predefinedGraph) |
void |
putBandSetup(MRVMWorldSetup.BandSetup bandStructure)
Adds an additional bandStructure.
If a bandStructure with this name already exists, it is replaced. |
MRVMWorldSetup.BandSetup |
removeBandSetup(String name)
Remove a BandSetup
|
public static final String LOW_PAIRED_NAME
public static final String HIGH_PAIRED_NAME
public static final String UNPAIRED_NAME
public org.jgrapht.UndirectedGraph<MRVMWorldSetup.RegionSetup,org.jgrapht.graph.DefaultEdge> predefinedGraph
public boolean usePredefinedGraph
public void createGraphRandomly(IntegerInterval numberOfRegions, IntegerInterval averageOfAdjacenciesPerRegion, double populationPerRegionMean, double populationPerRegionStandardDeviation)
public void createPredefinedGraph(org.jgrapht.UndirectedGraph<MRVMWorldSetup.RegionSetup,org.jgrapht.graph.DefaultEdge> predefinedGraph)
public void changeNumberOfLots(String bandName, IntegerInterval numberOfLots)
public void putBandSetup(MRVMWorldSetup.BandSetup bandStructure)
bandStructure - a band setuppublic MRVMWorldSetup.BandSetup removeBandSetup(String name)
name - the name of the band setup to be removedpublic Map<String,MRVMWorldSetup.BandSetup> bandSetups()
public MRVMWorldSetup build()
Copyright © 2017. All rights reserved.