package org.nl.acs.device_driver.basedriver.slit_two_manipulator;

import org.nl.acs.device.device_driver.standard_inspect.ItemDto;
import org.nl.acs.device.domain.Device;
import org.nl.acs.device_driver.DeviceDriver;
import org.nl.acs.device_driver.defination.OpcDeviceDriverDefination;
import org.nl.acs.device.enums.DeviceType;
import org.springframework.stereotype.Service;

import java.util.LinkedList;
import java.util.List;

/**
 * 分切双工位行架机械手
 *
 */
@Service
public class SlitTwoManipulatorDefination implements OpcDeviceDriverDefination {
    @Override
    public String getDriverCode() {
        return "slit_two_manipulator";
    }

    @Override
    public String getDriverName() {
        return "分切双工位-行架机械手";
    }

    @Override
    public String getDriverDescription() {
        return "分切双工位-行架机械手";
    }

    @Override
    public DeviceDriver getDriverInstance(Device device) {
        return (new SlitTwoManipulatorDeviceDriver()).setDevice(device).setDriverDefination(this);

    }

    @Override
    public Class<? extends DeviceDriver> getDeviceDriverType() {
        return SlitTwoManipulatorDeviceDriver.class;
    }

    @Override
    public List<DeviceType> getFitDeviceTypes() {
        List<DeviceType> types = new LinkedList();
        types.add(DeviceType.station);
        return types;
    }

    @Override
    public List<ItemDto> getReadableItemDtos() {
        return ItemProtocol.getReadableItemDtos();
    }

    @Override
    public List<ItemDto> getWriteableItemDtos() {
        return ItemProtocol.getWriteableItemDtos();
    }

}
