edu.bu.qsad.app.shooter.io
Class IO

java.lang.Object
  |
  +--edu.bu.qsad.app.shooter.io.IO

public class IO
extends java.lang.Object

methods for loading and saving a Shooter Workspace.

#
# example workspace file
#
# '#' is a comment character
#
# each workspace has a list of zero or more potential functions
# each potential function in the list must have a unique id
workspace.selectedPotentialFunctionIndex=
potentialfunction.id.label=Ramp Potential One
potentialfunction.id.type=
potentialfunction.id.param.=
potentialfunction.id.shooter.autoCompute=
potentialfunction.id.shooter.startx=
potentialfunction.id.shooter.stopx=
potentialfunction.id.shooter.count=
potentialfunction.id.plot.autoCompute=
potentialfunction.id.plot.startx=
potentialfunction.id.plot.stopx=
potentialfunction.id.plot.starty=
potentialfunction.id.plot.stopy=
potentialfunction.id.plot.showPotentialFunction=
potentialfunction.id.plot.showKineticEnergy=
potentialfunction.id.plot.showEnergy=
potentialfunction.id.plot.showWaveFunction=
potentialfunction.id.plot.showCutoff=
potentialfunction.id.plot.showAxes=
potentialfunction.id.plot.showForbiddenRegion=
#potentialfunction.id.plot.forbiddenRegionColor=
potentialfunction.id.plot.showDots=
potentialfunction.id.energy.autoCompute=
potentialfunction.id.energy.selectedEnergyLevel=
potentialfunction.id.energy.exponent=
potentialfunction.id.energy.precision=
potentialfunction.id.energy.minEnergy=
potentialfunction.id.energy.maxEnergy=
potentialfunction.id.energy.saved.0=
potentialfunction.id.energy.saved.0.cutoff=
potentialfunction.id.energy.saved.0.count=
potentialfunction.id.energy.saved.1=
potentialfunction.id.energy.saved.2=
potentialfunction.id.energy.saved.3=
potentialfunction.id.energy.saved.4=
potentialfunction.id.waveFunction.autoCompute=
potentialfunction.id.waveFunction.amplitudeSquared=
potentialfunction.id.waveFunction.normalized=


Constructor Summary
IO()
           
 
Method Summary
static Workspace loadWorkspace(java.io.InputStream is)
           
static PotentialFunction openPotentialFunction(java.io.InputStream is)
           
static void saveWorkspace(java.io.PrintWriter out, Workspace workspace)
          save the Shooter->Workspace to the given PrintWriter.
static void writeEnergySetterParams(java.io.PrintWriter out, java.lang.String pf_id, PotentialFunction pf)
           potentialfunction.id.energy.autoCompute= potentialfunction.id.energy.selectedEnergyLevel= potentialfunction.id.energy.exponent= potentialfunction.id.energy.precision=
static void writePotentialFunction(java.io.PrintWriter out, boolean writeHeader, java.lang.String key, PotentialFunction pf)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IO

public IO()
Method Detail

saveWorkspace

public static void saveWorkspace(java.io.PrintWriter out,
                                 Workspace workspace)
save the Shooter->Workspace to the given PrintWriter. This method assumes autoFlush is set to true for the PrinterWriter.


openPotentialFunction

public static PotentialFunction openPotentialFunction(java.io.InputStream is)
                                               throws java.lang.Exception
java.lang.Exception

loadWorkspace

public static Workspace loadWorkspace(java.io.InputStream is)
                               throws java.lang.Exception
java.lang.Exception

writePotentialFunction

public static void writePotentialFunction(java.io.PrintWriter out,
                                          boolean writeHeader,
                                          java.lang.String key,
                                          PotentialFunction pf)

writeEnergySetterParams

public static void writeEnergySetterParams(java.io.PrintWriter out,
                                           java.lang.String pf_id,
                                           PotentialFunction pf)
     potentialfunction.id.energy.autoCompute=
     potentialfunction.id.energy.selectedEnergyLevel=
     potentialfunction.id.energy.exponent=
     potentialfunction.id.energy.precision=
     potentialfunction.id.energy.minEnergy=
     potentialfunction.id.energy.maxEnergy=
     potentialfunction.id.energy.saved.0=
     potentialfunction.id.energy.saved.1=
     potentialfunction.id.energy.saved.2=
     potentialfunction.id.energy.saved.3=
     potentialfunction.id.energy.saved.4=