spis.Surf.InteractModel
Class FunctionOfMaterial
java.lang.Object
spis.Surf.InteractModel.FunctionOfParticle
spis.Surf.InteractModel.FunctionOfParticleNothing
spis.Surf.InteractModel.FunctionOfMaterial
- All Implemented Interfaces:
- ScalFunctionOf3Scal, ScalFunctionOfNothing
- public class FunctionOfMaterial
- extends FunctionOfParticleNothing
Class Name : FunctionOfMaterial
Project ref : SPIS project
File name : FunctionOfMaterial.java
File type : class
Copyright : ONERA, 2 Av. E. Belin, 31055 Toulouse cedex, France
http://www.onecert.fr
Status : under development
Creation : Apr 21, 2004
Modification :
Description : Returns a value only depending on the (impinged) material,
not the particle kinetic parameters:
- compute(x, y, z): returns the value of material y if the material model x
is the one selected in the constructor, and the particle Id is the one
selected in the constructor
- compute(): this not-material-indexed function of this FunctionOfParticleNothing
is not allowed (since htis class is specifically material dependent)
Versions and anomalies correction :
Version number | Author (name, e-mail) | Corrections/Modifications |
0.1 | JF Roussel, roussel@onecert.fr | Creation |
- Version:
- 0.1
- Author:
- JF Roussel
Constructor Summary |
FunctionOfMaterial(ParameterSet[] params,
float defaultValue_,
int modelId,
int particleId,
PartTable partTable)
Default constructor: the returned value is the first parameter of params |
FunctionOfMaterial(ParameterSet[] params,
int paramPosition,
float defaultValue_,
int modelId,
int particleId,
PartTable partTable)
Constructor with an extra parameter: the returned value is the parameter of params in
position paramPosition. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FunctionOfMaterial
public FunctionOfMaterial(ParameterSet[] params,
float defaultValue_,
int modelId,
int particleId,
PartTable partTable)
- Default constructor: the returned value is the first parameter of params
- Parameters:
params
- parameter sets: index = material id, in this constructor, the first param is returneddefaultValue_
- returned value if model or particle Id is not the accepted onepartTable
- particle table the particle Id refers to
FunctionOfMaterial
public FunctionOfMaterial(ParameterSet[] params,
int paramPosition,
float defaultValue_,
int modelId,
int particleId,
PartTable partTable)
- Constructor with an extra parameter: the returned value is the parameter of params in
position paramPosition.
- Parameters:
params
- parameter sets: index = material idparamPosition
- in this constructor, the param of order paramPosition is returned (0, 1...)defaultValue_
- returned value if model or particle Id is not the accepted onepartTable
- particle table the particle Id refers to
getDefaultValue
public float getDefaultValue()
- Returns:
getModelId
public int getModelId()
- Overrides:
getModelId
in class FunctionOfParticle
- Returns:
getParticleId
public int getParticleId()
- Overrides:
getParticleId
in class FunctionOfParticle
- Returns:
getVal
public float[] getVal()
- Returns:
setDefaultValue
public void setDefaultValue(float f)
- Parameters:
f
-
setModelId
public void setModelId(int i)
- Overrides:
setModelId
in class FunctionOfParticle
- Parameters:
i
-
setParticleId
public void setParticleId(int i)
- Overrides:
setParticleId
in class FunctionOfParticle
- Parameters:
i
-
setVal
public void setVal(float[] fs)
- Parameters:
fs
-