| 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.isi.stella.Stella_Object
edu.isi.stella.StandardObject
edu.isi.stella.AbstractCollection
edu.isi.powerloom.logic.MultiDimensionalArray
edu.isi.powerloom.logic.two_D_array
public class two_D_array
Two-dimensional arrays with elements of type OBJECT.
| Field Summary | |
|---|---|
 int | 
nofColumns
 | 
 int | 
nofRows
 | 
 Stella_Object[] | 
theArray
 | 
| Constructor Summary | |
|---|---|
two_D_array()
 | 
|
| Method Summary | |
|---|---|
static Stella_Object | 
access2_D_arraySlotValue(two_D_array self,
                         Symbol slotname,
                         Stella_Object value,
                         boolean setvalueP)
 | 
 void | 
fillArray(Cons values)
Fill the two-dimensional array self in row-major-order
 from values. | 
static void | 
initialize2_D_array(two_D_array self)
 | 
static two_D_array | 
new2_D_array(int nofRows,
             int nofColumns)
 | 
 Surrogate | 
primaryType()
Returns the primary type of self. | 
 void | 
printArray(java.io.PrintStream stream)
Print the array self to stream. | 
 void | 
printObject(java.io.PrintStream stream)
 | 
 Stella_Object | 
two_D_element(int row,
              int column)
Return the element of array at position [row, column]. | 
 Stella_Object | 
two_D_elementSetter(Stella_Object value,
                    int row,
                    int column)
Set the element of array at position [row, column]
 to value and return the result. | 
| Methods inherited from class edu.isi.powerloom.logic.MultiDimensionalArray | 
|---|
newMultiDimensionalArray | 
| Methods inherited from class edu.isi.stella.AbstractCollection | 
|---|
allocateIterator, length | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Field Detail | 
|---|
public int nofRows
public int nofColumns
public Stella_Object[] theArray
| Constructor Detail | 
|---|
public two_D_array()
| Method Detail | 
|---|
public static two_D_array new2_D_array(int nofRows,
                                       int nofColumns)
public void printArray(java.io.PrintStream stream)
self to stream.
stream - public void fillArray(Cons values)
self in row-major-order
 from values.  Missing values will retain their old values, extraneous values
 will be ignored.
values - 
public Stella_Object two_D_elementSetter(Stella_Object value,
                                         int row,
                                         int column)
array at position [row, column]
 to value and return the result.
value - row - column - 
public Stella_Object two_D_element(int row,
                                   int column)
array at position [row, column].
row - column - 
public static void initialize2_D_array(two_D_array self)
public void printObject(java.io.PrintStream stream)
printObject in class Stella_Object
public static Stella_Object access2_D_arraySlotValue(two_D_array self,
                                                     Symbol slotname,
                                                     Stella_Object value,
                                                     boolean setvalueP)
public Surrogate primaryType()
Stella_Objectself.
 Gets defined automatically for every non-abstract subclass of OBJECT.
primaryType in class MultiDimensionalArray
  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||