inpro.irmrsc.rmrs
Class Variable

java.lang.Object
  extended by inpro.irmrsc.rmrs.Variable

public class Variable
extends java.lang.Object

A variable of a Variable.Type with an integer ID.

Author:
Andreas Peldszus

Nested Class Summary
static class Variable.Type
           
 
Field Summary
private  int mID
           
private  Variable.Type mType
           
 
Constructor Summary
Variable()
           
Variable(int ID)
           
Variable(int ID, Variable.Type aType)
           
Variable(Variable.Type Type)
           
Variable(Variable v)
           
 
Method Summary
 int getID()
           
 Variable.Type getType()
           
 boolean isSpecifiedIndexVariable()
           
 void parseXML(org.jdom.Element e)
          initializes this variable object from XML element variable definition <vdef>
 boolean sameIDAs(Variable v)
           
 boolean sameTypeAs(Variable v)
           
 void setID(int ID)
           
 void setType(Variable.Type mType)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

mID

private int mID

mType

private Variable.Type mType
Constructor Detail

Variable

public Variable(int ID,
                Variable.Type aType)

Variable

public Variable(int ID)

Variable

public Variable(Variable.Type Type)

Variable

public Variable()

Variable

public Variable(Variable v)
Method Detail

getID

public int getID()

getType

public Variable.Type getType()

isSpecifiedIndexVariable

public boolean isSpecifiedIndexVariable()

setID

public void setID(int ID)

setType

public void setType(Variable.Type mType)

sameTypeAs

public boolean sameTypeAs(Variable v)

sameIDAs

public boolean sameIDAs(Variable v)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

parseXML

public void parseXML(org.jdom.Element e)
initializes this variable object from XML element variable definition <vdef>

Parameters:
e - the element