SDSUCS 696 Advanced OO Programming & Design
Spring Semester, 1997
Assignment 2

To Assignment Index
San Diego State University -- This page last updated February 14, 1997
----------

Primitive Operations on a Growable Table


Be prepared to answer and discuss the following questions in class on Tuesday Feb. 18. Documentation on sdsu.util.Table can be found at:
http://www.eli.sdsu.edu/java-SDSU/sdsu.util.Table.html
1. Give a sufficient set of primitive methods for a growable two dimensional table that can be converted to and from a string.

2. Give a complete set of primitive methods for a growable two dimensional table that can be converted to and from a string.

3. Which of the operations on sdsu.util.Table (listed below) are primitive? composite? Which do not belong in the class? Which methods are missing?

4. Comment on the cohesion of the sdsu.util.Table class.

5. Comment on the quality of the names used for the methods in the sdsu.util.Table class.

sdsu.util.Table Methods
ConstructorsSelectorsIterators
addColumn(Vector)
addRow(Vector)
setElementAt(Object, int, int)

fromString(String)
load(InputStream)

setColumnSeperatorChar(...)
setRowSeparatorChar(...)
setTokenCharacters(...)

columnAt(int)
columnsAt(int, int)
columnsAt(Object, int)
rowAt(int)
rowsAt(int, int)
rowsAt(Object, int)

contains(Object)
elementAt(int, int)
indexOf(Object)

numberOfColumns()
numberOfRows()
size()

save(OutputStream, String)
toString()
toString(String)

elements()



----------