Mobile Tools for Java
Release 1.0

org.eclipse.mtj.toolkit.uei
Class UEIDevice

java.lang.Object
  extended by org.eclipse.mtj.core.model.device.impl.AbstractDevice
      extended by org.eclipse.mtj.toolkit.uei.UEIDevice
All Implemented Interfaces:
IDevice, IDevice2, IBundleReferencePersistable, IPersistable

public class UEIDevice
extends AbstractDevice
implements IDevice2

Unified Emulator Interface (UEI) implementation of the IDevice interface.

EXPERIMENTAL. This class has been added as part of a work in progress. There is no guarantee that this API will work or that it will remain the same. Please do not use this API without consulting with the MTJ team.


Field Summary
 
Fields inherited from class org.eclipse.mtj.core.model.device.impl.AbstractDevice
bundle, classpath, debugServer, description, deviceProperties, executable, groupName, launchCommandTemplate, name, preverifier, protectionDomains
 
Constructor Summary
UEIDevice()
          Creates a new UEIDeviceInternal
 
Method Summary
 boolean equals(Object obj)
           
 boolean equals(UEIDevice device)
          Test equality on a UEI device and return a boolean indicating equality.
 String getLaunchCommand(LaunchEnvironment launchEnvironment, IProgressMonitor monitor)
          Return the command-line arguments for launching this device given the specified launch environment.
 File getWorkingDirectory()
          Return the working directory to be used when launching the device emulation.
 int hashCode()
           
 
Methods inherited from class org.eclipse.mtj.core.model.device.impl.AbstractDevice
addLaunchConfigurationValue, copyForLaunch, equals, getBundle, getClasspath, getConfigurationLibrary, getDescription, getDeviceProperties, getExecutable, getGroupName, getJadForLaunch, getLaunchCommandTemplate, getName, getOTAURL, getPreverifier, getProfileLibrary, getProjectClasspathString, getProtectionDomains, getSpecifiedJadURL, isDebugServer, isPredeploymentRequired, loadUsing, setBundle, setClasspath, setDebugServer, setDescription, setDeviceProperties, setExecutable, setGroupName, setLaunchCommandTemplate, setName, setPredeploymentRequired, setPreverifier, setProtectionDomains, shouldDirectLaunchJAD, shouldDoOTA, storeUsing, toString, urlEncoded
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.mtj.core.model.device.IDevice
getClasspath, getConfigurationLibrary, getDescription, getDeviceProperties, getGroupName, getName, getPreverifier, getProfileLibrary, getProtectionDomains, isDebugServer, isPredeploymentRequired, setName
 
Methods inherited from interface org.eclipse.mtj.core.persistence.IPersistable
loadUsing, storeUsing
 

Constructor Detail

UEIDevice

public UEIDevice()
Creates a new UEIDeviceInternal

Method Detail

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

equals

public boolean equals(UEIDevice device)
Test equality on a UEI device and return a boolean indicating equality.

Parameters:
device - the reference device with which to compare.
Returns:
true if this object is the same as the device argument; false otherwise.

getLaunchCommand

public String getLaunchCommand(LaunchEnvironment launchEnvironment,
                               IProgressMonitor monitor)
                        throws CoreException
Description copied from interface: IDevice
Return the command-line arguments for launching this device given the specified launch environment.

Specified by:
getLaunchCommand in interface IDevice
Returns:
Throws:
CoreException

getWorkingDirectory

public File getWorkingDirectory()
Description copied from interface: IDevice2
Return the working directory to be used when launching the device emulation.

Specified by:
getWorkingDirectory in interface IDevice2
Returns:

hashCode

public int hashCode()
Overrides:
hashCode in class Object

Mobile Tools for Java
Release 1.0