Class Seed.Builder
- java.lang.Object
-
- de.rwth.swc.coffee4j.engine.configuration.model.Seed.Builder
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Seed
build(Collection<Parameter> parameters)
Constructs the actualSeed
instance from this builder.Seed.Builder
mode(SeedMode mode)
Sets the mode of the seed.Seed.Builder
priority(double priority)
Sets an explicit priority for the seed.Seed.Builder
suspicious()
Sets the mode of the seed toSeedMode.EXCLUSIVE
.
-
-
-
Method Detail
-
mode
public Seed.Builder mode(SeedMode mode)
Sets the mode of the seed. The default isSeedMode.NON_EXCLUSIVE
.- Parameters:
mode
- the desired mode of the seed- Returns:
- this
-
suspicious
public Seed.Builder suspicious()
Sets the mode of the seed toSeedMode.EXCLUSIVE
. The default isSeedMode.NON_EXCLUSIVE
.- Returns:
- this
-
priority
public Seed.Builder priority(double priority)
Sets an explicit priority for the seed. Priorities show the relative importance of multiple seeds. If the seed is not priorities the default ofSeed.NO_PRIORITY
should be used.- Parameters:
priority
- the desired priority- Returns:
- this
-
build
public Seed build(Collection<Parameter> parameters)
Constructs the actualSeed
instance from this builder.- Parameters:
parameters
- the parameters to optionally build aCombination.Builder
. If this is not necessary becauseBuilder(Combination.Builder)
was not used,null
or an arbitrary collection can be passed to this method- Returns:
- the
Seed
constructed using the information supplied to this builder
-
-