|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectspis.Surf.InteractModel.FunctionOfParticle
spis.Surf.InteractModel.FunctionOfParticleNothing
spis.Surf.InteractModel.FunctionOfMaterial
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 |
Field Summary | |
private float |
defaultValue
default value, returned for model Id different from modelId and particle Id different from particleId |
private float[] |
val
array of value to be returned (index = material Id) |
Fields inherited from class spis.Surf.InteractModel.FunctionOfParticle |
defaultParamsId, materialRange, modelId, particleId, partTable |
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. |
Method Summary | |
protected float |
compute(int matId)
Protected abstract method to be implemented by derived classes (the only one, always the one called by the public methods defined in FunctionOfParticleE) |
float |
getDefaultValue()
|
int |
getModelId()
|
int |
getParticleId()
|
float[] |
getVal()
|
private void |
initVal(ParameterSet[] params,
int paramPosition)
initialise the val array from the ParameterSet params, and the position of the parameters to be returned |
void |
setDefaultValue(float f)
|
void |
setModelId(int i)
|
void |
setParticleId(int i)
|
void |
setVal(float[] fs)
|
Methods inherited from class spis.Surf.InteractModel.FunctionOfParticleNothing |
compute, compute, compute, compute |
Methods inherited from class spis.Surf.InteractModel.FunctionOfParticle |
getDefaultParamsId, getMaterialRange, getPartTable, selectParamSet, setDefaultParams, setDefaultParamsId, setMaterialRange, setPartTable |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private float defaultValue
private float[] val
Constructor Detail |
public FunctionOfMaterial(ParameterSet[] params, float defaultValue_, int modelId, int particleId, PartTable partTable)
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 topublic FunctionOfMaterial(ParameterSet[] params, int paramPosition, float defaultValue_, int modelId, int particleId, PartTable partTable)
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 toMethod Detail |
private void initVal(ParameterSet[] params, int paramPosition)
protected float compute(int matId)
FunctionOfParticleNothing
compute
in class FunctionOfParticleNothing
matId
- material Id
FunctionOfParticleNothing
public float getDefaultValue()
public int getModelId()
getModelId
in class FunctionOfParticle
public int getParticleId()
getParticleId
in class FunctionOfParticle
public float[] getVal()
public void setDefaultValue(float f)
f
- public void setModelId(int i)
setModelId
in class FunctionOfParticle
i
- public void setParticleId(int i)
setParticleId
in class FunctionOfParticle
i
- public void setVal(float[] fs)
fs
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |