(self, routercontainer)
:param routercontainer:
            should implement :class:`txtorcon.interface.IRouterContainer`.
:param routercontainer:
            should implement :class:`txtorcon.interface.IRouterContainer`.
: param routercontainer : should implement : class : txtorcon . interface . IRouterContainer .
def __init__(self, routercontainer):
        """
        :param routercontainer:
            should implement :class:`txtorcon.interface.IRouterContainer`.
        """
        self.listeners = []
        self.router_container = IRouterContainer(routercontainer)
        self._torstate = routercontainer  # XXX FIXME
        self.path = []
        self.streams = []
        self.purpose = None
        self.id = None
        self.state = 'UNKNOWN'
        self.build_flags = []
        self.flags = {}

        # this is used to hold a Deferred that will callback() when
        # this circuit is being CLOSED or FAILED.
        self._closing_deferred = None
        # XXX ^ should probably be when_closed() etc etc...

        # caches parsed value for time_created()
        self._time_created = None

        # all notifications for when_built, when_closed
        self._when_built = SingleObserver()
        self._when_closed = SingleObserver()
def __init__ ( self , routercontainer ) : self . listeners = [ ] self . router_container = IRouterContainer ( routercontainer ) self . _torstate = routercontainer # XXX FIXME self . path = [ ] self . streams = [ ] self . purpose = None self . id = None self . state = 'UNKNOWN' self . build_flags = [ ] self . flags = { } # this is used to hold a Deferred that will callback() when # this circuit is being CLOSED or FAILED. self . _closing_deferred = None # XXX ^ should probably be when_closed() etc etc... # caches parsed value for time_created() self . _time_created = None # all notifications for when_built, when_closed self . _when_built = SingleObserver ( ) self . _when_closed = SingleObserver ( )