| Home | Trees | Indices | Help |
|
|---|
|
|
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from |
|||
|
|||
|
_exitcode def __getattr__(self, aname): return self.myAgent.__dict__[aname] |
|||
|
|||
|
Inherited from Inherited from Inherited from |
|||
|
|||
x.__init__(...) initializes x; see help(type(x)) for signature
|
|
|
|||
_exitcode
def __getattr__(self, aname):
return self.myAgent.__dict__[aname]
def __setattr__(self, aname, value):
# Base case: aname is defined locally
if aname in self.__dict__:
self.__dict__[aname] = value
# Second case: aname is defined in "myAgent"
elif "myAgent" in self.__dict__ and self.__dict__["myAgent"] and aname in self.myAgent.__dict__:
setattr(self.myAgent, aname, value)
# Third case: new local declaration
else:
self.__dict__[aname] = value
|
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Wed Aug 1 18:44:35 2012 | http://epydoc.sourceforge.net |