cassis.gui.plot.rotdiagram.file
public abstract class ReadFileData extends java.lang.Object
| Constructor and Description |
|---|
ReadFileData() |
| Modifier and Type | Method and Description |
|---|---|
void |
addPointInformation(java.lang.Double sizeSource,
boolean taTmbSelect,
java.lang.Double nu,
java.lang.Double fwhm,
java.lang.Double w,
java.lang.Double interval,
java.lang.String telescope) |
int |
getComponentSelected() |
java.util.List<java.lang.Integer> |
getComponentsList() |
java.lang.String |
getFilePath() |
java.util.ArrayList<PointInformation> |
getListPoints()
Return the list of pointInformation
|
java.lang.String |
getNameMol()
Return the name of the molecule
|
java.lang.Integer |
getTag()
return the tag of the molecule
|
abstract java.lang.String |
getTypeData(java.lang.String file) |
static boolean |
isNewDataFile(java.lang.String file) |
void |
readFile(java.lang.String filePath,
java.lang.Double sizeSource,
boolean taTmbSelect,
java.lang.String typeData)
Contructor makes a new ReadFile.
|
static java.lang.String |
selectTelescope(java.lang.String badPathProvided) |
void |
setComponentSelected(int componentSelected) |
static java.util.ArrayList<PointInformation> |
sortPoints(java.util.ArrayList<PointInformation> points)
Sort points by frequencies.
|
abstract void |
writeDataFile(java.io.File file2,
java.lang.String nameMolFile,
java.util.ArrayList<PointInformation> name,
java.util.ArrayList<PointInformation> name2) |
public void readFile(java.lang.String filePath,
java.lang.Double sizeSource,
boolean taTmbSelect,
java.lang.String typeData)
throws java.io.IOException
filePath - file to readsizeSource - size of the sourcetaTmbSelect - say if tatmb is selectedtypeData - java.io.IOExceptionpublic void addPointInformation(java.lang.Double sizeSource,
boolean taTmbSelect,
java.lang.Double nu,
java.lang.Double fwhm,
java.lang.Double w,
java.lang.Double interval,
java.lang.String telescope)
sizeSource - taTmbSelect - nu - fwhm - w - interval - telescope - public static boolean isNewDataFile(java.lang.String file)
public abstract java.lang.String getTypeData(java.lang.String file)
public java.lang.String getNameMol()
public java.lang.Integer getTag()
public final java.util.ArrayList<PointInformation> getListPoints()
public abstract void writeDataFile(java.io.File file2,
java.lang.String nameMolFile,
java.util.ArrayList<PointInformation> name,
java.util.ArrayList<PointInformation> name2)
throws java.io.IOException
file2 - nameMolFile - name - java.io.IOExceptionpublic static java.util.ArrayList<PointInformation> sortPoints(java.util.ArrayList<PointInformation> points)
points - public static java.lang.String selectTelescope(java.lang.String badPathProvided)
public int getComponentSelected()
public void setComponentSelected(int componentSelected)
componentSelected - the componentSelected to setpublic java.util.List<java.lang.Integer> getComponentsList()
public java.lang.String getFilePath()