public class ComplexNumberTestBean extends Object implements Serializable
Constructor and Description |
---|
ComplexNumberTestBean() |
Modifier and Type | Method and Description |
---|---|
void |
add()
Adds the two complex numbers.
|
double |
getImaginaryValueOne()
Gets the imaginary value of the first complex number.
|
double |
getImaginaryValueResult()
Gets the imaginary value of the result of the addition.
|
double |
getImaginaryValueTwo()
Gets the imaginary value of the second complex number.
|
double |
getRealValueOne()
Gets the real value of the first complex number.
|
double |
getRealValueResult()
Gets the real value of the result of the addition.
|
double |
getRealValueTwo()
Gets the real value of the second complex number.
|
void |
setImaginaryValueOne(double imaginaryValueOne)
Sets the imaginary value of the first complex number.
|
void |
setImaginaryValueTwo(double imaginaryValueTwo)
Sets the imaginary value of the second complex number.
|
void |
setRealValueOne(double realValueOne)
Sets the real value of the first complex number.
|
void |
setRealValueTwo(double realValueTwo)
Sets the real value of the second complex number.
|
public double getRealValueOne()
public void setRealValueOne(double realValueOne)
realValueOne
- The real value of the first complex number.public double getImaginaryValueOne()
public void setImaginaryValueOne(double imaginaryValueOne)
imaginaryValueOne
- The imaginary value of the first complex number.public double getRealValueTwo()
public void setRealValueTwo(double realValueTwo)
realValueTwo
- The real value of the second complex number.public double getImaginaryValueTwo()
public void setImaginaryValueTwo(double imaginaryValueTwo)
imaginaryValueTwo
- The imaginary value of the second complex number.public double getRealValueResult()
public double getImaginaryValueResult()
public void add()
Copyright © 2008–2018. All rights reserved.