All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.hyperfoil.api.config.PhaseForkBuilder Maven / Gradle / Ivy

There is a newer version: 0.27
Show newest version
package io.hyperfoil.api.config;

public class PhaseForkBuilder implements Rewritable {
   final String name;
   final ScenarioBuilder scenario;
   double weight = 1;

   public PhaseForkBuilder(PhaseBuilder parent, String name) {
      this.name = name;
      this.scenario = new ScenarioBuilder(parent);
   }

   public PhaseForkBuilder weight(double weight) {
      this.weight = weight;
      return this;
   }

   public ScenarioBuilder scenario() {
      return scenario;
   }

   @Override
   public void readFrom(PhaseForkBuilder other) {
      this.weight = other.weight;
      this.scenario.readFrom(other.scenario);
   }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy