package org.csstudio.sds.components.internal.model;

import org.csstudio.sds.components.model.TankModel;
import org.csstudio.sds.components.model.ThermometerModel;
import org.csstudio.sds.model.AbstractWidgetModel;
import org.csstudio.sds.model.IWidgetModelFactory;

/**
 * This class defines a widget model factory for thermometer widget models.
 * 
 * @author Xihui Chen
 * 
 */
public final class TankModelFactory implements IWidgetModelFactory {

	/**
	 * {@inheritDoc}
	 */
	public AbstractWidgetModel createWidgetModel() {
		return new TankModel();
	}

	/**
	 * {@inheritDoc}
	 */
	@SuppressWarnings("unchecked")
	public Class getWidgetModelType() {
		return TankModel.class;
	}

}

package org.csstudio.sds.components.internal.model;

import org.csstudio.sds.components.model.TankModel;
import org.csstudio.sds.model.AbstractWidgetModel;
import org.csstudio.sds.model.IWidgetModelFactory;

/**
 * This class defines a widget model factory for tank widget models.
 * 
 * @author Xihui Chen
 * 
 */
public final class TankModelFactory implements IWidgetModelFactory {

	/**
	 * {@inheritDoc}
	 */
	public AbstractWidgetModel createWidgetModel() {
		return new TankModel();
	}

	/**
	 * {@inheritDoc}
	 */
	@SuppressWarnings("unchecked")
	public Class getWidgetModelType() {
		return TankModel.class;
	}

}

improve comments