rvl.util
Class Category

java.lang.Object
  |
  +--rvl.util.Category
All Implemented Interfaces:
Value

public class Category
extends java.lang.Object
implements Value

Class for specifying categorical parameters


Field Summary
 java.lang.String[] catName
           
 java.lang.String label
           
 java.lang.String name
           
 double value
           
 
Constructor Summary
Category(java.lang.String nam, java.lang.String[] cats, int init)
          Construct a Category object
 
Method Summary
 java.lang.String getLabel()
           
 java.lang.String getName()
           
 boolean isValid(double val)
           
 void setLabel(java.lang.String l)
           
 void setValue(double v)
           
 double val()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

public java.lang.String name

label

public java.lang.String label

catName

public java.lang.String[] catName

value

public double value
Constructor Detail

Category

public Category(java.lang.String nam,
                java.lang.String[] cats,
                int init)
Construct a Category object
Parameters:
nam - name of parameter
cats - names of categories
init - initial index (in 0 ... cats.length - 1)
Method Detail

isValid

public boolean isValid(double val)
Specified by:
isValid in interface Value

val

public double val()
Specified by:
val in interface Value

setValue

public void setValue(double v)
Specified by:
setValue in interface Value

getName

public java.lang.String getName()
Specified by:
getName in interface Value

getLabel

public java.lang.String getLabel()
Specified by:
getLabel in interface Value

setLabel

public void setLabel(java.lang.String l)
Specified by:
setLabel in interface Value