Class describing one index.
Use it as a container index or subclass to create custom indices.
During class initialization, special attribute name is magically
set based on class name. See NameSetter definitions for details.
|
|
__init__(self,
*indices)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
|
|
_iter_indices(self)
Iterate over each subindex and yield their values.
|
|
compute_with(self,
cheesecake)
Take given Cheesecake instance and compute index value.
|
|
compute(self)
Compute index value and return it.
|
|
decide(self,
cheesecake,
when)
Decide if this index should be computed.
|
|
decide_before_download(self,
cheesecake)
|
|
decide_after_download(self,
cheesecake)
|
|
add_info(self,
info_line)
Add information about index computation process, which will
be visible with --verbose flag.
|
|
_get_max_value(self)
|
|
_get_requirements(self)
|
|
add_subindex(self,
index)
Add subindex.
|
|
remove_subindex(self,
index_name)
Remove subindex (refered by name).
|
|
_print_info_one(self)
|
|
_print_info_many(self)
|
|
print_info(self)
Print index name padded with dots, followed by value and details.
|
|
__getitem__(self,
name)
|
|
get_info(self)
|
:
__delattr__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__str__
|