public class SpkBody extends Object
SpkFile
.This class is based on the data structure description of SPKBSR in the SPICE library.
Modifier and Type | Field and Description |
---|---|
static int |
SIZEDESC
Size of the descriptor array.
|
Constructor and Description |
---|
SpkBody(int body)
Simple constructor for finding SpkBody in a list.
|
SpkBody(int body,
int expense,
int highestFile,
int lowestFile,
double lowerBound,
double upperBound,
double[] previousDescriptor,
String previousSegmentId,
int previousHandle,
boolean checkPrevious,
int reuseExpense)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
int |
getExpense()
Getter for the expense.
|
int |
getHighestFile()
Getter for the highest file number searched during the construction of the segment list.
|
double |
getLowerBound()
Getter for the lower bound of the re-use interval.
|
int |
getLowestFile()
Getter for the lowest file number searched during the construction of the segment list.
|
double[] |
getPreviousDescriptor()
Getter for the previous descriptor returned.
|
int |
getPreviousHandle()
Getter for the previous handle returned.
|
String |
getPreviousSegmentId()
Getter for the previous segment identifier returned.
|
int |
getReuseExpense()
Getter for the expense of the re-use interval.
|
List<SpkSegment> |
getSegmentTable()
Getter for the segment list.
|
double |
getUpperBound()
Getter for the upper bound of the re-use interval.
|
int |
hashCode() |
boolean |
isCheckPrevious()
Indicates if the previous segment needs to be check.
|
void |
setCheckPrevious(boolean checkPrevious)
Setter for the boolean indicating if the previous segment needs to be checked.
|
void |
setExpense(int expense)
Setter for the expense associated to a body.
|
void |
setHighestFile(int highestFile)
Setter for the highest file number searched during the construction of the segment list.
|
void |
setLowerBound(double lowerBound)
Setter for the lower bound of the re-use interval.
|
void |
setLowestFile(int lowestFile)
Setter for the lowest file number searched during the construction of the segment list.
|
void |
setPreviousDescriptor(double[] previousDescriptor)
Setter for the previous descriptor returned.
|
void |
setPreviousHandle(int previousHandle)
Setter for the previous handle returned.
|
void |
setPreviousSegmentId(String previousSegmentId)
Setter for the previous segment identifier returned.
|
void |
setReuseExpense(int reuseExpense)
Setter for the expense of the re-use interval.
|
void |
setUpperBound(double upperBound)
Setter for the upper bound of the re-use interval.
|
public static final int SIZEDESC
public SpkBody(int body, int expense, int highestFile, int lowestFile, double lowerBound, double upperBound, double[] previousDescriptor, String previousSegmentId, int previousHandle, boolean checkPrevious, int reuseExpense)
body
- body idexpense
- Expense at which the segments list was constructed.highestFile
- highest file number searched during the construction of the segment listlowestFile
- lowest file number searched during the construction of the segment listlowerBound
- Lower bound of the re-use interval of the previous segment returnedupperBound
- Upper bound of the re-use interval of the previous segment returnedpreviousDescriptor
- Previous descriptor returnedpreviousSegmentId
- Previous segment identifier returnedpreviousHandle
- Previous handle returnedcheckPrevious
- Logical indicating that previous segment should be checkedreuseExpense
- Expense of the re-use intervalpublic SpkBody(int body)
body
- Body identifierpublic List<SpkSegment> getSegmentTable()
public int getExpense()
public void setExpense(int expense)
expense
- Expense to associate to the bodypublic int getHighestFile()
public void setHighestFile(int highestFile)
highestFile
- highest file number searched during the construction of the segment listpublic int getLowestFile()
public void setLowestFile(int lowestFile)
lowestFile
- the lowest file number searched during the construction of the segment listpublic double getLowerBound()
public void setLowerBound(double lowerBound)
lowerBound
- the lower bound of the re-use intervalpublic double getUpperBound()
public void setUpperBound(double upperBound)
upperBound
- the upper bound of the re-use intervalpublic double[] getPreviousDescriptor()
public void setPreviousDescriptor(double[] previousDescriptor)
previousDescriptor
- Previous descriptor returned.public String getPreviousSegmentId()
public void setPreviousSegmentId(String previousSegmentId)
previousSegmentId
- the previous segment identifier returnedpublic int getPreviousHandle()
public void setPreviousHandle(int previousHandle)
previousHandle
- the previous handle returnedpublic boolean isCheckPrevious()
public void setCheckPrevious(boolean checkPrevious)
checkPrevious
- boolean indicating if the previous segment needs to be checkedpublic int getReuseExpense()
public void setReuseExpense(int reuseExpense)
reuseExpense
- the expense of the re-use intervalCopyright © 2023 CNES. All rights reserved.