ElectricFieldCommandBuilder

public interface ElectricFieldCommandBuilder

Common methods for commands that build ElectricField generators. A command is like a method wrapped inside an object.

Author:Kyle M. Douglass

Methods

build

public ElectricFieldCommand build()

Creates a new command for generating an ElectricField instance.

Returns:A command for generating new ElectricField instances.

refractiveIndex

public ElectricFieldCommandBuilder refractiveIndex(RefractiveIndex refractiveIndex)

Assigns a value to the refractive index field of the command builder.

Parameters:
  • refractiveIndex
Returns:

A copy of this builder with the new refractive index.

wavelength

public ElectricFieldCommandBuilder wavelength(double wavelength)

Assigns a value to the wavelength field of the command builder.

Parameters:
  • wavelength
Returns:

A copy of this builder with the new wavelength.