|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.hcarralero.toljava.TOLRObject
com.hcarralero.toljava.TOLRSerie
public class TOLRSerie
Representa una referencia a un objeto de tipo Serie definido en TOL.
| Field Summary |
|---|
| Fields inherited from class com.hcarralero.toljava.TOLRObject |
|---|
tm, varname |
| Constructor Summary | |
|---|---|
TOLRSerie(TOLMachine tm,
java.lang.String varname)
Construye un objeto de tipo TOLRSerie |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
Compara a este objeto con otro |
TOLDate |
getFirstDate()
Obtiene la primera fecha de la serie |
TSItem[] |
getItems(int index,
int size)
Obtiene un arreglo de elementos de la serie a partir de una posición dada |
TSItem[] |
getItems(TOLDate date,
int size)
Obtiene un arreglo de elementos de la serie a partir de una fecha dada |
TOLDate |
getLastDate()
Obtiene la última fecha de la serie |
double |
getValue(int index)
Obtiene el valor de la serie en una posición dada |
double |
getValue(TOLDate date)
Obtiene el valor de la serie en una fecha dada |
int |
hashCode()
Calcula el código hash asignado al objeto |
boolean |
isSerie()
Determina si el objeto corresponde al tipo Serie de TOL |
java.lang.String |
toString()
Obtiene una representación como cadena de texto de la Serie en la que incluye el nombre |
| Methods inherited from class com.hcarralero.toljava.TOLRObject |
|---|
getTm, getVarname, isCode, isComplex, isDate, isMatrix, isPolyn, isRatio, isReal, isReference, isSet, isText, isTimeSet, isVMatrix, setTm, setVarname |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TOLRSerie(TOLMachine tm,
java.lang.String varname)
TOLRSerie
tm - el objeto TOLMachine al que está ligadovarname - nombre de la variable en TOL| Method Detail |
|---|
public boolean isSerie()
isSerie in interface TOLObjectisSerie in class TOLRObjecttrue ya que el objeto corresponde al tipo Serie de TOL
public double getValue(TOLDate date)
throws TOLMachineException
date - Fecha de la que desea el valor
TOLMachineException - cuando hay algún error en el acceso a TOL
public double getValue(int index)
throws TOLMachineException
index - Posición de la que desea el valor
TOLMachineException - cuando hay algún error en el acceso a TOL
public TSItem[] getItems(TOLDate date,
int size)
throws TOLMachineException
date - Fecha inicial a partir de la que obtendrán los elementossize - Tamaño del arreglo a obtener
TOLMachineException - cuando hay algún error en el acceso a TOL
public TSItem[] getItems(int index,
int size)
throws TOLMachineException
index - Posición inicial a partir de la que obtendrán los elementossize - Tamaño del arreglo a obtener.
TOLMachineException - cuando hay algún error en el acceso a TOL
public TOLDate getFirstDate()
throws TOLMachineException
TOLMachineException - cuando hay algún error en el acceso a TOL
public TOLDate getLastDate()
throws TOLMachineException
TOLMachineException - cuando hay algún error en el acceso a 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 TOLRSerie y contiene una serie idénticapublic 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 | ||||||||