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

com.digitalpetri.enip.logix.structs.TemplateInstance Maven / Gradle / Ivy

package com.digitalpetri.enip.logix.structs;

import java.io.Serializable;
import java.util.List;

public final class TemplateInstance implements Serializable {

    private final String name;
    private final int symbolType;
    private final TemplateAttributes attributes;
    private final List members;

    public TemplateInstance(String name,
                            int symbolType,
                            TemplateAttributes attributes,
                            List members) {

        this.name = name;
        this.symbolType = symbolType;
        this.attributes = attributes;
        this.members = members;
    }

    public String getName() {
        return name;
    }

    public int getSymbolType() {
        return symbolType;
    }

    public TemplateAttributes getAttributes() {
        return attributes;
    }

    public List getMembers() {
        return members;
    }

    public int getInstanceId() {
        return symbolType & 0x0FFF;
    }

    @Override
    public String toString() {
        return "TemplateInstance{" +
            "name='" + name + '\'' +
            ", attributes=" + attributes +
            ", members=" + members +
            '}';
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy