1.0.0

org.eclipse.soda.dk.agent.test.bundle
Class AgentTestBundle

java.lang.Object
  extended by BaseBundleActivator
      extended by org.eclipse.soda.dk.connection.bundle.ServiceBundle
          extended by org.eclipse.soda.dk.connection.bundle.ServiceInterestBundle
              extended by org.eclipse.soda.dk.device.bundle.DeviceInterestBundle
                  extended by org.eclipse.soda.dk.agent.test.bundle.AgentTestBundle
All Implemented Interfaces:
org.osgi.framework.BundleActivator

public abstract class AgentTestBundle
extends DeviceInterestBundle
implements org.osgi.framework.BundleActivator

Device Test class.

Version:
1.0.0
See Also:
org.eclipse.soda.dk.connection.bundle, org.eclipse.soda.dk.device.bundle, org.eclipse.soda.dk.device.service, org.eclipse.soda.dk.agent.test, org.eclipse.soda.dk.transport.bundle, org.osgi.framework, org.eclipse.soda.dk.connection.bundle, org.eclipse.soda.dk.device.bundle, org.eclipse.soda.dk.device.service, org.eclipse.soda.dk.agent.test, org.eclipse.soda.dk.transport.bundle, org.osgi.framework

Field Summary
static java.lang.String CLASS_NAME
          Defines the class name.
protected  AgentTest testCase
          Save the tester object.
 
Fields inherited from class org.eclipse.soda.dk.connection.bundle.ServiceBundle
DEVICE_CLASS, DEVICE_REVISION
 
Constructor Summary
AgentTestBundle()
           
 
Method Summary
 java.util.Hashtable createProperties()
          Gets the properties to be registered with the service(s).
 java.lang.Object createService()
          Create service and return the Object result.
abstract  java.lang.Object createService(DeviceService device)
          Create the Tester for the specified device.
protected  void deactivate()
          Stop the test case and the bundle.
 java.lang.String[] getExportedServiceNames()
          Return the service name(s) to be registered by the AgentTest bundle.
abstract  java.lang.String getInterestServiceName()
          Gets the device service name to be tested.
 void setInterest(java.lang.Object interest)
          Sets the interest object.
 
Methods inherited from class org.eclipse.soda.dk.connection.bundle.ServiceInterestBundle
activate, destroyExportedServices, getInterest
 
Methods inherited from class org.eclipse.soda.dk.connection.bundle.ServiceBundle
getService, log, log, setService
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.osgi.framework.BundleActivator
start, stop
 

Field Detail

CLASS_NAME

public static final java.lang.String CLASS_NAME
Defines the class name.


testCase

protected AgentTest testCase
Save the tester object.

Constructor Detail

AgentTestBundle

public AgentTestBundle()
Method Detail

createProperties

public java.util.Hashtable createProperties()
Gets the properties to be registered with the service(s).

Overrides:
createProperties in class ServiceBundle
Returns:
Hashtable of properties.

createService

public java.lang.Object createService()
Create service and return the Object result.

Overrides:
createService in class DeviceInterestBundle
Returns:
Results of the create service (Object) value.
See Also:
createService(DeviceService)

createService

public abstract java.lang.Object createService(DeviceService device)
Create the Tester for the specified device. The device (DeviceService) parameter.

Overrides:
createService in class DeviceInterestBundle
Parameters:
device - The device (DeviceService) parameter.
Returns:
Results of the create service (Object) value.
See Also:
createService()

deactivate

protected void deactivate()
Stop the test case and the bundle.


getExportedServiceNames

public java.lang.String[] getExportedServiceNames()
Return the service name(s) to be registered by the AgentTest bundle.

Specified by:
getExportedServiceNames in class ServiceBundle
Returns:
Results of the get service names (String[]) value.

getInterestServiceName

public abstract java.lang.String getInterestServiceName()
Gets the device service name to be tested.

Overrides:
getInterestServiceName in class ServiceInterestBundle
Returns:
Results of the get interest service name (String) value.

setInterest

public void setInterest(java.lang.Object interest)
Sets the interest object. The interest (Object) parameter.

Overrides:
setInterest in class ServiceInterestBundle
Parameters:
interest - The interest (Object) parameter.
See Also:
ServiceInterestBundle.getInterest()

1.0.0

Copyright (c) 1999, 2007 IBM