1 CLASS:: AbstractResponderFunc
2 summary:: Abstract superclass of responder func objects
3 categories:: External Control>Abstract Classes
4 related:: Classes/OSCFunc, Classes/OSCdef, Classes/MIDIFunc, Classes/MIDIdef, Classes/AbstractDispatcher
7 AbstractResponderFunc is the abstract superclass of responder funcs, which are classes which register one or more functions to respond to a particular type of input. It provides some common functionality such as introspection. Its two main subclasses are link::Classes/OSCFunc::, and link::Classes/MIDIFunc::. By default responder funcs do not persist beyond Cmd-. (see link::#-permanent:: below).
9 Instances will register with a dispatcher (an instance of a subclass of link::Classes/AbstractDispatcher::), which will actually dispatch incoming messages to an instance's Function(s).
16 METHOD:: allFuncProxies
17 Get all current instances of this classes concrete subclasses, sorted by type.
19 returns:: An link::Classes/IdentityDictionary::.
22 As allFuncProxies above, but only return those instances currently listening for input.
24 returns:: An link::Classes/IdentityDictionary::.
27 As allFuncProxies above, but only return those instances currently not listening for input.
29 returns:: An link::Classes/IdentityDictionary::.
33 private:: cmdPeriod, prFunc
36 Get or set this objects response function.
38 returns:: The getter returns a link::Classes/Function:: or similar object.
41 Get this object's source.
43 returns:: The return type will depend on subclass. For link::Classes/OSCFunc:: this will be a link::Classes/NetAddr::, for link::Classes/MIDIFunc:: a UID. This can can be nil, which indicates that the object will respond to any source.
46 Check if this object is currently responding to incoming messages.
48 returns:: A link::Classes/Boolean::.
51 et this object's dispatcher. This is the object which matches incoming messages with responder funcs. Instances can use custom dispatchers to support arbitrary matching schemes.
53 returns:: An instance of an appropriate subclass of link::Classes/AbstractDispatcher::. (The return type will depend on subclass.)
56 Get or set whether this responder func is persists when the user executes Cmd-. If false this will be disabled and removed from the global lists. The default is false.
59 A link::Classes/Boolean:: indicating if this object is permanent.
61 returns:: The getter returns a link::Classes/Boolean::.
64 Enable this object to receive incoming messages. This is done automatically at creation time.
67 Stop this object from receiving incoming messages.
70 Add a new function to the list of functions which will be executed when this object receives an incoming message.
73 A link::Classes/Function:: or similar object to be added.
76 Remove a function from the list of functions which will be executed when this object receives an incoming message.
79 The link::Classes/Function:: to be removed.
82 Open a subclass specific GUI. (Not yet implemented)
84 returns:: The GUI object.
87 Indicate that this object should execute only once and then free itself.
90 A synonym for link::#permanent::
93 Disable this object and remove it from the global lists. This should be done when you are finished using this object.
96 Remove all active functions from this object's function list.
101 See link::Classes/OSCFunc:: and link::Classe/MIDIFunc::.