Framework Professional Edition Package


com.prosyst.mbs.services.device
Class DeviceManagerEvent

java.lang.Object
  extended by com.prosyst.mbs.services.device.DeviceManagerEvent

public class DeviceManagerEvent
extends java.lang.Object

This class holds all needed information for all possible events, which can occur during the normal work of the Device Manager.

Author:
Daniel Janev

Field Summary
static int DEVICE_ATTACHMENT_BEGIN
          Constant, which indicates that the event type is for the beginning of attachment procedure.
static int DEVICE_ATTACHMENT_END
          Constant, which indicates that the event type is for the end of attachment procedure.
static int DEVICE_ATTACHMENT_FAILURE
          Constant, which indicates that the event type is for failure of attachment procedure.
static int DEVICE_NO_DRIVER_FOUND
          Constant, which indicates that the event type is for indication that there is no driver for the specified device..
 
Constructor Summary
DeviceManagerEvent(org.osgi.framework.ServiceReference deviceSR, org.osgi.framework.ServiceReference driverSR, int type)
          Creates new instance of the event object.
 
Method Summary
 org.osgi.framework.ServiceReference getDevice()
           
 org.osgi.framework.ServiceReference getDriver()
           
 int getType()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEVICE_ATTACHMENT_BEGIN

public static final int DEVICE_ATTACHMENT_BEGIN
Constant, which indicates that the event type is for the beginning of attachment procedure.

See Also:
Constant Field Values

DEVICE_ATTACHMENT_END

public static final int DEVICE_ATTACHMENT_END
Constant, which indicates that the event type is for the end of attachment procedure.

See Also:
Constant Field Values

DEVICE_ATTACHMENT_FAILURE

public static final int DEVICE_ATTACHMENT_FAILURE
Constant, which indicates that the event type is for failure of attachment procedure.

See Also:
Constant Field Values

DEVICE_NO_DRIVER_FOUND

public static final int DEVICE_NO_DRIVER_FOUND
Constant, which indicates that the event type is for indication that there is no driver for the specified device..

See Also:
Constant Field Values
Constructor Detail

DeviceManagerEvent

public DeviceManagerEvent(org.osgi.framework.ServiceReference deviceSR,
                          org.osgi.framework.ServiceReference driverSR,
                          int type)
Creates new instance of the event object.

Parameters:
deviceSR - the device object ServiceReference object
driverSR - the driver object ServiceReference object
type - specifies the type of the event object.
Method Detail

getType

public int getType()
Returns:
This method returns the type of this event object.

getDevice

public org.osgi.framework.ServiceReference getDevice()
Returns:
This method returns the ServiceReference object of the real device object.

getDriver

public org.osgi.framework.ServiceReference getDriver()
Returns:
This method returns the ServiceReference object of the real driver object (if any).

Framework Professional Edition Package


Copyright © 1999-2007 ProSyst Software GmbH. All Rights Reserved