| 
|||||||||
| 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.twoDArray
public class twoDArray
Two-dimensional arrays with elements of type OBJECT.
| Field Summary | |
|---|---|
 int | 
nofColumns
 | 
 int | 
nofRows
 | 
 Stella_Object[] | 
theArray
 | 
| Constructor Summary | |
|---|---|
twoDArray()
 | 
|
| Method Summary | |
|---|---|
static Stella_Object | 
access2DArraySlotValue(twoDArray 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 | 
initialize2DArray(twoDArray self)
 | 
static twoDArray | 
new2DArray(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 | 
twoDElement(int row,
            int column)
Return the element of array at position [row, column]. | 
 Stella_Object | 
twoDElementSetter(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 twoDArray()
| Method Detail | 
|---|
public static twoDArray new2DArray(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 twoDElementSetter(Stella_Object value,
                                       int row,
                                       int column)
array at position [row, column]
 to value and return the result.
value - row - column - 
public Stella_Object twoDElement(int row,
                                 int column)
array at position [row, column].
row - column - 
public static void initialize2DArray(twoDArray self)
public void printObject(java.io.PrintStream stream)
printObject in class Stella_Object
public static Stella_Object access2DArraySlotValue(twoDArray 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 | ||||||||