| 1 | package FLAT::DFA::Minimal; | ||||||||||
| 2 | |||||||||||
| 3 | 6 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | 6 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | 6 | ▶ | use parent qw(FLAT::DFA); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 6 | 6 | ▶ | use Storable qw(dclone); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 7 | |||||||||||
| 8 | 137 | ▶ | sub new { | ||||||||
|
Subroutine
new: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 9 | 137 | my $pkg = shift; | |||||||||
| 10 | 137 | my $self = $pkg->SUPER::new(@_); | |||||||||
| 11 | 137 | $self->{EQUIVALENCE_CLASSES} = []; | |||||||||
| 12 | 137 | return $self; | |||||||||
| 13 | } | ||||||||||
| 14 | |||||||||||
| 15 | 5 | ▶ | sub get_equivalence_classes { | ||||||||
|
Subroutine
get_equivalence_classes: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||
| 16 | 5 | my $self = shift; | |||||||||
| 17 | 5 | return $self->{EQUIVALENCE_CLASSES}; | |||||||||
| 18 | } | ||||||||||
| 19 | |||||||||||
| 20 | 137 | ▶ | sub set_equivalence_classes { | ||||||||
|
Subroutine
set_equivalence_classes: called CC=2 SCAR=7.0
Pod
documented
| |||||||||||
| 21 | 137 | my $self = shift; | |||||||||
| 22 | 137 | my $e_classes = shift; | |||||||||
| 23 | 137 | ▶ | die qq{Must be an array reference\n} if ref $e_classes ne q{ARRAY}; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 24 | 137 | $self->{EQUIVALENCE_CLASSES} = $e_classes; | |||||||||
| 25 | 137 | return $self->{EQUIVALENCE_CLASSES}; | |||||||||
| 26 | } | ||||||||||
| 27 | |||||||||||
| 28 | 6 | 1; | |||||||||
| 29 | |||||||||||
| 30 | __END__ | ||||||||||