| 1 | package Bio::Metabolic::Dynamics::Substrate; | ||||||||||
| 2 | |||||||||||
| 3 | 1 | require 5.005_62; | |||||||||
| 4 | 1 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | 1 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 6 | |||||||||||
| 7 | 1 | require Exporter; | |||||||||
| 8 | |||||||||||
| 9 | 1 | our $VERSION = '0.06'; | |||||||||
| 10 | |||||||||||
| 11 | 16 | ▶ | sub Bio::Metabolic::Substrate::var { | ||||||||
|
Subroutine
var: called CC=3 SCAR=11.0
Pod
documented
| |||||||||||
| 12 | 16 | my $self = shift; | |||||||||
| 13 | 16 | ▶ | $self->{var} = shift if @_; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 14 | |||||||||||
| 15 | $self->{var} = Math::Symbolic::Variable->new( $self->name ) | ||||||||||
| 16 | 16 | ▶ | unless defined $self->{var}; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 17 | 16 | return $self->{var}; | |||||||||
| 18 | } | ||||||||||
| 19 | |||||||||||
| 20 | 1 | ▶ | sub Bio::Metabolic::Substrate::fix { | ||||||||
|
Subroutine
fix: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||
| 21 | 1 | my $self = shift; | |||||||||
| 22 | 1 | my $value = shift; | |||||||||
| 23 | |||||||||||
| 24 | 1 | return $self->var->value($value); | |||||||||
| 25 | } | ||||||||||
| 26 | |||||||||||
| 27 | 1 | ▶ | sub Bio::Metabolic::Substrate::release { | ||||||||
|
Subroutine
release: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||
| 28 | 1 | shift->var->value(undef); | |||||||||
| 29 | } | ||||||||||