sources
Class Variable

java.lang.Object
  extended bysources.Variable
Direct Known Subclasses:
CategorialVariable, ContinuousVariable, OrdinalVariable

public abstract class Variable
extends java.lang.Object

A superclass that represents a Variable


Field Summary
protected  int id
          the variable id
protected  java.lang.String name
          Name of this Variable
 
Constructor Summary
Variable()
          Creates new Variable
 
Method Summary
 boolean equals(Variable varz)
          chacks, if an other variable is the same as this
abstract  int getCount()
          returns the number of cases
 int getID()
          returns the id of the variable
 java.lang.String getName()
          returns the name of this Variable
abstract  java.lang.String getTextualRepresentation(int i)
          Returns the textual Representation of this case
 java.lang.String[] getTextualRepresentations()
          returns all textual representations
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

protected java.lang.String name
Name of this Variable


id

protected int id
the variable id

Constructor Detail

Variable

public Variable()
Creates new Variable

Method Detail

getTextualRepresentation

public abstract java.lang.String getTextualRepresentation(int i)
Returns the textual Representation of this case

Parameters:
i - case to get the textual representation
Returns:
textual representation

getTextualRepresentations

public java.lang.String[] getTextualRepresentations()
returns all textual representations

Returns:
list of textual representations of all cases

getID

public int getID()
returns the id of the variable

Returns:
the variable id

getCount

public abstract int getCount()
returns the number of cases

Returns:
number of cases

getName

public java.lang.String getName()
returns the name of this Variable

Returns:
the name of the Variable

equals

public boolean equals(Variable varz)
chacks, if an other variable is the same as this

Parameters:
varz - the othter variable
Returns:
true, if the other variable equals this