|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjabble.DataStructuresFactory
public abstract class DataStructuresFactory
Factory for the data structure classes, such as Point, Grid and Field.
| Constructor Summary | |
|---|---|
DataStructuresFactory()
|
|
| Method Summary | |
|---|---|
abstract Field |
createField(Field field)
Creates a new field that is the copy of the given Field. |
abstract Field |
createField(java.lang.String name,
double[] data,
Grid grid)
Creates a new field with the given name, data and Grid. |
abstract Field |
createField(java.lang.String name,
Grid grid)
Creates a new field with a value of zero at each point of the Grid. |
abstract Grid |
createGrid(Grid grid)
Creates a new Grid object with the same dimension and sizes of the given Grid. |
abstract Grid |
createGrid(int... sizes)
Creates a Grid of the specified size. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DataStructuresFactory()
| Method Detail |
|---|
public abstract Field createField(java.lang.String name,
Grid grid)
name - The name of the field (will be used to identify it in the Slice object)grid - The Grid on which the field is defined.public abstract Field createField(Field field)
field - The template field from which to create the new one
public abstract Field createField(java.lang.String name,
double[] data,
Grid grid)
name - the name to give to the fielddata - array containing all the values of the field across the gridgrid - the grid on which the field is definedpublic abstract Grid createGrid(int... sizes)
sizes - The number of points in each direction.public abstract Grid createGrid(Grid grid)
grid - The grid to use as a prototype
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||