.. java:import:: ch.epfl.leb.sass.models.samples RefractiveIndex ElectricFieldBuilder ==================== .. java:package:: ch.epfl.leb.sass.models.illuminations :noindex: .. java:type:: public interface ElectricFieldBuilder Builds a new ElectricField instance. :author: Kyle M. Douglass Methods ------- build ^^^^^ .. java:method:: public ElectricField build() :outertype: ElectricFieldBuilder Builds a new ElectricField instance. :return: A new instance of an electric field. refractiveIndex ^^^^^^^^^^^^^^^ .. java:method:: public ElectricFieldBuilder refractiveIndex(RefractiveIndex n) :outertype: ElectricFieldBuilder Sets the refractive index of the sample. :param n: The sample's refractive index. :return: A new ElectricFieldBuilder with the refractive index set. wavelength ^^^^^^^^^^ .. java:method:: public ElectricFieldBuilder wavelength(double wavelength) :outertype: ElectricFieldBuilder Sets the free space wavelength of the radiation. :param wavelength: The free space wavelength. :return: A new ElectricFieldBuilder with the wavelength set.