com.hcarralero.toljava
Class TOLRObject

java.lang.Object
  extended by com.hcarralero.toljava.TOLRObject
All Implemented Interfaces:
TOLObject
Direct Known Subclasses:
TOLRSerie, TOLRSet, TOLRTimeSet

public abstract class TOLRObject
extends java.lang.Object
implements TOLObject

Representa un objeto definido en un entorno de TOL, la máquina de TOL es quien maneja al objeto, en cuanto a su creación, generación de valores y eliminación. El objeto en TOLJava sólo es una referencia a un objeto definido en TOL.

Subclases de TOLRObject deben tener correspondencia con tipos de datos de TOL, tales como TimeSet, Set y Serie.


Field Summary
protected  TOLMachine tm
           
protected  java.lang.String varname
           
 
Constructor Summary
TOLRObject(TOLMachine tm, java.lang.String varname)
          Construye un objeto de tipo TOLRObject
 
Method Summary
 TOLMachine getTm()
          Obtiene el objeto TOLMachine al que está ligado esta referencia
 java.lang.String getVarname()
          Obtiene el nombre de la variable del objeto en TOL
 boolean isCode()
          Determina si el objeto corresponde al tipo Code de TOL
 boolean isComplex()
          Determina si el objeto corresponde al tipo Complex de TOL
 boolean isDate()
          Determina si el objeto corresponde al tipo Date de TOL
 boolean isMatrix()
          Determina si el objeto corresponde al tipo Matrix de TOL
 boolean isPolyn()
          Determina si el objeto corresponde al tipo Polyn de TOL
 boolean isRatio()
          Determina si el objeto corresponde al tipo Ratio de TOL
 boolean isReal()
          Determina si el objeto corresponde al tipo Real de TOL
 boolean isReference()
          Determina si el objeto representa una referencia a un objeto creado en TOL
 boolean isSerie()
          Determina si el objeto corresponde al tipo Serie de TOL
 boolean isSet()
          Determina si el objeto corresponde al tipo Set de TOL
 boolean isText()
          Determina si el objeto corresponde al tipo Text de TOL
 boolean isTimeSet()
          Determina si el objeto corresponde al tipo TimeSet de TOL
 boolean isVMatrix()
          Determina si el objeto corresponde al tipo VMatrix de TOL
 void setTm(TOLMachine tm)
          Establece el objeto TOLMachine al que está ligado esta referencia
 void setVarname(java.lang.String varname)
          Establece el nombre de la variable del objeto en TOL
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

tm

protected TOLMachine tm

varname

protected java.lang.String varname
Constructor Detail

TOLRObject

public TOLRObject(TOLMachine tm,
                  java.lang.String varname)
Construye un objeto de tipo TOLRObject

Parameters:
tm - el objeto TOLMachine al que está ligado
varname - el nombre de la variable en TOL
Method Detail

getTm

public TOLMachine getTm()
Obtiene el objeto TOLMachine al que está ligado esta referencia

Returns:
el objeto TOLMachine al que está ligado esta referencia

setTm

public void setTm(TOLMachine tm)
Establece el objeto TOLMachine al que está ligado esta referencia

Parameters:
tm - nuevo objeto TOLMachine

getVarname

public java.lang.String getVarname()
Obtiene el nombre de la variable del objeto en TOL

Returns:
el nombre de la variable del objeto en TOL

setVarname

public void setVarname(java.lang.String varname)
Establece el nombre de la variable del objeto en TOL

Parameters:
varname - nuevo nombre de la variable

isText

public boolean isText()
Determina si el objeto corresponde al tipo Text de TOL

Specified by:
isText in interface TOLObject
Returns:
true ya que el objeto corresponde al tipo Text de TOL

isReal

public boolean isReal()
Determina si el objeto corresponde al tipo Real de TOL

Specified by:
isReal in interface TOLObject
Returns:
false ya que el objeto no corresponde al tipo Real de TOL

isDate

public boolean isDate()
Determina si el objeto corresponde al tipo Date de TOL

Specified by:
isDate in interface TOLObject
Returns:
false ya que el objeto no corresponde al tipo Date de TOL

isComplex

public boolean isComplex()
Determina si el objeto corresponde al tipo Complex de TOL

Specified by:
isComplex in interface TOLObject
Returns:
false ya que el objeto no corresponde al tipo Complex de TOL

isMatrix

public boolean isMatrix()
Determina si el objeto corresponde al tipo Matrix de TOL

Specified by:
isMatrix in interface TOLObject
Returns:
false ya que el objeto no corresponde al tipo Matrix de TOL

isVMatrix

public boolean isVMatrix()
Determina si el objeto corresponde al tipo VMatrix de TOL

Specified by:
isVMatrix in interface TOLObject
Returns:
false ya que el objeto no corresponde al tipo VMatrix de TOL

isPolyn

public boolean isPolyn()
Determina si el objeto corresponde al tipo Polyn de TOL

Specified by:
isPolyn in interface TOLObject
Returns:
false ya que el objeto no corresponde al tipo Polyn de TOL

isRatio

public boolean isRatio()
Determina si el objeto corresponde al tipo Ratio de TOL

Specified by:
isRatio in interface TOLObject
Returns:
false ya que el objeto no corresponde al tipo Ratio de TOL

isSerie

public boolean isSerie()
Determina si el objeto corresponde al tipo Serie de TOL

Specified by:
isSerie in interface TOLObject
Returns:
false ya que el objeto no corresponde al tipo Serie de TOL

isTimeSet

public boolean isTimeSet()
Determina si el objeto corresponde al tipo TimeSet de TOL

Specified by:
isTimeSet in interface TOLObject
Returns:
false ya que el objeto no corresponde al tipo TimeSet de TOL

isSet

public boolean isSet()
Determina si el objeto corresponde al tipo Set de TOL

Specified by:
isSet in interface TOLObject
Returns:
false ya que el objeto no corresponde al tipo Set de TOL

isCode

public boolean isCode()
Determina si el objeto corresponde al tipo Code de TOL

Specified by:
isCode in interface TOLObject
Returns:
false ya que el objeto no corresponde al tipo Code de TOL

isReference

public boolean isReference()
Determina si el objeto representa una referencia a un objeto creado en TOL

Specified by:
isReference in interface TOLObject
Returns:
true ya que el objeto representa una referencia a un objeto creado en TOL