I am writing a connection-state keeping program based loosely on the "State" example here.
In the example, the class Radio passes a pointer (better term?) to AmState when instancing AmState:
class AmState(State):
def __init__(self, radio):
self.radio = radio
...
class Radio(object):
def __init__(self):
...
self.amstate = AmState(self)
The example stores this pointer (?) in the name 'radio', but what would be the correct Python/OO term for this value? I keep wanting to say "parent", but 'AmState's parent is 'State', not 'radio'.
What is the terminology I should be using here to minimize confusion when documenting my code?
Thanks