All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class collage.kernel.Table

java.lang.Object
   |
   +----openstar.util.TypedList
           |
           +----collage.kernel.Table

public class Table
extends TypedList
Derivation table class.

A derivation table is a list of TableElements. A table object can be queried for the next TableElement that should be used in a derivation.

Version:
14 Apr 1997
Author:
Nils Schwabe

Constructor Index

 o Table()

Method Index

 o getMaxUntil(int[])
Returns the number of derivation steps defined by the TableElements of this Table.
 o insert(TableElement)
Inserts a new TableElement into this table.
 o nextTable(int, int[])
Returns the next TableElement (or null) that should be used until derivation step until.

Constructors

 o Table
  public Table()

Methods

 o insert
  public boolean insert(TableElement te)
Inserts a new TableElement into this table.

 o nextTable
  public TableElement nextTable(int until,
                                int table[])
Returns the next TableElement (or null) that should be used until derivation step until. The first element of the integer array is set to the table number of the chosen table.

 o getMaxUntil
  public boolean getMaxUntil(int maxUntil[])
Returns the number of derivation steps defined by the TableElements of this Table. The information is stored in the first element of the integer array. false is returned in the case that the table contains no elements.


All Packages  Class Hierarchy  This Package  Previous  Next  Index