IAction
WriteConfigurationInterfacial
, WriteConfigurationOriented
public class WriteConfiguration extends java.lang.Object implements IAction
Modifier and Type | Field | Description |
---|---|---|
protected Box |
box |
|
protected java.lang.String |
confName |
|
protected boolean |
doApplyPBC |
|
protected java.lang.String |
fileName |
|
protected Vector |
writePosition |
Constructor | Description |
---|---|
WriteConfiguration(Space space) |
Modifier and Type | Method | Description |
---|---|---|
void |
actionPerformed() |
Writes the leaf Atom coordinates to the file confName.pos_new.
|
Box |
getBox() |
Returns the box whose atom coordinates get written to the file.
|
java.lang.String |
getConfName() |
Returns the configuration name.
|
boolean |
getDoApplyPBC() |
Returns true if PBC are applied to coordinates written to the file.
|
void |
setBox(Box newBox) |
Sets the box whose atom coordinates get written to the file.
|
void |
setConfName(java.lang.String newConfName) |
Sets the configuration name.
|
void |
setDoApplyPBC(boolean newDoApplyPBC) |
Directs the writer to apply periodic boundary conditions or not (true
by default).
|
void |
setFileName(java.lang.String newFileName) |
|
protected void |
writeAtom(java.io.FileWriter fileWriter,
IAtom a) |
protected java.lang.String confName
protected java.lang.String fileName
protected Box box
protected boolean doApplyPBC
protected final Vector writePosition
public WriteConfiguration(Space space)
public void setConfName(java.lang.String newConfName)
public java.lang.String getConfName()
public void setFileName(java.lang.String newFileName)
public void setBox(Box newBox)
public Box getBox()
public void setDoApplyPBC(boolean newDoApplyPBC)
public boolean getDoApplyPBC()
public void actionPerformed()
actionPerformed
in interface IAction
protected void writeAtom(java.io.FileWriter fileWriter, IAtom a) throws java.io.IOException
java.io.IOException