All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cn.ideabuffer.process.api.model.node.NodeModel Maven / Gradle / Ivy

There is a newer version: 1.1.16
Show newest version
package cn.ideabuffer.process.api.model.node;

import cn.ideabuffer.process.api.model.Model;
import cn.ideabuffer.process.core.Node;
import org.jetbrains.annotations.NotNull;

/**
 * @author sangjian.sj
 * @date 2020/06/20
 */
public class NodeModel extends Model {

    private static final long serialVersionUID = -4090498585897073047L;

    public NodeModel(@NotNull R resource) {
        super(resource);
    }

    private boolean enabled;

    public boolean isEnabled() {
        return enabled;
    }

    public void setEnabled(boolean enabled) {
        this.enabled = enabled;
    }

    @Override
    public void init() {
        super.init();
        this.enabled = resource.enabled();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy