
import java.util.*;
import java.io.*;


/** Represents the basic data object in the UI Components. Each row in
 *  FooTable and each node in FooTree represents an instance of D.
 */
public class D implements Serializable
{
    private Integer _id        = null;
    private String  _label     = "";
    private Float   _score     = null;
    private Vector  _relations = null;

    //-------------------------------------------------------------------------|

    public D( Integer id,
              String  label,
              Float   score,
              Vector  relations)
    {
        _id        = id;
        _label     = label;
        _score     = score;
        _relations = relations;
    }

    public Integer getId()                         { return _id; }
    public String  getLabel()                      { return _label; }
    public Float   getScore()                      { return _score; }
    public Vector  getRelations()                  { return _relations; }

    public void    setId       ( Integer id)       { _id = id; }
    public void    setLabel    ( String label)     { _label = label; }
    public void    setScore    ( Float score)      { _score = score; }
    public void    setRelations( Vector relations) { _relations = relations; }

    public String toString()
    {
        return new String( _id + ", " + _label + ", " + _score);
    }
}
//--< D ends here >------------------------------------------------------------|