HappyDoc Generated Documentation Class: MessageBuffer

. / Collaboratory / Hub.py / MessageBuffer 

This class represents a buffer that will store all the messages that pass through the hub. Thus, when a user signs on to an already-in-progress collaboratory session, these messages can be sent to the user, thus updating their state to that of the other collaboratory users

Methods   
  setUserState 
setUserState (
        self,
        user,
        pos,
        )
  getSize 
getSize ( self )
  deleteAllMessages 
deleteAllMessages ( self )

When all users disconnect from the hub, it is assumed that the collab session is over, so delete all the stored messages in the hub

  filter 
filter ( self,  messages )

Possibly could find a more memory-efficient method of filtering, but not sure how that would work using for msg in messages loop and deleting as you go along instead of building new list

  addMessages 
addMessages ( self,  messages )
  getMessages 
getMessages ( self,  start )
  __init__ 
__init__ ( self,  parent )
  getUserState 
getUserState ( self,  user )
  hasOpenedMsg 
hasOpenedMsg ( self )

This document was automatically generated Thu Feb 02 15:18:29 2006 by HappyDoc version 3.0.a1