|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjat.cm.FiniteBurnList
public class FiniteBurnList
The FiniteBurnList.java Class provides a way to deal with a list of finite burns read from a file.
| Constructor Summary | |
|---|---|
FiniteBurnList()
Constructor |
|
FiniteBurnList(java.lang.String filename)
Constructor |
|
| Method Summary | |
|---|---|
double |
accel(int index)
Returns the acceleration of the burn |
void |
add(FiniteBurn burn)
Add a burn to the collection |
FiniteBurn |
get(int index)
Get a FiniteBurn out of the collection |
boolean |
hasNext(int index)
Returns whether there is more data |
static void |
main(java.lang.String[] args)
|
void |
readFromFile(java.lang.String file)
Read the burn data from a tab-delimited ASCII text file. |
static FiniteBurnList |
recover(java.lang.String filename)
Recover a serialized FiniteBurnList File |
void |
sendToFile(java.lang.String file)
Write the burn data out to tab-delimited ASCII text file. |
void |
serialize(java.lang.String filename)
Write the burn data out to a FiniteBurn File |
int |
size()
Return the size of the list |
double |
startTime(int index)
Returns the start time of the burn |
double |
stopTime(int index)
Returns the stop time of the burn |
VectorN |
unitVector(int index)
Returns the thrust direction unit vector |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FiniteBurnList()
public FiniteBurnList(java.lang.String filename)
filename - String containing directory and filename where the data resides| Method Detail |
|---|
public void add(FiniteBurn burn)
burn - FiniteBurn objectpublic FiniteBurn get(int index)
index - Index of the measurement
public int size()
public VectorN unitVector(int index)
index - int containing the burn index
public double startTime(int index)
index - int containing the burn index
public double stopTime(int index)
index - int containing the burn index
public double accel(int index)
index - int containing the burn index
public boolean hasNext(int index)
index - measurement index
public void readFromFile(java.lang.String file)
file - filename and directorypublic void sendToFile(java.lang.String file)
file - filename and directorypublic static FiniteBurnList recover(java.lang.String filename)
filename - string containing the directory and filename.
public void serialize(java.lang.String filename)
filename - string containing the directory and filename.public static void main(java.lang.String[] args)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||