spis.Util.Monitor
Class Trajectory

java.lang.Object
  extended byspis.Util.Monitor.Trajectory
All Implemented Interfaces:
java.io.Serializable

public class Trajectory
extends java.lang.Object
implements java.io.Serializable

Class Name : Trajectory
Project ref : SPIS project
File name : Trajectory.java
File type : class
Copyright : ONERA, 2 Av. E. Belin, 31055 Toulouse cedex, France http://www.onecert.fr
Status : under development
Creation : Mar 2, 2004
Modification :

Description :

Versions and anomalies correction :

Version numberAuthor (name, e-mail) Corrections/Modifications
0.1 JF Roussel, roussel@onecert.frCreation


Version:
0.1
Author:
JF Roussel
See Also:
Serialized Form

Field Summary
private  int index
          trajectory index (can be the order index but can also be used to store particle type, start surface...)
private  java.lang.String name
          Trajectory name or description
private  int pointNb
          point number on the trajevtory
private  SpaceVectTable posT
          trajectory positions
private  FloatScalTable timeT
          time table (time of each position
private  VolMesh vm
          volume mesh this trajectoris lives in
 
Constructor Summary
Trajectory(VolMesh volMesh, java.lang.String name_, int index_)
          Default constructor with trajectory name (or description) and index (can be the order index, but can also be used to store particle type, start surface...)
 
Method Summary
 void addPoint(float[] position, float time)
           
 int getIndex()
           
 java.lang.String getName()
           
 int getPointNb()
           
 float[][] getPosArray()
           
 SpaceVectTable getPosTable()
           
 float[] getTimeArray()
           
 FloatScalTable getTimeTable()
           
 void setIndex(int i)
           
 void setName(java.lang.String string)
           
 void setPointNb(int i)
           
 void setPosTable(SpaceVectTable table)
           
 void setTimeTable(FloatScalTable table)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

vm

private VolMesh vm
volume mesh this trajectoris lives in


posT

private SpaceVectTable posT
trajectory positions


timeT

private FloatScalTable timeT
time table (time of each position


pointNb

private int pointNb
point number on the trajevtory


index

private int index
trajectory index (can be the order index but can also be used to store particle type, start surface...)


name

private java.lang.String name
Trajectory name or description

Constructor Detail

Trajectory

public Trajectory(VolMesh volMesh,
                  java.lang.String name_,
                  int index_)
Default constructor with trajectory name (or description) and index (can be the order index, but can also be used to store particle type, start surface...)

Method Detail

addPoint

public void addPoint(float[] position,
                     float time)

getIndex

public int getIndex()
Returns:
trajectory index

getName

public java.lang.String getName()
Returns:
trajectory name

getPointNb

public int getPointNb()
Returns:
trajectory point number

getPosTable

public SpaceVectTable getPosTable()
Returns:
trajectory successive point table

getTimeTable

public FloatScalTable getTimeTable()
Returns:
time of successive points

getPosArray

public float[][] getPosArray()
Returns:
trajectory successive point table

getTimeArray

public float[] getTimeArray()
Returns:
time of successive points

setIndex

public void setIndex(int i)
Parameters:
i - trajectory indes

setName

public void setName(java.lang.String string)
Parameters:
string - trajectory name

setPointNb

public void setPointNb(int i)
Parameters:
i - trajectory point number

setPosTable

public void setPosTable(SpaceVectTable table)
Parameters:
table - trajectory points table

setTimeTable

public void setTimeTable(FloatScalTable table)
Parameters:
table - times of successive points