View on
MetaCPAN
Luis M Rodríguez-R > Polloc-1.5.3b > Bio::Polloc::Rule::boolean

Download:
Polloc-1.5.3b.tgz

Dependencies

Annotate this POD

CPAN RT

New  1
Open  1
View/Report Bugs
Module Version: 1.0503   Source  

NAME ^

Bio::Polloc::Rule::boolean - A rule of type boolean operator

AUTHOR - Luis M. Rodriguez-R ^

Email lmrodriguezr at gmail dot com

APPENDIX ^

Methods provided by the package

execute

Arguments

-seq Bio::Seq or Bio::SeqIO object

The input sequence(s).

Returns

An array reference populated with Bio::Polloc::Locus::* objects

Throws

Bio::Polloc::Polloc::UnexpectedException if the operator is not supported or Bio::Polloc::Polloc::Error if the rule is not within a rule set (a Bio::Polloc::RuleIO object).

rule1

Gets/sets the first rule

Arguments

A Bio::Polloc::RuleI object (optional)

Returns

Bio::Polloc::RuleI object or undef.

operator

Gets/sets the operator

Arguments

A string with the operator.

Returns

String 'and', 'or', 'not' or undef.

rule2

Gets/sets the second rule

Arguments

A Bio::Polloc::RuleI object (optional).

Returns

Bio::Polloc::RuleI object or undef.

INTERNAL METHODS ^

Methods intended to be used only within the scope of Bio::Polloc::*

_qualify_value

Implements the _qualify_value() method from the Bio::Polloc::RuleI interface.

Arguments

None, the operation should be set using the Bio::Polloc::Rule::boolean::rule1(), Bio::Polloc::Rule::boolean::operator() and Bio::Polloc::Rule::boolean::rule2() functions.

Return

The received value.

Note

Do not call Bio::Polloc::RuleI::value() with an undefined value, it is the only way to make it crash for booleans.

_initialize

syntax highlighting: