| Home | Trees | Index | Help |
|---|
| Package esys :: Package escript :: Module modelframe :: Class LinkableObject |
|
object --+
|
LinkableObject
ParameterSet
p = LinkableObject()
p.x = Link(o,"name")
print p.x
links attribute x of p to the attribute name
of object o.
p.x will contain the current value of attribute
name of object o.
getattr(o, "name") is callable,
p.x will return the return value of the call.
| Method Summary | |
|---|---|
Initializes LinkableObject so that we can operate on Links | |
Removes the attribute name. | |
Returns the value of attribute name. | |
Sets the value for attribute name. | |
Return the object stored for attribute name. | |
Returns True if self as attribute name. | |
If debugging is on, print the message, otherwise do nothing | |
| Inherited from object | |
x.__getattribute__('name') <==> x.name | |
x.__hash__() <==> hash(x) | |
T.__new__(S, ...) -> a new object with type S, a subtype of T | |
helper for pickle | |
helper for pickle | |
x.__repr__() <==> repr(x) | |
x.__str__() <==> str(x) | |
| Class Variable Summary | |
|---|---|
count |
number_sequence = <itertools.count object at 0x401ff100>
|
| Method Details |
|---|
__init__(self,
debug=False)
Initializes LinkableObject so that we can operate on Links
|
__delattr__(self, name)Removes the attribute name.
|
__getattr__(self,
name)
Returns the value of attribute name. If the value is a Link object
the object is called and the return value is returned.
|
__setattr__(self, name, value)Sets the value for attribute name. If value is a Link the target attribute is set to name if no attribute has been specified.
|
getAttributeObject(self, name)Return the object stored for attribute name. |
hasAttribute(self, name)Returns True if self as attribute name. |
trace(self, msg)If debugging is on, print the message, otherwise do nothing |
| Class Variable Details |
|---|
number_sequence
|
| Home | Trees | Index | Help |
|---|
| Generated by Epydoc 2.1 on Thu Apr 27 11:16:12 2006 | http://epydoc.sf.net |