GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  ALGORITHM::DEPENDENCY::OBJECTS (3)

.ds Aq ’

NAME

Algorithm::Dependency::Objects - An implementation of an Object Dependency Algorithm

CONTENTS

SYNOPSIS



        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[0] );

        # need to take care of @needed for $objecs[0] to be resolved



DESCRIPTION

This modules is a re-implementation of Algorithm::Dependency using only objects instead of object ids, making use of Set::Object for book-keeping.

METHODS

<B>newB> Duh.
<B>objectsB>
<B>selectedB> 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.
<B>dependsB>
<B>scheduleB>
<B>schedule_allB> See Algorithm::Dependency’s corresponding methods.
<B>verify_input_setB> $object_set Make sure that the dependencies of every object in the set are also in the set.
<B>handle_missing_objectsB> $missing_set, $input_set Called by verify_input_set when objects are missing from the input set.

You can override this method to simply return



        $input_set->union($missing_set);



making all dependencies of the input objects implicit input objects themselves.

<B>unknown_objectB> $object Called when a new object pops out of the blue in the middle of processing (it means get_deps is returning inconsistent values).
<B>get_depsB> $object Extract the dependencies out of an object. Calls depends on the object.
<B>can_get_depsB> $object Default implementation is



        $object->can("depends");



<B>assert_can_get_depsB> $object_set Croaks if can_get_deps doesn’t return true for every object in the set.

SEE ALSO

Adam Kennedy’s excellent Algorithm::Dependency module, upon which this is based.

BUGS

None that we are aware of. Of course, if you find a bug, let us know, and we will be sure to fix it.

CODE COVERAGE

We use Devel::Cover to test the code coverage of our tests, below is the Devel::Cover report on this module test suite.

AUTHORS

Yuval Kogman

Stevan Little

COPYRIGHT AND LICENSE

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.

Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 ALGORITHM::DEPENDENCY::OBJECTS (3) 2007-09-20

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.