/protocols/ss7/map/map-api/src/main/java/org/mobicents/protocols/ss7/map/api/primitives/CellGlobalIdOrServiceAreaIdFixedLength.java
Java | 68 lines | 10 code | 10 blank | 48 comment | 0 complexity | 788760684391552405f351e752634301 MD5 | raw file
1/* 2 * JBoss, Home of Professional Open Source 3 * Copyright 2011, Red Hat, Inc. and individual contributors 4 * by the @authors tag. See the copyright.txt in the distribution for a 5 * full listing of individual contributors. 6 * 7 * This is free software; you can redistribute it and/or modify it 8 * under the terms of the GNU Lesser General Public License as 9 * published by the Free Software Foundation; either version 2.1 of 10 * the License, or (at your option) any later version. 11 * 12 * This software is distributed in the hope that it will be useful, 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 * Lesser General Public License for more details. 16 * 17 * You should have received a copy of the GNU Lesser General Public 18 * License along with this software; if not, write to the Free 19 * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 20 * 02110-1301 USA, or see the FSF site: http://www.fsf.org. 21 */ 22 23package org.mobicents.protocols.ss7.map.api.primitives; 24 25import java.io.Serializable; 26 27import org.mobicents.protocols.ss7.map.api.MAPException; 28 29/** 30 * 31CellGlobalIdOrServiceAreaIdFixedLength ::= OCTET STRING (SIZE (7)) 32 -- Refers to Cell Global Identification or Service Are Identification 33 -- defined in 3GPP TS 23.003. 34 -- The internal structure is defined as follows: 35 -- octet 1 bits 4321 Mobile Country Code 1st digit 36 -- bits 8765 Mobile Country Code 2nd digit 37 -- octet 2 bits 4321 Mobile Country Code 3rd digit 38 -- bits 8765 Mobile Network Code 3rd digit 39 -- or filler (1111) for 2 digit MNCs 40 -- octet 3 bits 4321 Mobile Network Code 1st digit 41 -- bits 8765 Mobile Network Code 2nd digit 42 -- octets 4 and 5 Location Area Code according to 3GPP TS 24.008 43 -- octets 6 and 7 Cell Identity (CI) value or 44 -- Service Area Code (SAC) value 45 -- according to 3GPP TS 23.003 46 47 * 48 * @author sergey vetyutnev 49 * 50 */ 51public interface CellGlobalIdOrServiceAreaIdFixedLength extends Serializable { 52 53 public byte[] getData(); 54 55 public int getMCC() throws MAPException; 56 57 public int getMNC() throws MAPException; 58 59 public int getLac() throws MAPException; 60 61 /** 62 * Cell Identity (CI) value or Service Area Code (SAC) value 63 * 64 * @return 65 */ 66 public int getCellId() throws MAPException; 67 68}