sir.estimate
Class OptionsFileSpec

java.lang.Object
  extended bysir.estimate.OptionsFileSpec
All Implemented Interfaces:
OptionsFileSpecConstants

public class OptionsFileSpec
extends java.lang.Object
implements OptionsFileSpecConstants

Used to have plenty of classes here, but for now OptionsFileSpec is all we need It is a JavaCC encoding of the grammar specifying Recovery Time Files.

Version:
27 February 2002
Author:
Michael Höhle >hoehle@dina.kvl.dk<

Field Summary
 Token jj_nt
           
 Token token
           
 OptionsFileSpecTokenManager token_source
           
 
Fields inherited from interface sir.estimate.OptionsFileSpecConstants
BOOLEAN, CONSTANT, DEFAULT, DIGIT, EOF, FLOAT, INTEGER, NA, SINGLE_LINE_COMMENT, tokenImage
 
Constructor Summary
OptionsFileSpec(java.io.InputStream stream)
           
OptionsFileSpec(OptionsFileSpecTokenManager tm)
           
OptionsFileSpec(java.io.Reader stream)
           
 
Method Summary
 void DiagTimePDF()
          Distribution of the seroconversion period, Gamma or Exponential
 void disable_tracing()
           
 void enable_tracing()
           
 ParseException generateParseException()
           
 Token getNextToken()
           
 Token getToken(int index)
           
 void IncuTimePDF()
          Distribution of the incubation period, Constant, Gamma or Exponential
 void InfTimePDF()
          Distribution of the infectious period, Gamma or Exponential
static void main(java.lang.String[] args)
          Main class
 void MCMC()
           
 void Method()
           
 void MethodType()
           
 void MML()
           
 void Options()
           
 void OptionsFile()
           
 void ReInit(java.io.InputStream stream)
           
 void ReInit(OptionsFileSpecTokenManager tm)
           
 void ReInit(java.io.Reader stream)
           
 void SeedValue()
          Are we specifying a fixed seed value?
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

token_source

public OptionsFileSpecTokenManager token_source

token

public Token token

jj_nt

public Token jj_nt
Constructor Detail

OptionsFileSpec

public OptionsFileSpec(java.io.InputStream stream)

OptionsFileSpec

public OptionsFileSpec(java.io.Reader stream)

OptionsFileSpec

public OptionsFileSpec(OptionsFileSpecTokenManager tm)
Method Detail

main

public static void main(java.lang.String[] args)
                 throws ParseException
Main class

Throws:
ParseException

OptionsFile

public final void OptionsFile()
                       throws ParseException
Throws:
ParseException

Options

public final void Options()
                   throws ParseException
Throws:
ParseException

SeedValue

public final void SeedValue()
                     throws ParseException
Are we specifying a fixed seed value? NA chooses a random one each time

Throws:
ParseException

IncuTimePDF

public final void IncuTimePDF()
                       throws ParseException
Distribution of the incubation period, Constant, Gamma or Exponential

Throws:
ParseException

InfTimePDF

public final void InfTimePDF()
                      throws ParseException
Distribution of the infectious period, Gamma or Exponential

Throws:
ParseException

DiagTimePDF

public final void DiagTimePDF()
                       throws ParseException
Distribution of the seroconversion period, Gamma or Exponential

Throws:
ParseException

Method

public final void Method()
                  throws ParseException
Throws:
ParseException

MethodType

public final void MethodType()
                      throws ParseException
Throws:
ParseException

MCMC

public final void MCMC()
                throws ParseException
Throws:
ParseException

MML

public final void MML()
               throws ParseException
Throws:
ParseException

ReInit

public void ReInit(java.io.InputStream stream)

ReInit

public void ReInit(java.io.Reader stream)

ReInit

public void ReInit(OptionsFileSpecTokenManager tm)

getNextToken

public final Token getNextToken()

getToken

public final Token getToken(int index)

generateParseException

public final ParseException generateParseException()

enable_tracing

public final void enable_tracing()

disable_tracing

public final void disable_tracing()