Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

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