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

com.digitalpetri.enip.cip.structs.NetworkConnectionParameters Maven / Gradle / Ivy

There is a newer version: 1.5.0-RC1
Show newest version
package com.digitalpetri.enip.cip.structs;

public class NetworkConnectionParameters {

    private final int connectionSize;
    private final SizeType sizeType;
    private final Priority priority;
    private final ConnectionType connectionType;
    private final boolean redundantOwner;

    public NetworkConnectionParameters(int connectionSize,
                                       SizeType sizeType,
                                       Priority priority,
                                       ConnectionType connectionType,
                                       boolean redundantOwner) {

        this.connectionSize = connectionSize;
        this.sizeType = sizeType;
        this.priority = priority;
        this.connectionType = connectionType;
        this.redundantOwner = redundantOwner;
    }

    public int getConnectionSize() {
        return connectionSize;
    }

    public SizeType getSizeType() {
        return sizeType;
    }

    public Priority getPriority() {
        return priority;
    }

    public ConnectionType getConnectionType() {
        return connectionType;
    }

    public boolean isRedundantOwner() {
        return redundantOwner;
    }

    public static enum SizeType {
        Fixed,
        Variable
    }

    public static enum Priority {
        Low,
        High,
        Scheduled,
        Urgent
    }

    public static enum ConnectionType {
        Null,
        Multicast,
        PointToPoint,
        Reserved
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy