|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectetomica.action.WriteConfiguration
public class WriteConfiguration
Dumps a box's configuration to a file. The coordinates are written in a format that can be read in by ConfigurationFile. The output file has a "pos_new" extension, which should be renamed to "pos" for use with ConfigurationFile.
| Field Summary | |
|---|---|
protected IVectorMutable |
writePosition
|
| Constructor Summary | |
|---|---|
WriteConfiguration(ISpace space)
|
|
| Method Summary | |
|---|---|
void |
actionPerformed()
Writes the leaf Atom coordinates to the file confName.pos_new. |
IBox |
getBox()
Returns the box whose atom coordinates get written to the file. |
String |
getConfName()
Returns the configuration name. |
boolean |
getDoApplyPBC()
Returns true if PBC are applied to coordinates written to the file. |
void |
setBox(IBox newBox)
Sets the box whose atom coordinates get written to the file. |
void |
setConfName(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(String newFileName)
|
protected void |
writeAtom(FileWriter fileWriter,
IAtom a)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final IVectorMutable writePosition
| Constructor Detail |
|---|
public WriteConfiguration(ISpace space)
| Method Detail |
|---|
public void setConfName(String newConfName)
public String getConfName()
public void setFileName(String newFileName)
public void setBox(IBox newBox)
public IBox getBox()
public void setDoApplyPBC(boolean newDoApplyPBC)
public boolean getDoApplyPBC()
public void actionPerformed()
actionPerformed in interface IAction
protected void writeAtom(FileWriter fileWriter,
IAtom a)
throws IOException
IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||