public class ComponentDescription extends DataModel implements java.io.Serializable, java.lang.Cloneable, ComponentInterface
| Modifier and Type | Class and Description |
|---|---|
static class |
ComponentDescription.TypeCompo |
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
VLSR_FILE_STRING |
| Constructor and Description |
|---|
ComponentDescription(java.lang.String componentName,
java.util.ArrayList<MoleculeDescription> moleculeList,
java.lang.Double density,
java.lang.Double vlsr) |
| Modifier and Type | Method and Description |
|---|---|
void |
addALine(LineDescription line)
Add a line for this component
|
void |
addAMolecule(MoleculeDescription mol) |
void |
clearListOfLines()
Clear the list of lines
|
java.lang.Object |
clone() |
void |
exportTemplate(java.lang.String prefix,
BufferedWriterProperty out,
java.util.ArrayList<MoleculeDescription> moleculeList) |
CassisTableMoleculeModel |
getCassisTableMoleculeModel() |
java.lang.String |
getComponentName() |
java.lang.String |
getContinuumError() |
ContinuumModel |
getContinuumModel() |
java.lang.Double |
getDensity() |
ComponentMode |
getGeometryMode() |
java.util.ArrayList<LineDescription> |
getListOfLines()
Return the list of lines for this component
|
java.util.List<MoleculeDescription> |
getMoleculeList() |
java.util.List<MoleculeDescription> |
getSelectedMoleculeDescription() |
java.lang.String |
getSelectedTemplate() |
double |
getTbg() |
ComponentAlgo |
getTypeAlgo() |
ComponentDescription.TypeCompo |
getTypeCompo() |
java.lang.Double |
getVlsr() |
UNIT |
getVlsrUnit() |
java.util.ArrayList<MoleculeDescription> |
importTemplate(java.lang.String prefix,
java.util.Properties prop) |
boolean |
isDensityOkForRadex()
Check if the density is between 1e5 and 1e25 for the selected molecules.
|
boolean |
isEnabled() |
java.lang.Boolean |
isExpandingSphereMode() |
java.lang.Boolean |
isFullLteMode() |
java.lang.Boolean |
isFullRadexMode() |
boolean |
isInteracting() |
boolean |
isLteRadexMode() |
boolean |
isSelected() |
java.lang.Boolean |
isSlabMode() |
java.lang.Boolean |
isSphereMode() |
void |
keepOnlyComputeMoleculeList() |
void |
loadConfig(java.util.Properties prop) |
void |
resetContinuumError() |
void |
saveConfig(BufferedWriterProperty out) |
void |
setComponentName(java.lang.String componentName) |
void |
setCpt(int nb) |
void |
setDensity(java.lang.Double density) |
void |
setEnabled(boolean state) |
void |
setFullLteMode(boolean fullLteMode) |
void |
setFullRadexMode(boolean fullRadexMode) |
void |
setGeometryMode(ComponentMode mode) |
void |
setInteracting(boolean val) |
void |
setListOfLines(java.util.ArrayList<LineDescription> listLines)
set list of lines for this component
|
void |
setLteRadexMode(boolean mode) |
void |
setPrefix(java.lang.String prefix) |
void |
setSelected(boolean selec) |
void |
setSelectedTemplate(java.lang.String templateName) |
void |
setTbg(double tbg) |
void |
setType(ComponentDescription.TypeCompo typeCompo) |
void |
setTypeAlgo(ComponentAlgo componentAlgo) |
void |
setVlsr(java.lang.Double vlsr) |
void |
setVlsrUnit(UNIT unitVlsr) |
java.lang.String |
toString() |
addModelListener, fireDataChanged, removeAllListener, removeModelListenerpublic static final java.lang.String VLSR_FILE_STRING
public ComponentDescription(java.lang.String componentName,
java.util.ArrayList<MoleculeDescription> moleculeList,
java.lang.Double density,
java.lang.Double vlsr)
public UNIT getVlsrUnit()
public void setVlsrUnit(UNIT unitVlsr)
public java.lang.String getComponentName()
public void setComponentName(java.lang.String componentName)
public java.lang.Double getDensity()
public void setDensity(java.lang.Double density)
public java.util.List<MoleculeDescription> getMoleculeList()
public void keepOnlyComputeMoleculeList()
public CassisTableMoleculeModel getCassisTableMoleculeModel()
public java.lang.Double getVlsr()
public void setVlsr(java.lang.Double vlsr)
public double getTbg()
public void setTbg(double tbg)
public void clearListOfLines()
public void setListOfLines(java.util.ArrayList<LineDescription> listLines)
listLines - public java.util.ArrayList<LineDescription> getListOfLines()
getListOfLines in interface ComponentInterfacepublic void addALine(LineDescription line)
line - public void addAMolecule(MoleculeDescription mol)
public java.lang.Boolean isSlabMode()
public void setGeometryMode(ComponentMode mode)
public ComponentMode getGeometryMode()
public java.lang.Boolean isSphereMode()
public java.lang.Boolean isExpandingSphereMode()
public boolean isLteRadexMode()
public void setLteRadexMode(boolean mode)
mode - if the parameter = false, the function do nothing for a
compatibility of an old codepublic java.lang.Boolean isFullRadexMode()
public void setFullRadexMode(boolean fullRadexMode)
fullRadexMode - if the parameter = false, the function do nothing for a
compatibility of an old codepublic void setTypeAlgo(ComponentAlgo componentAlgo)
public ComponentAlgo getTypeAlgo()
public java.lang.Boolean isFullLteMode()
public void setFullLteMode(boolean fullLteMode)
fullLteMode - if the parameter = false, the function do nothing for a
compatibility of an old codepublic void setType(ComponentDescription.TypeCompo typeCompo)
public final ComponentDescription.TypeCompo getTypeCompo()
public java.lang.String toString()
toString in class java.lang.Objectpublic void saveConfig(BufferedWriterProperty out) throws java.io.IOException
saveConfig in class DataModeljava.io.IOExceptionpublic void exportTemplate(java.lang.String prefix,
BufferedWriterProperty out,
java.util.ArrayList<MoleculeDescription> moleculeList)
throws java.io.IOException
prefix - moleculeList - java.io.IOExceptionpublic void loadConfig(java.util.Properties prop)
throws java.io.IOException
loadConfig in class DataModeljava.io.IOExceptionpublic java.util.ArrayList<MoleculeDescription> importTemplate(java.lang.String prefix, java.util.Properties prop)
public boolean isSelected()
public void setSelected(boolean selec)
public java.lang.String getSelectedTemplate()
public void setSelectedTemplate(java.lang.String templateName)
public ContinuumModel getContinuumModel()
public boolean isInteracting()
public void setInteracting(boolean val)
public void setPrefix(java.lang.String prefix)
public void setCpt(int nb)
public void setEnabled(boolean state)
public boolean isEnabled()
public java.lang.String getContinuumError()
public void resetContinuumError()
public java.util.List<MoleculeDescription> getSelectedMoleculeDescription()
public boolean isDensityOkForRadex()