|
|
@@ -137,7 +137,7 @@ class DistributedObject(PandaObject):
|
|
|
return None
|
|
|
|
|
|
def announceGenerate(self):
|
|
|
- """announceGenerate(self)
|
|
|
+ """
|
|
|
Sends a message to the world after the object has been
|
|
|
generated and all of its required fields filled in.
|
|
|
"""
|
|
|
@@ -146,7 +146,7 @@ class DistributedObject(PandaObject):
|
|
|
messenger.send(self.uniqueName("generate"), [self])
|
|
|
|
|
|
def disable(self):
|
|
|
- """disable(self)
|
|
|
+ """
|
|
|
Inheritors should redefine this to take appropriate action on disable
|
|
|
"""
|
|
|
assert(self.notify.debug('disable(): %s' % (self.doId)))
|
|
|
@@ -154,21 +154,21 @@ class DistributedObject(PandaObject):
|
|
|
self.__callbacks = {}
|
|
|
|
|
|
def isDisabled(self):
|
|
|
- """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.
|
|
|
"""
|
|
|
return (self.activeState < ESGenerating)
|
|
|
|
|
|
def isGenerated(self):
|
|
|
- """isGenerated(self)
|
|
|
+ """
|
|
|
Returns true if the object has been fully generated by now,
|
|
|
and not yet disabled.
|
|
|
"""
|
|
|
return (self.activeState == ESGenerated)
|
|
|
|
|
|
def delete(self):
|
|
|
- """delete(self)
|
|
|
+ """
|
|
|
Inheritors should redefine this to take appropriate action on delete
|
|
|
"""
|
|
|
assert(self.notify.debug('delete(): %s' % (self.doId)))
|
|
|
@@ -180,21 +180,21 @@ class DistributedObject(PandaObject):
|
|
|
return
|
|
|
|
|
|
def generate(self):
|
|
|
- """generate(self)
|
|
|
+ """
|
|
|
Inheritors should redefine this to take appropriate action on generate
|
|
|
"""
|
|
|
assert(self.notify.debug('generate()'))
|
|
|
self.activeState = ESGenerating
|
|
|
|
|
|
def generateInit(self):
|
|
|
- """generateInit(self)
|
|
|
+ """
|
|
|
This method is called when the DistributedObject is first introduced
|
|
|
to the world... Not when it is pulled from the cache.
|
|
|
"""
|
|
|
self.activeState = ESGenerating
|
|
|
|
|
|
def getDoId(self):
|
|
|
- """getDoId(self)
|
|
|
+ """
|
|
|
Return the distributed object id
|
|
|
"""
|
|
|
return self.doId
|