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->calculate();

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

$divetable->output( [template => $template ] );

Retrieve the 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.

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