Skip to main content
Jump to: navigation, search

DSDP/TML/Creating TmL Plugins/device handler class template

/*
 * Replace <DEVICE_NAME> for the device name in the package declaration.
 */
 
package org.eclipse.tml.device.<DEVICE_NAME>.handler;
 
import org.eclipse.tml.framework.device.internal.model.MobileInstance;
import org.eclipse.tml.framework.device.model.IInstance;
import org.eclipse.tml.framework.device.model.handler.IDeviceHandler;
 
 
/*
 * Replace <DEVICE_NAME> for the device name in the class declaration.
 *
 * Remember to use the class name as the filename.
 */
 
public class <DEVICE_NAME>DeviceHandler implements IDeviceHandler {
    public IInstance createDeviceInstance(String id) {
        return new MobileInstance(id);
    }
}

Back to the top