Package zeroinstall :: Package injector :: Module model :: Class Restriction
[frames] | no frames]

Class Restriction

source code

object --+
         |
        Restriction

A Restriction limits the allowed implementations of an Interface.

Instance Methods
bool
meets_restriction(self, impl)
Called by the solver.Solver to check whether a particular implementation is acceptable.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties

Inherited from object: __class__

Method Details

meets_restriction(self, impl)

source code 

Called by the solver.Solver to check whether a particular implementation is acceptable.

Returns: bool
False if this implementation is not a possibility