public class RotationalMoleculeConf extends DataModel
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ENABLED_STATE_EVENT |
| Constructor and Description |
|---|
RotationalMoleculeConf()
Constructor, should only be used before using loadConfig.
|
RotationalMoleculeConf(int molTag)
Constructor.
|
RotationalMoleculeConf(int molTag,
java.lang.String molName)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addComponent(RotationalComp rc)
Add a
RotationalComp to the molecule. |
RotationalComp |
getComponent(int compNumber)
Return the
RotationalComp defined by a number. |
java.util.List<RotationalComp> |
getComponents()
Return the list of
RotationalComp of the molecule. |
java.lang.String |
getMoleculeName()
Return the molecule name.
|
int |
getMoleculeTag()
Return the molecule tag.
|
boolean |
isEnabled()
If the molecule is enabled for the computing.
|
void |
loadConfig(java.util.Properties prop) |
void |
saveConfig(BufferedWriterProperty out) |
void |
setEnabled(boolean enabled)
Change the enabled state.
|
void |
setPrefixNumber(int prefixNumber)
Set a new prefix number for the save/load.
|
addModelListener, fireDataChanged, removeAllListener, removeModelListenerpublic static final java.lang.String ENABLED_STATE_EVENT
public RotationalMoleculeConf()
public RotationalMoleculeConf(int molTag)
molTag - The tag of the molecule.public RotationalMoleculeConf(int molTag,
java.lang.String molName)
molTag - The tag of the molecule.molName - The name of the molecule.
// * @param taTmbConv If the ta to Tmb conversion is enabled.
// * @param beamDilution If the beam dilution is enabled.
// * @param sourceSize The source size.public boolean isEnabled()
public void setEnabled(boolean enabled)
enabled - The new enabled state.public java.lang.String getMoleculeName()
public int getMoleculeTag()
public void saveConfig(BufferedWriterProperty out) throws java.io.IOException
saveConfig in class DataModeljava.io.IOExceptionpublic void loadConfig(java.util.Properties prop)
throws java.io.IOException
loadConfig in class DataModeljava.io.IOExceptionpublic void setPrefixNumber(int prefixNumber)
prefixNumber - The prefix number for the save/load.public java.util.List<RotationalComp> getComponents()
RotationalComp of the molecule.RotationalComp of the molecule.public RotationalComp getComponent(int compNumber)
RotationalComp defined by a number.compNumber - The number of the component to return.RotationalComp with the given number or null if not found.public void addComponent(RotationalComp rc)
RotationalComp to the molecule.rc - the RotationalComp to add.