function
Class WaveDragAxisymmetric.CART3D

java.lang.Object
  extended by function.BasicScalarFunction
      extended by caffeinterface.CaffeToScalarFunction
          extended by function.WaveDragAxisymmetric.CART3D
All Implemented Interfaces:
Computable, ScalarFunction, VariableBounds
Enclosing class:
WaveDragAxisymmetric

public static class WaveDragAxisymmetric.CART3D
extends CaffeToScalarFunction
implements VariableBounds

Author:
dgorur

Field Summary
protected static Cart3DRunner cart3dRunner
           
protected  CommandLine commandLine
           
 
Fields inherited from class caffeinterface.CaffeToScalarFunction
db
 
Fields inherited from class function.BasicScalarFunction
DEFAULT_BOUNDS, DEFAULT_DIM, VALUE_OUTSIDE_BOUNDS
 
Constructor Summary
WaveDragAxisymmetric.CART3D()
           
 
Method Summary
 Hypercube getBounds()
          Returns a Hypercube specifying the domain of this Computable.
 WaveDragAxisymmetric getParent()
          Returns the parent.
 void init()
          Initialization method.
static void main(java.lang.String[] args)
           
protected  void populateDatabase(double[] x)
          Design variables are sref sweepw arw taperw lex tex chordextspan dihedralw incidence.break incidence.tip
 double quickCompute(double[] x)
          Populates the database, runs the compute routine on the main class, and then returns the value of the variable in the database corresponding to the compute-variable name.
 void setBounds(Hypercube bounds)
          Sets the bounds for this ScalarFunction.
 void setParent(WaveDragAxisymmetric parent)
          Sets the parent.
 
Methods inherited from class caffeinterface.CaffeToScalarFunction
getComputeVarName, getMainClass, getXmlFileName, setComputeVarName, setXmlFileName
 
Methods inherited from class function.BasicScalarFunction
checkDimensions, compute, compute, compute, compute, compute, compute, getInputDimension, getOutputDimension, isWithinBounds, makeBounds, quickCompute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cart3dRunner

protected static final Cart3DRunner cart3dRunner

commandLine

protected CommandLine commandLine
Constructor Detail

WaveDragAxisymmetric.CART3D

public WaveDragAxisymmetric.CART3D()
Method Detail

main

public static void main(java.lang.String[] args)

getBounds

public Hypercube getBounds()
Description copied from interface: Computable
Returns a Hypercube specifying the domain of this Computable.

Specified by:
getBounds in interface Computable
Overrides:
getBounds in class BasicScalarFunction
Returns:
the domain of this ScalarFunction.

getParent

public WaveDragAxisymmetric getParent()
Returns the parent.

Returns:
the parent.

setBounds

public void setBounds(Hypercube bounds)
Description copied from interface: VariableBounds
Sets the bounds for this ScalarFunction.

Specified by:
setBounds in interface VariableBounds
Parameters:
bounds - the given bounds.

setParent

public void setParent(WaveDragAxisymmetric parent)
Sets the parent.

Parameters:
parent - the given parent.

init

public void init()
Description copied from class: BasicScalarFunction
Initialization method.

Specified by:
init in interface ScalarFunction
Overrides:
init in class CaffeToScalarFunction

quickCompute

public double quickCompute(double[] x)
Description copied from class: CaffeToScalarFunction
Populates the database, runs the compute routine on the main class, and then returns the value of the variable in the database corresponding to the compute-variable name.

Specified by:
quickCompute in interface ScalarFunction
Overrides:
quickCompute in class CaffeToScalarFunction
Parameters:
x - the given input.
Returns:
the output corresponding to the given input.
See Also:
BasicScalarFunction.quickCompute(double[])

populateDatabase

protected void populateDatabase(double[] x)
Design variables are sref sweepw arw taperw lex tex chordextspan dihedralw incidence.break incidence.tip

Specified by:
populateDatabase in class CaffeToScalarFunction
Parameters:
x - the given set of design values.
See Also:
CaffeToScalarFunction.quickCompute(double[])