Source code for diamondback.interfaces.IConfigure

""" **Description**

        Configure interface.

    **Example**

        ::

            from diamondback import IConfigure


            class Test( IConfigure ) :

                def __init__( self ) -> None :

                    super( ).__init__( )

                    self.configure = [ ]

            test = Test( )

            test.configure = { 'a' : 0.0, 'b' : 1.0 }

    **License**

        `BSD-3C.  <https://github.com/larryturner/diamondback/blob/master/license>`_

        © 2018 - 2021 Larry Turner, Schneider Electric Industries SAS. All rights reserved.

    **Author**

        Larry Turner, Schneider Electric, Analytics & AI, 2020-10-27.

    **Definition**

"""

from diamondback.interfaces.IEqual import IEqual
import typing


[docs]class IConfigure( IEqual ) : """ Configure interface. """ @property def configure( self ) : """ configure : typing.Any. """ return self._configure @configure.setter def configure( self, configure : typing.Any ) : self._configure = configure
[docs] def __eq__( self, other : typing.Any ) -> bool : """ Equal. Arguments : other : typing.Any. Returns : equal : bool. """ return ( ( super( ).__eq__( other ) ) and ( self.configure == other.configure ) )
def __init__( self ) -> None : """ Initialize. """ super( ).__init__( ) self._configure = None