| Trees | Indices | Help |
|
|---|
|
|
object --+
|
_AEDeviceManager
Creates and manages the devices and monitors use by SUE.
Keeps a list of each and also defines a "default" for devices. Provides a common interface to all output and input devices and mirrors I/O to the monitors. Provides a mapping from output styles to semantic concepts in the user interface to allow customization of how information is presented.Note:
RB: instance variable marks is currently not
used
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
| object |
|
||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
| boolean or None |
|
||
|
|||
|
|||
| boolean or None |
|
||
|
|||
|
|||
|
|||
|
|||
| 2-tuple AEMonitor.MonitorCollection |
|
||
| AEOutput |
|
||
| AEOutput |
|
||
| AEOutput |
|
||
| AEInput |
|
||
| AEOutput |
|
||
|
|||
|
|||
| list of AEUserInterface |
|
||
| AEOutput.Style |
|
||
|
Inherited from |
|||
|
|||
| list |
in_devs All input devices registered and initialized |
||
| MonitorCollection |
in_mons Collection of monitors to notify about input |
||
| dictionary |
marks Maps index markers on devices |
||
| list |
out_devs All output devices registered and initialized |
||
| MonitorCollection |
out_mons Collection of monitors to notify about output |
||
| list |
temp_devs List of AEOutput and AEInput devices last removed in unloadDevices and held until the next call of loadDevices. |
||
|
|||
|
Inherited from |
|||
|
|||
|
Loads all I/O monitors and devices to be created at startup. Called by AEMain at startup. |
Unloads all devices from out_devs and in_devs, but keeps strong references to all objects in temp_devs until loadDevices is called again. Keeping strong references ensures weak references in AEScripts continue to exist until the AEDeviceManager has new devices available for I/O. |
Shuts down this manager and all its registered AEOutput and AEInput devices and AEMonitors. Saves all style information for currently loaded devices. |
Sends arbitrary data to a device. The device must recognize the name in order to decide what to do with the value data. This is a generic method which receives all content and commands to be rendered and executed on a device. Standard name identifiers should be used whenever possible. For instance, AEConstants.Output.CMD_STOP and AEConstants.Output.CMD_TALK. However, device specific names and values are certainly possible.
|
|
|
|
|
|
Outputs the SUE welcome message on all output devices. Instead of just sending the message to the default output device, it is now sent to all output devices, so you know your braille display works properly. One question remains: Is there a case where you would not want a welcome message sent to an output device? |
Outputs the SUE goodbye message on all output devices. Instead of just sending the message to the default output device, it is now sent to all output devices. One question remains: Is there a case where you would not want a goodbye message sent to your output device? |
|
Registers the given device as an input device if the device implements the AEInput base class and provides some capabilities not already provided by another registered input device. For instance, if a device reports it supports the "system keyboard" capability, no other system keyboard device will be loaded. |
|
Unregisters the given output device. Provides the device with a reference to the AESettingsManager so it can save state. Removes this manager from the list of index listeners stored in the device.
|
Registers the given device as an output device if the device implements the AEOutput base class and provides some subinterface not already provided by another registered output device. For instance, if a device reports having "audio" capability, no other device providing just this capability will be loaded. |
Initializes styles for an AEOutput device. Calls AEOutput.AEOutput.createDistinctStyles on the device to get an initial batch of styles to use to distinguish some types of information. If that method is not implemented, the exception is ignored. Future requests to use styles per semantic tag will resort to making flyweights for the default style on the device.
|
Registers the referenced device based on its one or more interfaces. When the interface is determined, theinit() method is
called on the device.
|
|
|
|
|
|
Note: MW: We decided not to limit output devices to unique capabilities anymore. Instead roles are used to distingish the devices' funtions. |
|
|
Creates an AEEvent indicating the given gesture was found on a registered input device. When executed, the AEEvent will notify the AETierManager about the gesture and allow it to activate the appropriate script task, which is registered to respond to the gesture in the active AETier.
|
To Do: RB: Taken over from LSR. Used in _unregisterOutputDevice and _registerOutputDevice. This function needs to be implemented or removed. (Note: This function isn't implemented in any subclass either, because there are no subclasses of _AEDeviceManager) |
|
|
|
|||
temp_devsList of AEOutput and AEInput devices last removed in unloadDevices and held until the next call of loadDevices. The purpose of this list is to ensure strong references to all devices exist, and thus weak references are not destroyed, until the the AEDeviceManager is repopulated with devices.
|
| Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0beta1 on Mon Jun 30 13:05:54 2008 | http://epydoc.sourceforge.net |