candy.util
Class CandyTable

java.lang.Object
  |
  +--candy.core.candyObject
        |
        +--candy.util.CandyTable
All Implemented Interfaces:
net.jini.core.entry.Entry, java.io.Serializable

public class CandyTable
extends candyObject

A CandyTable is used to keep record of various things in the candySpace and the whole distributed application as a whole. In so many words, a CandyTable is a Vector of data that we have slightly more control over and can be placed into our space.

Author:
Jason Corso (jcorso@cs.jhu.edu)
See Also:
Serialized Form

Field Summary
static int EXTERNALFILE
           
static int MEETING
           
 java.util.Vector table
           
static int TRANSCRIPT
           
 java.lang.Integer type
           
 
Fields inherited from class candy.core.candyObject
description, handle, timestamp
 
Constructor Summary
CandyTable()
           
CandyTable(CandyTable ct)
           
CandyTable(int t)
           
 
Method Summary
 void addElement(CandyTableMeta m)
           
 CandyTableMeta elementAt(int row)
           
 CandyTableMeta getByHandle(java.lang.String h)
           
 java.lang.Object getValueAt(int row, int column)
          getValueAt treats the CandyTable as an actual table Objects in the CandyTable must expose the CandyTableMeta interface.
 java.util.Iterator iterator()
           
 void makeMeTemplate()
          makeMeTemplate to match any type of CandyTable This is a dangerous match because it will pull anything
 void makeMeTemplate(int t)
           
 void removeByHandle(java.lang.String h)
           
 boolean removeElement(CandyTableMeta m)
          removeElement from the Table.
 void removeElementAt(int row)
           
 int size()
           
 java.lang.Object[] toArray()
           
 
Methods inherited from class candy.core.candyObject
getDescription, getHandle, setDescription, setHandle
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EXTERNALFILE

public static final int EXTERNALFILE

TRANSCRIPT

public static final int TRANSCRIPT

MEETING

public static final int MEETING

type

public java.lang.Integer type

table

public java.util.Vector table
Constructor Detail

CandyTable

public CandyTable()

CandyTable

public CandyTable(int t)

CandyTable

public CandyTable(CandyTable ct)
Method Detail

toArray

public java.lang.Object[] toArray()

addElement

public void addElement(CandyTableMeta m)

elementAt

public CandyTableMeta elementAt(int row)

getValueAt

public java.lang.Object getValueAt(int row,
                                   int column)
getValueAt treats the CandyTable as an actual table Objects in the CandyTable must expose the CandyTableMeta interface. (would innerclassing be better?) to aid in the JTable rendering!

getByHandle

public CandyTableMeta getByHandle(java.lang.String h)

iterator

public java.util.Iterator iterator()

makeMeTemplate

public void makeMeTemplate()
makeMeTemplate to match any type of CandyTable This is a dangerous match because it will pull anything

makeMeTemplate

public void makeMeTemplate(int t)

removeElement

public boolean removeElement(CandyTableMeta m)
removeElement from the Table. If this is the server object -- we know the server listener will also take the data itself from the space.

removeElementAt

public void removeElementAt(int row)

removeByHandle

public void removeByHandle(java.lang.String h)

size

public int size()