20 Sep 2007 20:43:27 UTC
- Distribution: Algorithm-Dependency-Objects
- Module version: 0.04
- Source (raw)
- Browse (raw)
- How to Contribute
- Testers (535 / 0 / 1)
- KwaliteeBus factor: 3
- 84.57% Coverage
- License: unknown
- Activity24 month
- Download (4.66KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest versionNUFFIN יובל קוג'מן (Yuval Kogman)
Algorithm::Dependency::Objects - An implementation of an Object Dependency Algorithm
use Algorithm::Dependency::Objects; my $o = Algorithm::Dependency::Objects->new( objects => \@objects, selected => \@selected, # objects which are already taken care of ); my @needed = $o->schedule( $objects ); # need to take care of @needed for $objecs to be resolved
Returns the Set::Object representing this collection. Objects is an enumeration of all the object who we're dependo-frobnicating, and selected is those that don't need to be run.
See Algorithm::Dependency's corresponding methods.
- verify_input_set $object_set
Make sure that the dependencies of every object in the set are also in the set.
- handle_missing_objects $missing_set, $input_set
verify_input_setwhen objects are missing from the input set.
You can override this method to simply return
making all dependencies of the input objects implicit input objects themselves.
- unknown_object $object
Called when a new object pops out of the blue in the middle of processing (it means
get_depsis returning inconsistent values).
- get_deps $object
Extract the dependencies out of an object. Calls
dependson the object.
- can_get_deps $object
Default implementation is
- assert_can_get_deps $object_set
can_get_depsdoesn't return true for every object in the set.
Adam Kennedy's excellent Algorithm::Dependency module, upon which this is based.
None that we are aware of. Of course, if you find a bug, let us know, and we will be sure to fix it.
We use Devel::Cover to test the code coverage of our tests, below is the Devel::Cover report on this module test suite.
Copyright (C) 2005 Yuval Kogman, Stevan Little
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Module Install Instructions
To install Algorithm::Dependency::Objects, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell install Algorithm::Dependency::Objects
For more information on module installation, please visit the detailed CPAN module installation guide.