lisa.wlgen.rta.ContaminatingProperty#
- class lisa.wlgen.rta.ContaminatingProperty[source]#
Bases:
PropertyBaseBase class for properties that will “contaminate” other instances when combined with them, even if they are closer to the leaf.
Classes
__class__inheritedMetaclass for properties.
Attributes
Subclasses can override this attribute so that
PropertyBase.from_key()knows that it can call their_from_key()method for that key.Properties
Methods
HASH_COERCE()inheritedUsed to coerce the values of
self.__dict__to hashable values.__and__()inheritedCombine two instances of the same property together.
find_cls()inheritedFind which subclass can handle
key.from_key()inheritedAlternative constructor that is available with the same signature for all properties.
Classes#
- ContaminatingProperty.__class__#
alias of
PropertyMeta
Attributes#
- ContaminatingProperty.KEY = None#
Subclasses can override this attribute so that
PropertyBase.from_key()knows that it can call their_from_key()method for that key.Note
This class attribute will not be inherited automatically so that each class can be uniquely identified by its key. Subclass that do not override the value explicitly will get
None.
Properties#
- property ContaminatingProperty.key#
Inherited property, see
lisa.wlgen.rta.PropertyBase.keyKey of the instance.
- abstract property ContaminatingProperty.val#
Inherited property, see
lisa.wlgen.rta.PropertyBase.valValue “payload” of the property.
Methods#
- ContaminatingProperty.HASH_COERCE(x, coerce)#
Inherited method, see
lisa.utils.SimpleHash.HASH_COERCE()Used to coerce the values of
self.__dict__to hashable values.
- abstract ContaminatingProperty.__and__(other)#
Inherited method, see
lisa.wlgen.rta.PropertyBase.__and__()Combine two instances of the same property together.
- classmethod ContaminatingProperty.find_cls(key)#
Inherited method, see
lisa.wlgen.rta.PropertyBase.find_cls()Find which subclass can handle
key.
- classmethod ContaminatingProperty.from_key(key, val)#
Inherited method, see
lisa.wlgen.rta.PropertyBase.from_key()Alternative constructor that is available with the same signature for all properties.