public class DeviceUserAssociation extends DefaultDataObject
IUser and a AbstractGestureDevice.
Both objects are saved in the association. It extends DefaultDataObject so the association can be serialized.
It also implements the Device interface.PROPERTY_IDpropertyChangeSupport| Constructor and Description |
|---|
DeviceUserAssociation(AbstractGestureDevice<?,?> device,
IUser user)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
connect() |
void |
disconnect() |
boolean |
getConnected()
Check whether the device is connected or not.
|
String |
getConnectionType() |
String |
getDeviceClass() |
String |
getDeviceID() |
AbstractGestureDevice<?,?> |
getDeviceItem()
Get the device of this association.
|
String |
getDeviceType() |
String |
getName() |
String |
getUser()
Get a String representation of the user.
|
IUser |
getUserItem()
Get the associated User.
|
boolean |
isConnectable() |
boolean |
isConnected() |
boolean |
isDefaultDevice() |
boolean |
isDisconnectable() |
void |
setConnected(boolean isConnected)
Change the connection status of the device.
|
void |
setConnectionType(String connectionType) |
void |
setDefaultDevice(boolean isDefault) |
void |
setDeviceID(String id) |
void |
setIsConnected(boolean isConnected) |
void |
setName(String name) |
void |
setUser(User user)
Set the associated user.
|
String |
toString() |
accept, getId, setIdaddPropertyChangeListener, addPropertyChangeListener, removePropertyChangeListener, removePropertyChangeListenerclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddPropertyChangeListener, addPropertyChangeListener, removePropertyChangeListener, removePropertyChangeListenerpublic DeviceUserAssociation(AbstractGestureDevice<?,?> device, IUser user)
device - The device.user - The user to associate with the device.public void connect()
public void disconnect()
public String getConnectionType()
public String getDeviceID()
public String getDeviceType()
public String getName()
public boolean isConnectable()
public boolean isDisconnectable()
public void setConnectionType(String connectionType)
public void setDeviceID(String id)
public void setName(String name)
public void setUser(User user)
user - The user to associate.public String getUser()
public AbstractGestureDevice<?,?> getDeviceItem()
public IUser getUserItem()
public boolean isDefaultDevice()
public void setDefaultDevice(boolean isDefault)
public boolean isConnected()
public void setIsConnected(boolean isConnected)
public boolean getConnected()
isConnected()public void setConnected(boolean isConnected)
isConnected - The new connection status.setIsConnected(boolean)public String getDeviceClass()
Copyright © 2007-2012 Global Information Systems Group, ETH Zurich. All Rights Reserved.