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

net.anotheria.anosite.gen.asexperiment.data.ExperimentBuilder Maven / Gradle / Ivy

There is a newer version: 4.1.2
Show newest version
/**
 ********************************************************************************
 *** ExperimentBuilder.java                                                   ***
 *** generated by AnoSiteGenerator (ASG), Version: 3.2.2                      ***
 *** Copyright (C) 2005 - 2023 Anotheria.net, www.anotheria.net               ***
 *** All Rights Reserved.                                                     ***
 ********************************************************************************
 *** Don't edit this code, if you aren't sure                                 ***
 *** that you do exactly know what you are doing!                             ***
 *** It's better to invest time in the generator, as into the generated code. ***
 ********************************************************************************
 */

package net.anotheria.anosite.gen.asexperiment.data;

import net.anotheria.asg.data.Builder;

public class ExperimentBuilder implements Builder{

	protected String name;
	protected boolean active;
	protected int distribution;
	protected String description;
	protected String variant1;
	protected String variant2;
	protected String variant3;
	protected String variant4;
	protected String variant5;
	protected String variant6;
	protected String variant7;
	protected String variant8;
	protected String variant9;
	protected String variant10;

	/**
	 * Sets the value of the name attribute.
	 */
	public ExperimentBuilder name(String aValue){
		name = aValue;
		return this;
	}

	/**
	 * Sets the value of the active attribute.
	 */
	public ExperimentBuilder active(boolean aValue){
		active = aValue;
		return this;
	}

	/**
	 * Sets the value of the distribution attribute.
	 */
	public ExperimentBuilder distribution(int aValue){
		distribution = aValue;
		return this;
	}

	/**
	 * Sets the value of the description attribute.
	 */
	public ExperimentBuilder description(String aValue){
		description = aValue;
		return this;
	}

	/**
	 * Sets the value of the variant1 attribute.
	 */
	public ExperimentBuilder variant1(String aValue){
		variant1 = aValue;
		return this;
	}

	/**
	 * Sets the value of the variant2 attribute.
	 */
	public ExperimentBuilder variant2(String aValue){
		variant2 = aValue;
		return this;
	}

	/**
	 * Sets the value of the variant3 attribute.
	 */
	public ExperimentBuilder variant3(String aValue){
		variant3 = aValue;
		return this;
	}

	/**
	 * Sets the value of the variant4 attribute.
	 */
	public ExperimentBuilder variant4(String aValue){
		variant4 = aValue;
		return this;
	}

	/**
	 * Sets the value of the variant5 attribute.
	 */
	public ExperimentBuilder variant5(String aValue){
		variant5 = aValue;
		return this;
	}

	/**
	 * Sets the value of the variant6 attribute.
	 */
	public ExperimentBuilder variant6(String aValue){
		variant6 = aValue;
		return this;
	}

	/**
	 * Sets the value of the variant7 attribute.
	 */
	public ExperimentBuilder variant7(String aValue){
		variant7 = aValue;
		return this;
	}

	/**
	 * Sets the value of the variant8 attribute.
	 */
	public ExperimentBuilder variant8(String aValue){
		variant8 = aValue;
		return this;
	}

	/**
	 * Sets the value of the variant9 attribute.
	 */
	public ExperimentBuilder variant9(String aValue){
		variant9 = aValue;
		return this;
	}

	/**
	 * Sets the value of the variant10 attribute.
	 */
	public ExperimentBuilder variant10(String aValue){
		variant10 = aValue;
		return this;
	}


	public Experiment build(){
		return ExperimentFactory.createExperiment(this);
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy