package com.tipdm.framework.dmserver.core.scheduling.model;

import com.tipdm.framework.model.dmserver.ComponentIO;

import java.io.Serializable;

/**
 * Created by TipDM on 2017/1/10.
 * E-mail:devp@tipdm.com
 */
public class IO implements Serializable {

    private String id;

    private String key;

    private String value;

    private Boolean isConnected = false;

    private String description;

    private Integer left;

    private Boolean isModel = Boolean.FALSE;

    private Boolean canPreview = Boolean.FALSE;

    private ComponentIO.Category cat = ComponentIO.Category.DATA;

    private ComponentIO.MetaDataAccess access = ComponentIO.MetaDataAccess.SAME;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Boolean getIsConnected() {
        return isConnected;
    }

    public void setIsConnected(Boolean isConnected) {
        this.isConnected = isConnected;
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Integer getLeft() {
        return left;
    }

    public void setLeft(Integer left) {
        this.left = left;
    }

    public Boolean getIsModel() {
        return isModel;
    }

    public void setIsModel(Boolean model) {
        isModel = model;
    }

    public Boolean getCanPreview() {
        return canPreview;
    }

    public void setCanPreview(Boolean canPreview) {
        this.canPreview = canPreview;
    }

    public ComponentIO.Category getCat() {
        return cat;
    }

    public void setCat(ComponentIO.Category cat) {
        this.cat = cat;
    }

    public ComponentIO.MetaDataAccess getAccess() {
        return access;
    }

    public void setAccess(ComponentIO.MetaDataAccess access) {
        this.access = access;
    }
}
