# DistributedObject

from direct.distributed.DistributedObject import DistributedObject

The Distributed Object class is the base class for all network based (i.e. distributed) objects. These will usually (always?) have a dclass entry in a *.dc file.

## Inheritance:

DistributedObject: DistributedObjectBase
DistributedObjectBase: DirectObject
DirectObject:

## Methods of DistributedObject:

__init__
addInterest
announceGenerate
b_setLocation
d_setLocation
delayDelete
delete
deleteOrDelay
disable
disableAndAnnounce
disableAnnounceAndDelete
doCallbackContext
doneBarrier
generate
generateInit
getAutoInterests
getCacheable
getCallback
getCallbackArgs
getCallbackContext
getCurrentContexts
getDoId
getLocation
getNeverDisable
getParentObj
handleChildArrive
handleChildLeave
hasParentingRules
isDisabled
isGenerated
isGridParent
isLocal
removeInterest
sendDeleteMsg
sendDisableMsg
sendUpdate
setBarrierData
setCacheable
setLocation
setNeverDisable
taskName
uniqueName
updateAllRequiredFields
updateRequiredFields
updateRequiredOtherFields
updateZone

## Methods of DistributedObjectBase:

__init__
getLocation
getParentObj
handleChildArrive
handleChildLeave

## Methods of DirectObject:

__init__
accept
acceptOnce
ignore
ignoreAll
isAccepting
isIgnoring

__init__ def __init__(self, cr) Undocumented function.

addInterest def addInterest(self, zoneId, note="", event=None) Undocumented function.

announceGenerate def announceGenerate(self) Sends a message to the world after the object has been generated and all of its required fields filled in.

b_setLocation def b_setLocation(self, parentId, zoneId) Undocumented function.

d_setLocation def d_setLocation(self, parentId, zoneId) Undocumented function.

delayDelete def delayDelete(self, flag) Undocumented function.

delete def delete(self) Inheritors should redefine this to take appropriate action on delete

deleteOrDelay def deleteOrDelay(self) Undocumented function.

disable def disable(self) Inheritors should redefine this to take appropriate action on disable

disableAndAnnounce def disableAndAnnounce(self) Inheritors should *not* redefine this function.

disableAnnounceAndDelete def disableAnnounceAndDelete(self) Undocumented function.

doCallbackContext def doCallbackContext(self, context, args) Undocumented function.

doneBarrier def doneBarrier(self, name=None) Undocumented function.

generate def generate(self) Inheritors should redefine this to take appropriate action on generate

generateInit def generateInit(self) This method is called when the DistributedObject is first introduced to the world... Not when it is pulled from the cache.

getAutoInterests def getAutoInterests(self) Undocumented function.

getCacheable def getCacheable(self) Undocumented function.

getCallback def getCallback(self, context) Undocumented function.

getCallbackArgs def getCallbackArgs(self, context) Undocumented function.

getCallbackContext def getCallbackContext(self, callback, extraArgs=[]) Undocumented function.

getCurrentContexts def getCurrentContexts(self) Undocumented function.

getDoId def getDoId(self) Return the distributed object id

getLocation def getLocation(self) Undocumented function.

getNeverDisable def getNeverDisable(self) Undocumented function.

getParentObj def getParentObj(self) Undocumented function.

handleChildArrive def handleChildArrive(self, childObj, zoneId) Undocumented function.

handleChildLeave def handleChildLeave(self, childObj, zoneId) Undocumented function.

hasParentingRules def hasParentingRules(self) Undocumented function.

isDisabled def isDisabled(self) Returns true if the object has been disabled and/or deleted, or if it is brand new and hasn't yet been generated.

isGenerated def isGenerated(self) Returns true if the object has been fully generated by now, and not yet disabled.

isGridParent def isGridParent(self) Undocumented function.

isLocal def isLocal(self) Undocumented function.

removeInterest def removeInterest(self, handle, event=None) Undocumented function.

sendDeleteMsg def sendDeleteMsg(self) Undocumented function.

sendDisableMsg def sendDisableMsg(self) Undocumented function.

sendUpdate def sendUpdate(self, fieldName, args=[], sendToId=None) Undocumented function.

setBarrierData def setBarrierData(self, data) Undocumented function.

setCacheable def setCacheable(self, bool) Undocumented function.

setLocation def setLocation(self, parentId, zoneId) Undocumented function.

setNeverDisable def setNeverDisable(self, bool) Undocumented function.

taskName def taskName(self, taskString) Undocumented function.

uniqueName def uniqueName(self, idString) Undocumented function.

updateAllRequiredFields def updateAllRequiredFields(self, dclass, di) Undocumented function.

updateRequiredFields def updateRequiredFields(self, dclass, di) Undocumented function.

updateRequiredOtherFields def updateRequiredOtherFields(self, dclass, di) Undocumented function.

updateZone def updateZone(self, zoneId) Undocumented function.

__init__ def __init__(self, cr) Undocumented function.

getLocation def getLocation(self) Undocumented function.

getParentObj def getParentObj(self) Undocumented function.

handleChildArrive def handleChildArrive(self, childObj, zoneId) Undocumented function.

handleChildLeave def handleChildLeave(self, childObj, zoneId) Undocumented function.

__init__ def __init__(self) Undocumented function.

accept def accept(self, event, method, extraArgs=[]) Undocumented function.

acceptOnce def acceptOnce(self, event, method, extraArgs=[]) Undocumented function.

ignore def ignore(self, event) Undocumented function.

ignoreAll def ignoreAll(self) Undocumented function.

isAccepting def isAccepting(self, event) Undocumented function.

isIgnoring def isIgnoring(self, event) Undocumented function.