|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object fr.emn.reactiveinput.devices.FStdInput
Folder containing a set of standard input devices
Note: "standard" does not mean that those devices will be available in all environments.
Field Summary | |
static DConst |
constant
|
static DGestureCommand |
gesturecommand
|
static DAWTKeyboard |
keyboard
|
static DSpeechCommand |
speechcommand
|
static DTick |
tick
|
static DTime |
time
|
static DVirtualUser |
virtualUser
|
Constructor Summary | |
FStdInput()
|
Method Summary | |
DeviceDescriptor |
getDefaultDescriptor()
Returns a descriptor telling all possible devices this folder can contain in all possible environments (DDFolder not included). |
DeviceDescriptor |
getDefaultDescriptor(Device device)
Returns the descriptor that will be used to build device's default signature. |
java.lang.String |
getName()
|
DeviceFolderContainer |
getParent()
Allows this folder to be added to a parent folder. |
Device[] |
getPrototypes()
getDevices method comment. |
void |
setParent(DeviceFolderContainer newParent)
Allows this folder to be added to a parent folder. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final DConst constant
public static final DTick tick
public static final DAWTKeyboard keyboard
public static final DSpeechCommand speechcommand
public static final DGestureCommand gesturecommand
public static final DTime time
public static final DVirtualUser virtualUser
Constructor Detail |
public FStdInput()
Method Detail |
public DeviceDescriptor getDefaultDescriptor()
DeviceFolder
Returns DDAny if this descriptor can contain every kind of device, or returns a more restrictive DeviceDescriptor defining the particular kind of devices associated with this folder.
getDefaultDescriptor
in interface DeviceFolder
public DeviceDescriptor getDefaultDescriptor(Device device)
DeviceFolder
The device signature is used to serialize the device, i.e. retreive it in further executions of the virtual machine. The default signature of the device D from folder F is given by the combination (DDAnd) of three descriptors (See getDefaultSignature() method in DescriptorManager class):
1) new DDFolder(F)
2) F.getDefaultDescriptor()
3) F.getDefaultDescriptor(D)
Two devices with the same signature are equivalent in functionnality. Device equivalence must be defined as restrictive as possible. However, this method must only return information that is useful to identify the device inside the folder.
For example, if all devices of the same class are equivalent for a given folder (as in standard.processors folder), you can return a class descriptor (DDClass). However, in folders that provide devices of the same class with different functionnalities, you must use an alternate method for identifying them (such as their name, or other properties).
Note1: When possible, move factorizable descriptors in getDefaultDescriptor(void) method.
Note2: Do not include descriptors that are already defined in getDefaultDescriptor(void).
getDefaultDescriptor
in interface DeviceFolder
public java.lang.String getName()
getName
in interface DeviceFolder
public DeviceFolderContainer getParent()
DeviceFolder
getParent
in interface DeviceFolder
public Device[] getPrototypes()
getPrototypes
in interface DeviceFolder
public void setParent(DeviceFolderContainer newParent)
DeviceFolder
setParent
in interface DeviceFolder
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |