|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjabble.Slice
public class Slice
A slice in time with its Grid and Fields.
| Constructor Summary | |
|---|---|
Slice(EquationSet equation)
Creates a new Slice for the given equation, and initializes the fields in the slice based on the fields and grid defined by the equation. |
|
Slice(Grid grid,
EquationSet equation)
Creates a Slice for the given equation and the given Grid (not the one the equation set is defined on). |
|
Slice(Slice slice)
Creates a new slice by copying the given slice, including copying the values of the fields. |
|
| Method Summary | |
|---|---|
void |
addField(Field f)
Includes in the given field in the slice. |
void |
addIndicator(java.lang.String name,
Indicator indicator)
Adds an indicator that should be computed as part of the Slice. |
java.util.List<Field> |
getCoordinateFields()
Returns the list of fields associated to the coordinates, in the order in which the coordinates where defined. |
java.util.List<Field> |
getDifferentialFields()
Returns the list of fields associated to the coordinate differentials, in the order in which the coordinates where defined. |
EquationSet |
getEquationSet()
Returns the equation set for which the Slice is defined. |
Field |
getField(java.lang.String name)
Returns the field that corresponds to the given name. |
java.util.Set<java.lang.String> |
getFieldNames()
Returns the names of the fields that are included in the slice. |
Grid |
getGrid()
Returns the grid on which the slice is defined. |
Indicator |
getIndicator(java.lang.String name)
Returns the indicator with the given name. |
java.util.Set<java.lang.String> |
getIndicatorNames()
Returns the names of the indicators defined on the slice. |
Field |
getScalarField(java.lang.String name)
|
java.util.Set<java.lang.String> |
getScalarFields()
|
Field[][] |
getTensorField(java.lang.String tensorName)
|
java.util.Set<java.lang.String> |
getTensorFields()
|
Field[] |
getVectorField(java.lang.String vectorName)
|
java.util.Set<java.lang.String> |
getVectorFields()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Slice(Grid grid,
EquationSet equation)
grid - the grid on which the slice and all fields should be defined onequation - the equation to use as the definitionpublic Slice(EquationSet equation)
equation - the equation to use as the definitionpublic Slice(Slice slice)
slice - the slice from which to copy| Method Detail |
|---|
public void addField(Field f)
f - a field defined on the grid slicepublic Field getField(java.lang.String name)
name - the name of the field
public EquationSet getEquationSet()
public Grid getGrid()
public java.util.Set<java.lang.String> getFieldNames()
public void addIndicator(java.lang.String name,
Indicator indicator)
name - the name of the indicatorindicator - the indicatorpublic java.util.Set<java.lang.String> getIndicatorNames()
public Indicator getIndicator(java.lang.String name)
name - the name of an indicator
public java.util.List<Field> getCoordinateFields()
public java.util.List<Field> getDifferentialFields()
public java.util.Set<java.lang.String> getScalarFields()
public Field getScalarField(java.lang.String name)
public java.util.Set<java.lang.String> getVectorFields()
public Field[] getVectorField(java.lang.String vectorName)
public java.util.Set<java.lang.String> getTensorFields()
public Field[][] getTensorField(java.lang.String tensorName)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||