|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectspis.Util.Part.PartTable
Class Name : PartTable
Project ref : SPIS project
File name : Part.java
File type : class
Copyright : ONERA, 2 Av. E. Belin, 31055 Toulouse cedex, France
http://www.onecert.fr
Status : under development
Creation : 25/08/2003
Modification :
Description : Particle Table
Table of the physical particles.
Still under work because the current implementation (Vector of Part)
may not be very efficient
Versions and anomalies correction :
Version number | Author (name, e-mail) | Corrections/Modifications |
0.1 | JF Roussel, roussel@onecert.fr | Creation |
Constructor Summary | |
PartTable(Part[] partArray)
Default constructor |
Method Summary | |
float[] |
getChargeArray()
Returns the array of the charges of each particle type (array index = particle type) |
float[] |
getChargeOverMassArray()
Returns the array of the q/m ratios of each particle type (array index = particle type) |
int |
getDim()
|
float[] |
getMassArray()
Returns the array of the masses of each particle type (array index = particle type) |
Part[] |
getPartArray()
|
Part |
getPartNamed(java.lang.String partName)
Returns the particle of the table named partName. |
int |
indexOf(Part particleType)
Returns the index of the particle particleType in this table of particles (-1 if not found) |
int |
indexOfAdd(Part particleType)
Returns the index of the particle particleType in this table of particles, adding it at the end of the list if necessary (hence not changing other particles indexing) |
void |
mapCharge(IntScalTable partTypeT,
FloatScalTable chargeT)
Maps particle charges onto chargeT (particle types are partTypeIdT). |
void |
mapChargeOverMass(IntScalTable partTypeT,
FloatScalTable chargeOverMassT)
Maps particle q/m ratios onto chargeOverMassT (particle types are partTypeIdT). |
void |
mapMass(IntScalTable partTypeT,
FloatScalTable massT)
Maps particle masses onto massT (particle types are partTypeIdT). |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PartTable(Part[] partArray)
Method Detail |
public int indexOf(Part particleType)
particleType
-
public int indexOfAdd(Part particleType)
particleType
-
public Part getPartNamed(java.lang.String partName)
partName
-
SpisParameterNotFoundException
public float[] getChargeArray()
public float[] getMassArray()
public float[] getChargeOverMassArray()
public void mapCharge(IntScalTable partTypeT, FloatScalTable chargeT)
public void mapMass(IntScalTable partTypeT, FloatScalTable massT)
public void mapChargeOverMass(IntScalTable partTypeT, FloatScalTable chargeOverMassT)
public int getDim()
public Part[] getPartArray()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |