© 2006-2007 ETH Zurich

org.ximtec.igesture.core.composite
Class DefaultConstraintEntry

java.lang.Object
  extended by org.ximtec.igesture.core.DefaultPropertyChangeNotifier
      extended by org.ximtec.igesture.core.DefaultDataObject
          extended by org.ximtec.igesture.core.composite.DefaultConstraintEntry
All Implemented Interfaces:
Serializable, DataObject, PropertyChangeNotifier

public class DefaultConstraintEntry
extends DefaultDataObject

Author:
Bjorn Puype, bpuype@gmail.com
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.ximtec.igesture.core.DefaultDataObject
PROPERTY_ID
 
Fields inherited from class org.ximtec.igesture.core.DefaultPropertyChangeNotifier
propertyChangeSupport
 
Constructor Summary
DefaultConstraintEntry(String gesture)
          Constructor, all users and all device are allowed to perform this gesture
DefaultConstraintEntry(String gesture, int user)
          Constructor, all devices are allowed to perform this gesture
DefaultConstraintEntry(String gesture, int user, String deviceType, Set<String> devices)
          Constructor
DefaultConstraintEntry(String gesture, String deviceType, Set<String> devices)
          Constructor, all users are allowed to perform this gesture
 
Method Summary
 Set<String> getDevices()
           
 String getDeviceType()
           
 String getGesture()
           
 int getUser()
           
 String toString()
           
 
Methods inherited from class org.ximtec.igesture.core.DefaultDataObject
accept, getId, setId
 
Methods inherited from class org.ximtec.igesture.core.DefaultPropertyChangeNotifier
addPropertyChangeListener, addPropertyChangeListener, removePropertyChangeListener, removePropertyChangeListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.ximtec.igesture.core.PropertyChangeNotifier
addPropertyChangeListener, addPropertyChangeListener, removePropertyChangeListener, removePropertyChangeListener
 

Constructor Detail

DefaultConstraintEntry

public DefaultConstraintEntry(String gesture)
Constructor, all users and all device are allowed to perform this gesture

Parameters:
gesture - the gesture

DefaultConstraintEntry

public DefaultConstraintEntry(String gesture,
                              int user)
Constructor, all devices are allowed to perform this gesture

Parameters:
gesture - the gesture
user - the user that performs the gesture

DefaultConstraintEntry

public DefaultConstraintEntry(String gesture,
                              String deviceType,
                              Set<String> devices)
Constructor, all users are allowed to perform this gesture

Parameters:
gesture - the gesture
deviceType - the device type used to perform the gestures
devices - the specific devices that may be used to perform the gesture, specify null to allow all devices that are of type deviceType

DefaultConstraintEntry

public DefaultConstraintEntry(String gesture,
                              int user,
                              String deviceType,
                              Set<String> devices)
Constructor

Parameters:
gesture - the gesture
user - the user that performs the gesture
deviceType - the device type used to perform the gestures
devices - the specific devices that may be used to perform the gesture, specify null to allow all devices that are of type deviceType
Method Detail

getGesture

public String getGesture()
Returns:
the gesture

getUser

public int getUser()
Returns:
the user

getDeviceType

public String getDeviceType()
Returns:
the device type

getDevices

public Set<String> getDevices()
Returns:
the specific devices

toString

public String toString()
Overrides:
toString in class Object

© 2006-2007 ETH Zurich

Copyright © 2007-2010 Global Information Systems Group, ETH Zurich. All Rights Reserved.