org.openmuc.jdlms.interfaceclass.method.AssociationLnMethod Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jdlms Show documentation
Show all versions of jdlms Show documentation
jDLMS is a library implementing the DLMS/COSEM (IEC 62056) communication standard.
/*
* Copyright 2012-18 Fraunhofer ISE
*
* This file is part of jDLMS.
* For more information visit http://www.openmuc.org
*
* jDLMS is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* jDLMS is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with jDLMS. If not, see .
*
*/
package org.openmuc.jdlms.interfaceclass.method;
import org.openmuc.jdlms.interfaceclass.InterfaceClass;
/**
* This class contains the methods defined for IC AssociationLn.
*
* @deprecated since 1.5.1. Use the none enum initalizer of {@link org.openmuc.jdlms.MethodParameter}.
*/
@Deprecated
public enum AssociationLnMethod implements MethodClass {
REPLY_TO_HLS_AUTHENTICATION(1, false),
CHANGE_HLS_SECRET(2, false),
ADD_OBJECT(3, false),
REMOVE_OBJECT(4, false);
static final InterfaceClass INTERFACE_CLASS = InterfaceClass.ASSOCIATION_LN;
private int methodId;
private boolean mandatory;
private AssociationLnMethod(int methodId, boolean mandatory) {
this.methodId = methodId;
this.mandatory = mandatory;
}
@Override
public boolean isMandatory() {
return this.mandatory;
}
@Override
public int getMethodId() {
return this.methodId;
}
@Override
public InterfaceClass getInterfaceClass() {
return INTERFACE_CLASS;
}
@Override
public String getMethodName() {
return name();
}
}