public class Fecs extends TableDataset implements XmlDataInterface
Constructor and Description |
---|
Fecs()
Constructor of the Fecs class assuming the spacecraft to be ROSETTA,
the generation time the creation time of this product,
the ICD version as 0.0 and the validity start and end the creation time of this product.
|
Fecs(java.util.Date fecsValidityStart,
java.util.Date fecsValidityEnd)
Constructor of the Fecs class taking as parameters all the needed information,
but assuming the spacecraft to be ROSETTA,
the generation time the creation time of this product
and the ICD version as 0.0.
|
Fecs(java.util.Date fecsGenerationTime,
java.util.Date fecsValidityStart,
java.util.Date fecsValidityEnd,
java.lang.String fecsIcdVersion) |
Fecs(java.util.Date fecsGenerationTime,
java.util.Date fecsValidityStart,
java.util.Date fecsValidityEnd,
java.lang.String fecsSpacecraft,
java.lang.String fecsIcdVersion)
Constructor of the Fecs class taking as parameters all the needed information, without taking any parameter with default value.
|
Fecs(java.util.Date fecsValidityStart,
java.util.Date fecsValidityEnd,
java.lang.String fecsIcdVersion)
Constructor of the Fecs class taking as parameters all the needed information,
but assuming the spacecraft to be ROSETTA
and the generation time the creation time of this product.
|
Modifier and Type | Method and Description |
---|---|
void |
addPass(GsPass pass)
Add a GS pass to the FECS
|
static java.lang.String |
compareFecs(Fecs older,
Fecs newer)
Compare 2 FECS and produce a report in ASCII with the differences
|
static java.lang.String |
compareFecsHTML(Fecs older,
Fecs newer)
Compare 2 FECS and produce a report in HTML with the differences
|
GsPass[] |
findOverlapingPasses(java.util.Date startDate,
java.util.Date endDate) |
float |
getBSRHours()
Get the total number of hours of BSR passes
|
float |
getBSRHoursDay()
Get the total number of hours of BSR per day
|
float |
getDumpHoursDay35m()
Get the total number of hours of dump per day of 35m antennas
|
float |
getDumpHoursDay70m()
Get the total number of hours of dump per day of 70m antennas
|
java.lang.String |
getFecsSummaryRowHTML(java.lang.String name) |
java.lang.String |
getFecsSummaryTableHTML()
Get summary of the FECS in html
|
java.lang.String |
getFileName()
Get the file name where this object is or will be stored
|
java.util.Date |
getGenerationTime()
Get the generation time of the Fecs
|
GsPass |
getGsDump(java.util.Date date) |
float |
getHoursDay()
Get total number of hours of passes per day
|
java.lang.String |
getIcdVersion()
Get the ICD version
|
java.lang.String |
getName()
Get the file name of the FECS file
|
java.util.TreeSet<GsPass> |
getPasses()
Get all the Ground Station passes included in this Fecs, as an ordered set by GS pass start date
|
float |
getPassHoursDay35m()
Get the total number of hours of passes per day of 35m antennas
|
float |
getPassHoursDay70m()
Get the total number of hours of passes per day of 70m antennas
|
java.lang.String |
getPath()
Get the path where this object is or will be stored
|
java.lang.String |
getSpacecraft()
Get the spacecraft name
|
java.lang.String[] |
getStations()
Get all Ground station names in this FECS
|
Fecs |
getSubFecs(java.util.Date startDate,
java.util.Date endDate)
Get subfecs with all pasess froma a date to a date
|
Fecs |
getSubFecs(java.lang.String station)
Get a subfecs with all the GS passes from a station
|
Fecs |
getSubFecsDSN()
Get subfecs with all passes from DSN stations
|
Fecs |
getSubFecsESA()
Get subfecs with all passes from ESA stations
|
float |
getTotalDataDump()
Get total data dump in this FECS
|
float |
getTotalDataDump(java.lang.String station)
Get total data dump from a particular station
|
java.util.Date |
getValidityEnd()
Get the end date of the validity of the FECS
|
java.util.Date |
getValidityStart()
Get the start date of the validity of the FECS
|
java.lang.String |
getXmlData()
Get the XML text representing this object
|
boolean |
isInPass(java.util.Date date)
Check if a given date is within a pass
|
static java.lang.String |
passToHTMLRow(GsPass pass)
Convert a pass to a HTML table row.
|
static java.lang.String |
passToString(GsPass pass)
Get a string representation of a pass
|
protected static Fecs |
readFromDoc(org.w3c.dom.Document doc) |
void |
removePass(GsPass pass)
Remove a GS pass from the FECS
|
void |
save()
Save this object into a file.
|
void |
saveAs(java.lang.String file)
Save this object into a file with the give file name
|
void |
setFileName(java.lang.String newFileName)
Set the file name where this object is or will be stored
|
void |
setGenerationTime(java.util.Date evtmGenerationTime)
Set the generation time of the Fecs
|
void |
setIcdVersion(java.lang.String icdVersion)
Set the icd version
|
void |
setName(java.lang.String name)
Set the filename of the FECS
|
void |
setPath(java.lang.String path)
Set the path where this object is or will be stored
|
void |
setSpacecraft(java.lang.String spacecraft)
Set the name of the spacecraft
|
void |
setValidityEnd(java.util.Date validityEnd)
Set the end date of the validity of the FECS
|
void |
setValidityStart(java.util.Date evtmValidityStart)
Get the end date of the validity of the FECS
|
void |
setXmlData(java.lang.String data)
Set the XML text representing this object
|
int |
size()
Get the number of passes in this FECS
|
java.lang.String |
toString() |
void |
writeToFile(java.lang.String file)
Write FECS to a file
|
public Fecs(java.util.Date fecsGenerationTime, java.util.Date fecsValidityStart, java.util.Date fecsValidityEnd, java.lang.String fecsSpacecraft, java.lang.String fecsIcdVersion)
fecsGenerationTime
- Generation time of the FECS filefecsValidityStart
- Start time from which this product is applicable.fecsValidityEnd
- End time until which this product is applicablefecsSpacecraft
- The name of the spacecraft for which this product is applicablefecsIcdVersion
- The version of the icd (Interface Control Document) that applies to this productpublic Fecs(java.util.Date fecsGenerationTime, java.util.Date fecsValidityStart, java.util.Date fecsValidityEnd, java.lang.String fecsIcdVersion)
fecsGenerationTime
- fecsValidityStart
- fecsValidityEnd
- fecsIcdVersion
- public Fecs(java.util.Date fecsValidityStart, java.util.Date fecsValidityEnd, java.lang.String fecsIcdVersion)
fecsValidityStart
- Start time from which this product is applicable.fecsValidityEnd
- End time until which this product is applicablefecsIcdVersion
- The version of the icd (Interface Control Document) that applies to this productpublic Fecs(java.util.Date fecsValidityStart, java.util.Date fecsValidityEnd)
fecsValidityStart
- Start time from which this product is applicable.fecsValidityEnd
- End time until which this product is applicablepublic Fecs()
public void setName(java.lang.String name)
name
- public void setPath(java.lang.String path)
XmlDataInterface
setPath
in interface XmlDataInterface
public java.lang.String getName()
public java.lang.String getPath()
XmlDataInterface
getPath
in interface XmlDataInterface
public java.util.Date getGenerationTime()
public void setGenerationTime(java.util.Date evtmGenerationTime)
evtmGenerationTime
- Generation time of the Fecspublic java.util.Date getValidityStart()
public void setValidityStart(java.util.Date evtmValidityStart)
evtmValidityStart
- public void setValidityEnd(java.util.Date validityEnd)
validityEnd
- public void setSpacecraft(java.lang.String spacecraft)
spacecraft
- public void setIcdVersion(java.lang.String icdVersion)
icdVersion
- public java.util.Date getValidityEnd()
public java.lang.String getSpacecraft()
public java.lang.String getIcdVersion()
public void addPass(GsPass pass)
pass
- GS pass to addpublic void removePass(GsPass pass)
pass
- public java.util.TreeSet<GsPass> getPasses()
public java.lang.String toString()
public boolean isInPass(java.util.Date date)
date
- public GsPass getGsDump(java.util.Date date)
public GsPass[] findOverlapingPasses(java.util.Date startDate, java.util.Date endDate)
public int size()
public static java.lang.String compareFecsHTML(Fecs older, Fecs newer)
older
- Older fecs to comparenewer
- Newer fecs to comparepublic static java.lang.String compareFecs(Fecs older, Fecs newer)
older
- Older fecs to comparenewer
- Newer fecs to comparepublic static java.lang.String passToHTMLRow(GsPass pass)
pass
- public static java.lang.String passToString(GsPass pass)
pass
- public Fecs getSubFecs(java.lang.String station)
station
- Ground Station Namepublic Fecs getSubFecsDSN()
public Fecs getSubFecsESA()
public Fecs getSubFecs(java.util.Date startDate, java.util.Date endDate)
startDate
- endDate
- public java.lang.String[] getStations()
public float getTotalDataDump()
public float getTotalDataDump(java.lang.String station)
station
- Ground Station Namepublic float getHoursDay()
public float getDumpHoursDay70m()
public float getPassHoursDay70m()
public float getDumpHoursDay35m()
public float getPassHoursDay35m()
public float getBSRHours()
public float getBSRHoursDay()
public java.lang.String getFecsSummaryTableHTML()
public java.lang.String getFecsSummaryRowHTML(java.lang.String name)
public java.lang.String getXmlData()
XmlDataInterface
getXmlData
in interface XmlDataInterface
public void setFileName(java.lang.String newFileName)
XmlDataInterface
setFileName
in interface XmlDataInterface
public java.lang.String getFileName()
XmlDataInterface
getFileName
in interface XmlDataInterface
public void setXmlData(java.lang.String data)
XmlDataInterface
setXmlData
in interface XmlDataInterface
public void writeToFile(java.lang.String file) throws java.io.FileNotFoundException, java.io.UnsupportedEncodingException
file
- full path of the file to savejava.io.FileNotFoundException
java.io.UnsupportedEncodingException
public void save() throws java.io.FileNotFoundException, java.io.UnsupportedEncodingException
XmlDataInterface
save
in interface XmlDataInterface
java.io.FileNotFoundException
java.io.UnsupportedEncodingException
public void saveAs(java.lang.String file) throws java.io.FileNotFoundException, java.io.UnsupportedEncodingException
XmlDataInterface
saveAs
in interface XmlDataInterface
file
- Complete path where to save the filejava.io.FileNotFoundException
java.io.UnsupportedEncodingException
protected static Fecs readFromDoc(org.w3c.dom.Document doc) throws org.w3c.dom.DOMException, java.text.ParseException
org.w3c.dom.DOMException
java.text.ParseException