eclipseme.core.model.impl
Class AbstractEmulator

java.lang.Object
  extended byeclipseme.core.model.impl.PlatformComponent
      extended byeclipseme.core.model.impl.AbstractEmulator
All Implemented Interfaces:
org.eclipse.core.runtime.IAdaptable, IEmulator, IPlatformComponent, java.io.Serializable

public abstract class AbstractEmulator
extends PlatformComponent
implements IEmulator

Abstract support class for Emulator implementations.

Note: This class/interface is part of an interim API that is still under development and expected to change before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken as the API evolves.

Copyright (c) 2004 Craig Setera
All Rights Reserved.
Licensed under the Eclipse Public License - v 1.0


$Revision: 1.4 $
$Date: 2005/04/02 22:10:41 $

Author:
Craig Setera
See Also:
Serialized Form

Constructor Summary
AbstractEmulator(java.io.File root, java.lang.String identifier, java.lang.String name)
          Construct a new AbstractEmulator.
AbstractEmulator(java.io.File root, java.lang.String identifier, java.lang.String name, Version version)
          Construct a new AbstractEmulator.
AbstractEmulator(java.lang.String identifier)
          Construct a new AbstractEmulator.
 
Method Summary
 IDevice[] getDevices()
          Get the devices available via this emulator.
 java.io.File getRoot()
          Get the emulator's root directory.
 boolean isPredeploymentRequired()
          Return a boolean indicating whether this emulator requires a deployed jar file to be created before emulation can be done.
 
Methods inherited from class eclipseme.core.model.impl.PlatformComponent
addDependentComponent, getAdapter, getDependentComponents, getIdentifier, getName, getVersion, hasDependentComponents, isDerived, removeDependentComponent, setDerived
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface eclipseme.core.model.IEmulator
getArguments, isDebugServer
 
Methods inherited from interface eclipseme.core.model.IPlatformComponent
addDependentComponent, getDependentComponents, getIdentifier, getName, getPersistenceDelegate, getVersion, hasDependentComponents, isDerived, removeDependentComponent
 
Methods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapter
 

Constructor Detail

AbstractEmulator

public AbstractEmulator(java.lang.String identifier)
Construct a new AbstractEmulator.

Parameters:
identifier -

AbstractEmulator

public AbstractEmulator(java.io.File root,
                        java.lang.String identifier,
                        java.lang.String name)
Construct a new AbstractEmulator.

Parameters:
root - the root file system path for the emulator
name - the name of the emulator

AbstractEmulator

public AbstractEmulator(java.io.File root,
                        java.lang.String identifier,
                        java.lang.String name,
                        Version version)
Construct a new AbstractEmulator.

Parameters:
root - the root file system path for the emulator
name - the name of the emulator
version - the version of the emulator
Method Detail

getDevices

public IDevice[] getDevices()
Description copied from interface: IEmulator
Get the devices available via this emulator.

Specified by:
getDevices in interface IEmulator
Returns:
the devices supported by this emulator
See Also:
IEmulator.getDevices()

getRoot

public java.io.File getRoot()
Get the emulator's root directory.

Returns:
the emulator's root directory

isPredeploymentRequired

public boolean isPredeploymentRequired()
Description copied from interface: IEmulator
Return a boolean indicating whether this emulator requires a deployed jar file to be created before emulation can be done. If this emulator requires predeployment, standard packaging (without obfuscation) will be done if the currently deployed jar file is not up to date.

Specified by:
isPredeploymentRequired in interface IEmulator
Returns:
whether or not predeployment is necessary.
See Also:
IEmulator.isPredeploymentRequired()