libhydro.core.modeleprevision (version 0.8d, 2015-10-30)
index
/home/seb/PHyC_source/libhydro3/libhydro/core/modeleprevision.py

Module modeleprevision.
 
Ce module contient une seule classe:
    #Modeleprevision

 
Modules
       
libhydro.core._composant

 
Classes
       
builtins.object
Modeleprevision

 
class Modeleprevision(builtins.object)
    Modeleprevision(code=None, libelle=None, typemodele=0, description=None, strict=True)
 
Class Modeleprevision.
 
Classe pour manipuler les modeles numeriques de prevision.
 
Proprietes:
    code (string <= 10) =
    libelle (string)
    typemodele (integer parmi NOMENCLATURE[525])
    description (string)
 
  Methods defined here:
__eq__(self, other, attrs=None, ignore=None, lazzy=False)
Equal elaborate function.
 
Arguments:
    self, other
    attrs (iterable of strings, default to self.__class__.__all__attrs__ or
        __self.__dict__.keys() = the attrs to compare
    ignore (iterable of strings, default None) = attrs to ignore in the
        comparison
    lazzy (bool, default False) = if True does not test an attribute
        whose counterpart is None
 
NB: functool.partial could be smarter than a private class variable to
fix the default attrs list, but it doesn't work with 'self'.
__hash__(self)
__init__(self, code=None, libelle=None, typemodele=0, description=None, strict=True)
Initialisation.
 
Arguments:
    code (string <= 10)
    libelle (string)
    typemodele (integer parmi NOMENCLATURE[525], defaut 0)
    description (string)
    strict (bool, defaut True) = le mode permissif permet de lever les
        controles de validite du code et du type de modele
__ne__(self, other, attrs=[], ignore=[], lazzy=False)
__str__(self)
Return string representation from __unicode__ method.
__unicode__(self)
Return unicode representation.

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)
code
Return code hydro.
typemodele
Class Nomenclatureitem.
 
A descriptor to deal with 'in nomenclature.NOMENCLATURES' properties.
 
Should raise only a ValueError when value is not allowed (even with
the None case).
 
Properties:
    nomenclature (int) = the nomenclature ref
    valuetype (type) = a function to cast values to the nomenclature's
        items type
    strict (bool, default True) = wether or not the instance value has
        to be in the nomenclature items
    required (bool, defaut True) = wether or not instance's value can
        be None
    default =  a defautl value returned if the instance's value is not
        in the dictionnary. Should be unused if the property has been
        initialized.
    data (weakref.WeakKeyDictionary)

Data and other attributes defined here:
__all__attrs__ = ('code', 'libelle', 'typemodel', 'description')

 
Author
        Philippe Gouin <philippe.gouin@developpement-durable.gouv.fr>