cz.muni.fi.xmravec.bc.prodes
Class RangeTable

java.lang.Object
  extended by cz.muni.fi.xmravec.bc.prodes.RangeTable

public class RangeTable
extends java.lang.Object

Proton range table class


Constructor Summary
RangeTable(java.io.File file)
          Range table constructor; it loads table from given file
 
Method Summary
 double getRangeValue(double energy)
          Calculates range distance for given proton energy
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RangeTable

public RangeTable(java.io.File file)
           throws java.io.IOException
Range table constructor; it loads table from given file

Parameters:
file - file containing range table
Throws:
java.io.IOException
Method Detail

getRangeValue

public double getRangeValue(double energy)
Calculates range distance for given proton energy

Parameters:
energy - proton energy (MeV)
Returns:
range distance