NAME
Acme::FishFarm::WaterLevelMaintainer - Water Level Maintainer for Acme::FishFarm
VERSION
Version 0.01
SYNOPSIS
use Acme::FishFarm::WaterLevelMaintainer;
EXPORT
None
CREATION RELATED MEHODS
install ( %options )
Installs a water level maintainer system. This system only pumps water in if the water level is lower than the threshold value.
The supported %options
are:
- current_water_level
-
The default water level is to
5 m
. - low_water_level_threshold
-
The default threshold is
2 m
.If the current water level is lower than this threshold, then you need to pump water into the tank.
- increase_water_level_by
-
This is the height of the water level to increase when the water is pumped in.
The default value is
0.5 m
.
WATER LEVEL DETECTION RELATED METHODS
current_water_level ( $new_water_level )
Sets / returns the current water level of the water.
$new_water_level
is optional. If present, the current water level will be set to $new_water_level
. Otherwise, returns the current water level (depth) in metres
.
low_water_level_threshold
Returns the low water level threshold.
set_low_water_level_threshold ( $new_threshold )
Sets the low water level threshold.
is_low_water_level
Returns 1
if the DO level is less than the threshold value. Otherwise, returns 0
.
PUMPS RELATED METHODS
For the pumping mechanism, just assume that the pumps can actually pump in certain metres of water each time :)
water_level_increase_height
Returns the height of water level to increase each time the pump_water_in
is called.
set_water_level_increase_height ( $new_height )
Sets the height of water level to increase to $new_height
.
pump_water_in
Pumps water into the tank to increase the height of the water level.
AUTHOR
Raphael Jong Jun Jie, <ellednera at cpan.org>
BUGS
Please report any bugs or feature requests to bug-. at rt.cpan.org
, or through the web interface at https://rt.cpan.org/NoAuth/ReportBug.html?Queue=.. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
SUPPORT
You can find documentation for this module with the perldoc command.
perldoc Acme::FishFarm::WaterLevelMaintainer
You can also look for information at:
RT: CPAN's request tracker (report bugs here)
CPAN Ratings
Search CPAN
ACKNOWLEDGEMENTS
LICENSE AND COPYRIGHT
This software is Copyright (c) 2021 by Raphael Jong Jun Jie.
This is free software, licensed under:
The Artistic License 2.0 (GPL Compatible)