| Trees | Indices | Help |
|---|
|
|
object --+
|
DeviceManager
Creates and manages the devices and monitors use by LSR. 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.
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
| object |
|
||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
| boolean or None |
|
||
|
|||
|
|||
| boolean or None |
|
||
|
|||
|
|||
|
|||
|
|||
| 2-tuple AEMonitor.MonitorCollection |
|
||
| AEOutput |
|
||
| AEOutput |
|
||
| AEOutput |
|
||
| AEInput |
|
||
| AEOutput |
|
||
|
|||
|
|||
| list of UIElement |
|
||
| AEOutput.Style |
|
||
|
Inherited from |
|||
|
|||
| AccessEngine |
acc_eng The AccessEngine reference that created this class |
||
| EventManager |
event_manager EventManager to which this DeviceManager can post AEEvents |
||
| list |
in_devs All input devices registered and initialized |
||
| AEMonitor.MonitorCollection |
in_mons Collection of monitors to notify about input |
||
| dictionary |
marks Maps index markers on devices to |
||
| list |
out_devs All output devices registered and initialized |
||
| AEMonitor.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 |
|||
|
|||
Creates the empty lists for devices and monitors.
|
Called by AccessEngine 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 Perks continue to exist until the DeviceManager 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.
|
Sends the stop command to the referenced output device.
|
Tells the specified output device to send buffered data.
|
Sends the filename to the specified output device.
|
Sends the string to the specified output device.
|
Sends the referenced index marker to the referenced device.
|
Checks if the given device is a duplicate in that it provides no new interfaces beyond those provided by the devices already registered. |
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 input device. Removes this manager from the list of gesture listeners stored in the device.
|
Unregisters the given output device. Provides the device with a reference to the SettingsManager 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.Base.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, the init() method is called on the device. Returns true when the reference is of a known type that initializes successfully.
|
Unregisters a device from both the input and output lists based on its capabilities. |
Adds one or more AEMonitors to the list of monitors to be notified about IO events. |
|
Gets the first AEOutput device to successfully load.
|
Gets the AEOutput device registered under the given name.
|
Gets the AEOutput device registered with the given capabilities.
|
Gets the AEInput device registered under the given name.
|
Gets the AEInput device registered with the given capabilities.
|
Creates an AEEvent indicating the given gesture was found on a registered input device. When executed, the AEEvent will notify the TierManager about the gesture and allow it to activate the appropriate Task registered to respond to the gesture in the active Tier.
|
|
Gets the style for semantic/layer of a given device.
|
|
|||
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 DeviceManager is repopulated with devices.
|
| Trees | Indices | Help |
|---|
| Generated by Epydoc 3.0beta1 on Mon Jun 4 15:33:20 2007 | http://epydoc.sourceforge.net |