|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.hcarralero.toljava.TOLLObject
com.hcarralero.toljava.TOLComplex
public class TOLComplex
Representa a un objeto TOL de tipo Complex
| Constructor Summary | |
|---|---|
TOLComplex(double x,
double y)
Construye un objeto de tipo TOLComplex |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
Compara a este objeto con otro |
double |
getX()
Obtiene el valor de x (parte real del número complejo) |
double |
getY()
Obtiene el valor de y (parte imaginaria) del número complejo) |
int |
hashCode()
Calcula el código hash asignado al objeto |
boolean |
isComplex()
Determina si el objeto corresponde al tipo Complex de TOL |
void |
setX(double x)
Cambia el valor de x (parte real) por el valor pasado como parámetro |
void |
setY(double y)
Cambia el valor de y (parte imaginaria) por el valor pasado como parámetro |
java.lang.String |
toString()
Obtiene una representación como cadena de texto del número complejo en el formato "x+yi" |
| Methods inherited from class com.hcarralero.toljava.TOLLObject |
|---|
isCode, isDate, isMatrix, isPolyn, isRatio, isReal, isReference, isSerie, isSet, isText, isTimeSet, isVMatrix |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TOLComplex(double x,
double y)
TOLComplex
x - parte real del número complejoy - parte imaginaria del número complejo| Method Detail |
|---|
public double getX()
public void setX(double x)
x - nuevo valor de x (parte real)public double getY()
public void setY(double y)
y - nuevo valor de y (parte imaginaria)public boolean isComplex()
isComplex in interface TOLObjectisComplex in class TOLLObjecttrue ya que el objeto corresponde al tipo Complex de TOLpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - el objeto con el que se comparará
true si el objeto pasado como parámetro es de tipo TOLReal y contiene un valor numérico real idénticopublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||