Panda3D
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Properties
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
OldClientRepository Class Reference
Inheritance diagram for OldClientRepository:
ClientRepositoryBase ConnectionRepository DoInterestManager DoCollectionManager

Public Member Functions

def __init__
 
def createWithRequired
 
def generateWithRequiredFields
 
def handleDatagram
 
def handleGenerateWithRequired
 
def handleRequestGenerates
 
def handleSetDOIDrange
 
def haveCreateAuthority
 
def isLocalId
 
def sendDeleteMsg
 
def sendDisableMsg
 
def sendRemoveZoneMsg
 
def sendSetZoneMsg
 
def sendUpdateZone
 
- Public Member Functions inherited from ClientRepositoryBase
def __init__
 
def allocateContext
 
def considerHeartbeat
 
def disableDoId
 
def doDeferredGenerate
 
def doGenerate
 
def flushGenerates
 
def generateWithRequiredFields
 
def generateWithRequiredOtherFields
 
def generateWithRequiredOtherFieldsOwner
 
def getObjectsOfClass
 
def getObjectsOfExactClass
 
def getServerDelta
 
def getServerTimeOfDay
 
def getTables
 
def getWorld
 
def handleDelete
 
def handleGoGetLost
 
def handleServerHeartbeat
 
def handleSystemMessage
 
def handleSystemMessageAknowledge
 
def handleUpdateField
 
def isLive
 
def isLocalId
 
def printDelayDeletes
 
def replaceMethod
 
def replayDeferredGenerate
 
def sendHeartbeatTask
 
def setDeferInterval
 
def setServerDelta
 
def specialName
 def queryObjectAll(self, doID, context=0): """ Get a one-time snapshot look at the object. More...
 
def startHeartbeat
 
def stopHeartbeat
 
def waitForNextHeartBeat
 
- Public Member Functions inherited from ConnectionRepository
def __init__
 
def checkHttp
 
def connect
 
def disconnect
 
def generateGlobalObject
 
def getServerAddress
 
def handleDatagram
 
def handleReaderOverflow
 
def httpConnectCallback
 
def importModule
 
def lostConnection
 
def readDCFile
 
def readerPollOnce
 
def readerPollUntilEmpty
 
def send
 
def shutdown
 
def startReaderPollTask
 
def stopReaderPollTask
 
- Public Member Functions inherited from DoInterestManager
def __init__
 
def addAutoInterest
 
def addInterest
 
def alterInterest
 
def cleanupWaitAllInterestsComplete
 
def closeAutoInterests
 
def getAllInterestsCompleteEvent
 
def handleInterestDoneMessage
 
def isValidInterestHandle
 
def noNewInterests
 
def openAutoInterests
 
def printInterestHistory
 
def printInterests
 
def printInterestSets
 
def printInterestsIfDebug
 
def queueAllInterestsCompleteEvent
 
def removeAIInterest
 
def removeAutoInterest
 
def removeInterest
 
def resetInterestStateForConnectionLoss
 
def setAllInterestsCompleteCallback
 
def setNoNewInterests
 
def updateInterestDescription
 
- Public Member Functions inherited from DoCollectionManager
def __init__
 
def addDOToTables
 
def callbackWithDo
 
def callbackWithOwnerView
 
def countObjects
 
def deleteDistributedObjects
 
def deleteObjectLocation
 
def doByDistance
 
def doFind
 
def doFindAll
 
def doFindAllInstances
 
def doFindAllMatching
 
def doFindAllOfType
 
def dosByDistance
 
def findAnyOfType
 
def getAllOfType
 
def getDo
 
def getDoIdList
 
def getDoList
 
def getDoTable
 
def getGameDoId
 
def getObjectsInZone
 def changeDOZoneInTables(self, do, newParentId, newZoneId, oldParentId, oldZoneId): if 1: self.storeObjectLocation(do.doId, newParentId, newZoneId) else: #assert not hasattr(do, "isQueryAllResponse") or not do.isQueryAllResponse oldLocation = (oldParentId, oldZoneId) newLocation = (newParentId, newZoneId)

HACK: DistributedGuildMemberUD starts in -1, -1, which isnt ever put in the

zoneId2doIds table

if self.isValidLocationTuple(oldLocation): assert self.notify.debugStateCall(self) assert oldLocation in self.zoneId2doIds assert do.doId in self.zoneId2doIds[oldLocation] assert do.doId not in self.zoneId2doIds.get(newLocation, {})

remove from old zone

del(self.zoneId2doIds[oldLocation][do.doId]) if len(self.zoneId2doIds[oldLocation]) == 0: del self.zoneId2doIds[oldLocation] if self.isValidLocationTuple(newLocation):

add to new zone

self.zoneId2doIds.setdefault(newLocation, {}) self.zoneId2doIds[newLocation][do.doId]=do More...
 
def getObjectsOfClassInZone
 
def getOwnerView
 
def getOwnerViewDoIdList
 
def getOwnerViewDoList
 
def handleObjectLocation
 
def handleSetLocation
 
def hasOwnerViewDoId
 
def isInDoTables
 
def isValidLocationTuple
 
def printObjectCount
 
def printObjects
 
def removeDOFromTables
 
def storeObjectLocation
 
def webPrintObjectCount
 

Public Attributes

 DOIDbase
 
 DOIDlast
 
 DOIDnext
 
- Public Attributes inherited from ClientRepositoryBase
 bootedIndex
 
 bootedText
 
 cache
 
 cacheOwner
 
 context
 
 dcSuffix
 
 deferInterval
 
 deferredDoIds
 
 deferredGenerates
 
 doDataCache
 
 heartbeatInterval
 
 heartbeatStarted
 
 lastGenerate
 
 lastHeartbeat
 
 noDefer
 
 parentMgr
 
 recorder
 
 relatedObjectMgr
 
 serverDelta
 
 specialNameNumber
 
 timeManager
 
- Public Attributes inherited from ConnectionRepository
 bootedIndex
 if self.recorder and self.recorder.isPlaying(): More...
 
 bootedText
 
 config
 
 connectHttp
 
 connectMethod
 
 dclassesByName
 
 dclassesByNumber
 
 dcSuffix
 
 hashVal
 
 http
 
 private__di
 
 readerPollTaskObj
 
 recorder
 
 uniqueId
 
- Public Attributes inherited from DoCollectionManager
 doId2do
 
 doId2ownerView
 self.zoneId2doIds={} More...
 

Static Public Attributes

tuple notify = DirectNotifyGlobal.directNotify.newCategory("ClientRepository")
 
- Static Public Attributes inherited from ClientRepositoryBase
tuple notify = DirectNotifyGlobal.directNotify.newCategory("ClientRepositoryBase")
 
- Static Public Attributes inherited from ConnectionRepository
int CM_HTTP = 0
 
int CM_NATIVE = 2
 
int CM_NET = 1
 
string GarbageCollectTaskName = "allowGarbageCollect"
 
string GarbageThresholdTaskName = "adjustGarbageCollectThreshold"
 
tuple gcNotify = directNotify.newCategory("GarbageCollect")
 
tuple notify = DirectNotifyGlobal.directNotify.newCategory("ConnectionRepository")
 
 taskChain = None
 
int taskPriority = -30
 
- Static Public Attributes inherited from DoInterestManager
tuple InterestDebug = tempbase.config.GetBool('interest-debug', False)
 
tuple notify = directNotify.newCategory("DoInterestManager")
 
 tempbase = base
 

Detailed Description

This is the open-source ClientRepository as provided by CMU.  It
communicates with the ServerRepository in this same directory.

If you are looking for the VR Studio's implementation of the
client repository, look to OTPClientRepository (elsewhere).

Constructor & Destructor Documentation

def __init__ (   self,
  dcFileNames = None 
)

Member Function Documentation

def createWithRequired (   self,
  className,
  zoneId = 0,
  optionalFields = None 
)
def generateWithRequiredFields (   self,
  dclass,
  doId,
  di 
)
def handleDatagram (   self,
  di 
)
def handleGenerateWithRequired (   self,
  di 
)
def handleRequestGenerates (   self,
  di 
)
def handleSetDOIDrange (   self,
  di 
)
def haveCreateAuthority (   self)
def isLocalId (   self,
  id 
)
def sendDeleteMsg (   self,
  doId 
)
def sendDisableMsg (   self,
  doId 
)
def sendRemoveZoneMsg (   self,
  zoneId,
  visibleZoneList = None 
)
def sendSetZoneMsg (   self,
  zoneId,
  visibleZoneList = None 
)
def sendUpdateZone (   self,
  obj,
  zoneId 
)

Member Data Documentation

DOIDbase
DOIDlast
DOIDnext
tuple notify = DirectNotifyGlobal.directNotify.newCategory("ClientRepository")
static