The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Deco::Dive::Table - Generate a list of no stop limits for your model

SYNOPSIS

    use Deco::Dive;
    use Deco::Dive::Table;
    
    my $dive = new Deco::Dive( );
    $dive->model( config => './conf/haldane.cnf');

    my $divetable = new Deco::Dive::Table( dive => $dive );    $divetable->calculate();
    my $table = $divetable->output();

DESCRIPTION

This package will plot the profile of the dive and internal pressures of the tissues of the model.

METHODS

$divetable->new( dive => $dive );

The constructor of the class. There is only one parameter: a Deco::Dive object.

$divetable->setdepths( $depth1, $depth2, $depth3, .... );

Set the list of depths you want the table to be for manually. There is a default list provided, but with this method you can overrule it. Depths should be entered in meters

$divetable->controlling_tissue( $tissue_nr );

Set the tissue by its number that will control the table. Usually this is the tissue with the longest halftime

$divetable->pressure_step( 0.2 );

Set the step size in bar for which we want to calculate the table. The table will start with 1.0 bar and run up using this step size to the maximum allowed pressure at the surface (M0)

$divetable->calculate();

Performs the calculation of the table. You will need to call this function before retrieving output.

$divetable->no_stop( template => $template );

Retrieve the no stop times table as a string. Optionally you can supply your own template for each line of output. The placeholders #DEPTH# and #TIME# will be replaced by the actual values for the depth (in meters) and time (in minutes) that you can stay at that depth without required decompression stops.

$divetable->output( );

Retrieve the output of the table calculation.

EXPORT

None by default.

SEE ALSO

In the docs directory you will find an extensive treatment of decompression theory in the file Deco.pdf. A lot of it has been copied from the www.deepocean.net website.

AUTHOR

Jaap Voets, <narked@xperience-automatisering.nl>

COPYRIGHT AND LICENSE

Copyright (C) 2006 by Jaap Voets