gurux.dlms.objects.GXMacDirectTable Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gurux.dlms Show documentation
Show all versions of gurux.dlms Show documentation
gurux.dlms.java package is used to communicate with DLMS devices.
//
// --------------------------------------------------------------------------
// Gurux Ltd
//
//
//
// Filename: $HeadURL$
//
// Version: $Revision$,
// $Date$
// $Author$
//
// Copyright (c) Gurux Ltd
//
//---------------------------------------------------------------------------
//
// DESCRIPTION
//
// This file is a part of Gurux Device Framework.
//
// Gurux Device Framework is Open Source 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; version 2 of the License.
// Gurux Device Framework 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.
//
// More information of Gurux products: https://www.gurux.org
//
// This code is licensed under the GNU General Public License v2.
// Full text may be retrieved at http://www.gnu.org/licenses/gpl-2.0.txt
//---------------------------------------------------------------------------
package gurux.dlms.objects;
/**
* MAC direct table element.
*/
public class GXMacDirectTable {
/**
* SID of switch through which the source service node is connected.
*/
private short sourceSId;
/**
* NID allocated to the source service node.
*/
private short sourceLnId;
/**
* LCID allocated to this connection at the source.
*/
private short sourceLcId;
/**
* SID of the switch through which the destination service node is
* connected.
*/
private short destinationSId;
/**
* NID allocated to the destination service node.
*/
private short destinationLnId;
/**
* LCID allocated to this connection at the destination.
*/
private short destinationLcId;
/**
* Entry DID is the EUI-48 of the direct switch.
*/
private byte[] did;
/**
* @return SID of switch through which the source service node is connected.
*/
public final short getSourceSId() {
return sourceSId;
}
/**
* @param value
* SID of switch through which the source service node is
* connected.
*/
public final void setSourceSId(final short value) {
sourceSId = value;
}
/**
* @return NID allocated to the source service node.
*/
public final short getSourceLnId() {
return sourceLnId;
}
/**
* @param value
* NID allocated to the source service node.
*/
public final void setSourceLnId(final short value) {
sourceLnId = value;
}
/**
* @return LCID allocated to this connection at the source.
*/
public final short getSourceLcId() {
return sourceLcId;
}
/**
* @param value
* LCID allocated to this connection at the source.
*/
public final void setSourceLcId(final short value) {
sourceLcId = value;
}
/**
* @return SID of the switch through which the destination service node is
* connected.
*/
public final short getDestinationSId() {
return destinationSId;
}
/**
* @param value
* SID of the switch through which the destination service node
* is connected.
*/
public final void setDestinationSId(final short value) {
destinationSId = value;
}
/**
* @return NID allocated to the destination service node.
*/
public final short getDestinationLnId() {
return destinationLnId;
}
/**
* @param value
* NID allocated to the destination service node.
*/
public final void setDestinationLnId(final short value) {
destinationLnId = value;
}
/**
* @return LCID allocated to this connection at the destination.
*/
public final short getDestinationLcId() {
return destinationLcId;
}
/**
* @param value
* LCID allocated to this connection at the destination.
*/
public final void setDestinationLcId(final short value) {
destinationLcId = value;
}
/**
* @return Entry DID is the EUI-48 of the direct switch.
*/
public final byte[] getDid() {
return did;
}
/**
* @param value
* Entry DID is the EUI-48 of the direct switch.
*/
public final void setDid(final byte[] value) {
did = value;
}
}