|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.ObjectSimpleScalarEnvironment
public class SimpleScalarEnvironment
2d box with no scalar fields of a fixed (at construction time) width and height
| Constructor Summary | |
|---|---|
SimpleScalarEnvironment()
|
|
SimpleScalarEnvironment(double[] arrLfMin,
double[] arrLfMax,
boolean bAddDflt)
|
|
SimpleScalarEnvironment(double lfWidth,
double lfHeight,
boolean bAddDefault)
|
|
SimpleScalarEnvironment(SimpleScalarEnvironment src)
|
|
| Method Summary | |
|---|---|
IBoundary |
getBoundary()
Gets boundary interface |
int |
getDimensionality()
dimensionality of space in which environment is embedded |
double |
getFieldVal(int nWhichField,
double[] arrLoc)
Gets a particular field value at a particular location Invalid for this class Figure out how to declare exceptions in interface definitions |
double[] |
getFieldVals(double[] arrLoc)
Gets all field values for a particular location as a vector Invalid for this class Figure out how to declare exceptions in interface definitions |
double[] |
getGradient(int nWhichField,
double[] arrLoc)
Gradient at a particular location for a given field |
void |
getGradient(int nWhichField,
double[] arrLoc,
double[] arrRslt)
Gradient at a particular location for a given field |
int |
getNumScalars()
number of scalar fields over environment |
void |
initializeVars(double[] arrLfMin,
double[] arrLfMax,
boolean bAddDflt)
|
void |
initializeVars(double lfWidth,
double lfHeight,
boolean bAddDefault)
|
IEnvironment |
makeCopy()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SimpleScalarEnvironment()
public SimpleScalarEnvironment(double lfWidth,
double lfHeight,
boolean bAddDefault)
public SimpleScalarEnvironment(double[] arrLfMin,
double[] arrLfMax,
boolean bAddDflt)
public SimpleScalarEnvironment(SimpleScalarEnvironment src)
| Method Detail |
|---|
public void initializeVars(double lfWidth,
double lfHeight,
boolean bAddDefault)
public void initializeVars(double[] arrLfMin,
double[] arrLfMax,
boolean bAddDflt)
public double[] getGradient(int nWhichField,
double[] arrLoc)
getGradient in interface IEnvironmentnWhichField - field to take gradient ofarrLoc - place at which to take gradient
public void getGradient(int nWhichField,
double[] arrLoc,
double[] arrRslt)
getGradient in interface IEnvironmentnWhichField - field to take gradient ofarrLoc - place at which to take gradientarrRslt - gradient (of proper dimensionality) as a double []public int getDimensionality()
getDimensionality in interface IEnvironmentpublic int getNumScalars()
getNumScalars in interface IEnvironment
public double getFieldVal(int nWhichField,
double[] arrLoc)
getFieldVal in interface IEnvironmentpublic double[] getFieldVals(double[] arrLoc)
getFieldVals in interface IEnvironmentarrLoc - invalid for this class
public IEnvironment makeCopy()
makeCopy in interface IEnvironmentpublic IBoundary getBoundary()
getBoundary in interface IEnvironment
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||