ConfigurationDef

public class ConfigurationDef
extends Object

java.lang.Object
   ↳ com.android.tradefed.config.ConfigurationDef


Holds a record of a configuration, its associated objects and their options.

Summary

Nested classes

class ConfigurationDef.ConfigObjectDef

Object to hold info for a className and the appearance number it has (e.g. if a config has the same object twice, the first one will have the first appearance number). 

class ConfigurationDef.OptionDef

Holds the details of an option. 

Fields

public static final String DEFAULT_DEVICE_NAME

Public constructors

ConfigurationDef(String name)

Public methods

String addExpectedDevice(String deviceName, boolean isFake)

Add a device that needs to be tracked and whether or not it's real.

String getDescription()

Returns a short description of the configuration

getExpectedDevices()

Returns the current Map of tracked devices and if they are real or not.

String getName()

Gets the name of this configuration definition

boolean isMultiDeviceMode()

Returns whether or not the recorded configuration is multi-device or not.

void setMultiDeviceMode(boolean multiDeviceMode)

Protected methods

void checkRejectedObjects( rejectedObjects, Throwable cause)

Evaluate rejected objects map, if any throw an exception.

void injectOptions(IConfiguration config, optionList)

Fields

DEFAULT_DEVICE_NAME

public static final String DEFAULT_DEVICE_NAME

Public constructors

ConfigurationDef

public ConfigurationDef (String name)

Parameters
name String

Public methods

addExpectedDevice

public String addExpectedDevice (String deviceName, 
                boolean isFake)

Add a device that needs to be tracked and whether or not it's real.

Parameters
deviceName String

isFake boolean

Returns
String

getDescription

public String getDescription ()

Returns a short description of the configuration

Returns
String

getExpectedDevices

public  getExpectedDevices ()

Returns the current Map of tracked devices and if they are real or not.

Returns

getName

public String getName ()

Gets the name of this configuration definition

Returns
String name of this configuration.

isMultiDeviceMode

public boolean isMultiDeviceMode ()

Returns whether or not the recorded configuration is multi-device or not.

Returns
boolean

setMultiDeviceMode

public void setMultiDeviceMode (boolean multiDeviceMode)

Parameters
multiDeviceMode boolean

Protected methods

checkRejectedObjects

protected void checkRejectedObjects ( rejectedObjects, 
                Throwable cause)

Evaluate rejected objects map, if any throw an exception.

Parameters
rejectedObjects

cause Throwable

Throws
ClassNotFoundConfigurationException

injectOptions

protected void injectOptions (IConfiguration config, 
                 optionList)

Parameters
config IConfiguration

optionList

Throws
ConfigurationException