mmc
Class Output

java.lang.Object
  extended by mmc.Output

public class Output
extends java.lang.Object

Class contains all parametrization table io routines, history/debugging info/secondary output definitions, and a fast double precision variable formatting routine


Field Summary
static boolean AMASIM
           
static boolean DEBUG
           
static java.io.PrintStream err
           
protected static java.io.FileReader fileIa
           
protected static java.io.FileInputStream fileIr
           
protected static java.io.FileWriter fileOa
           
protected static java.io.FileOutputStream fileOr
           
 int gens
           
protected  int HIST
           
 java.lang.StringBuffer history
           
static int HISTSIZE
           
static boolean I3flag
           
 java.util.Vector I3hist
           
 int igen
           
static java.io.InputStream in
           
protected static java.io.LineNumberReader ina
           
protected static boolean inf
           
protected static java.io.ObjectInputStream inr
           
static java.io.PrintStream out
           
protected static java.io.PrintWriter outa
           
protected static boolean outf
           
protected static java.io.ObjectOutputStream outr
           
protected  Particle p
           
static boolean raw
           
static boolean RecDec
           
static boolean sta
           
static boolean texi
           
static java.lang.String version
           
static boolean web
           
 
Constructor Summary
Output(Particle p)
          initialize all classes necessary for propagation
 
Method Summary
static void close()
          close the table
static void delete(java.lang.String name)
          delete the file
static boolean exists(java.lang.String name)
          See if the file "name" exists
static java.lang.String f(double d)
          Format the double
 java.lang.String getStdout()
          gets the stdout output string, resets the stdout output
 void init(java.lang.String type)
          initialize for no history output - no need to call this function
 void initDefault(int igen, int gens, java.lang.String type, double time, double x, double y, double z, double theta, double phi)
          initialize for regular history output
 void initDefault(java.lang.String type)
          initialize for regular history output
 void initF2000(int igen, int gens, java.lang.String type, double time, double x, double y, double z, double theta, double phi)
          initialize for F2000 history output
static void open(java.lang.String name)
          open the table
protected  void output(int wint, java.lang.String comp, double de, double ef)
          print output information in the format specified by HIST
protected static double read()
          read one number from the table
static java.io.Reader reader(java.lang.String name)
          open Reader stream
static boolean setStderr(java.lang.String name)
          enables redirection of the stderr output into a file
 void setStdout()
          enables redirection of the stdout output into a string
static java.lang.String[] splitString(java.lang.String args)
          Splits the string into the array
protected static void write(double g)
          write one number to the table
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

version

public static final java.lang.String version
See Also:
Constant Field Values

HISTSIZE

public static final int HISTSIZE
See Also:
Constant Field Values

in

public static java.io.InputStream in

out

public static java.io.PrintStream out

err

public static java.io.PrintStream err

DEBUG

public static boolean DEBUG

AMASIM

public static boolean AMASIM

history

public java.lang.StringBuffer history

igen

public int igen

gens

public int gens

I3flag

public static boolean I3flag

RecDec

public static boolean RecDec

I3hist

public java.util.Vector I3hist

HIST

protected int HIST

p

protected Particle p

inf

protected static boolean inf

outf

protected static boolean outf

ina

protected static java.io.LineNumberReader ina

outa

protected static java.io.PrintWriter outa

inr

protected static java.io.ObjectInputStream inr

outr

protected static java.io.ObjectOutputStream outr

raw

public static boolean raw

web

public static boolean web

sta

public static boolean sta

texi

public static boolean texi

fileIr

protected static java.io.FileInputStream fileIr

fileIa

protected static java.io.FileReader fileIa

fileOr

protected static java.io.FileOutputStream fileOr

fileOa

protected static java.io.FileWriter fileOa
Constructor Detail

Output

public Output(Particle p)
initialize all classes necessary for propagation

Method Detail

setStderr

public static boolean setStderr(java.lang.String name)
enables redirection of the stderr output into a file


setStdout

public void setStdout()
enables redirection of the stdout output into a string


getStdout

public java.lang.String getStdout()
gets the stdout output string, resets the stdout output


init

public void init(java.lang.String type)
initialize for no history output - no need to call this function


initDefault

public void initDefault(java.lang.String type)
initialize for regular history output


initDefault

public void initDefault(int igen,
                        int gens,
                        java.lang.String type,
                        double time,
                        double x,
                        double y,
                        double z,
                        double theta,
                        double phi)
initialize for regular history output


initF2000

public void initF2000(int igen,
                      int gens,
                      java.lang.String type,
                      double time,
                      double x,
                      double y,
                      double z,
                      double theta,
                      double phi)
initialize for F2000 history output


output

protected void output(int wint,
                      java.lang.String comp,
                      double de,
                      double ef)
print output information in the format specified by HIST


read

protected static double read()
read one number from the table


write

protected static void write(double g)
write one number to the table


exists

public static boolean exists(java.lang.String name)
See if the file "name" exists


open

public static void open(java.lang.String name)
open the table


close

public static void close()
close the table


delete

public static void delete(java.lang.String name)
delete the file


reader

public static java.io.Reader reader(java.lang.String name)
                             throws java.lang.Exception
open Reader stream

Throws:
java.lang.Exception

splitString

public static java.lang.String[] splitString(java.lang.String args)
Splits the string into the array


f

public static java.lang.String f(double d)
Format the double