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 Seedbuild(Collection<Parameter> parameters)Constructs the actualSeedinstance from this builder.Seed.Buildermode(SeedMode mode)Sets the mode of the seed.Seed.Builderpriority(double priority)Sets an explicit priority for the seed.Seed.Buildersuspicious()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_PRIORITYshould be used.- Parameters:
priority- the desired priority- Returns:
- this
-
build
public Seed build(Collection<Parameter> parameters)
Constructs the actualSeedinstance from this builder.- Parameters:
parameters- the parameters to optionally build aCombination.Builder. If this is not necessary becauseBuilder(Combination.Builder)was not used,nullor an arbitrary collection can be passed to this method- Returns:
- the
Seedconstructed using the information supplied to this builder
-
-