/protocols/ss7/map/map-api/src/main/java/org/mobicents/protocols/ss7/map/api/primitives/AlertingPattern.java

http://mobicents.googlecode.com/ · Java · 61 lines · 7 code · 6 blank · 48 comment · 0 complexity · 5529af3991658c32d0f42473ca7eab17 MD5 · raw file

  1. /*
  2. * JBoss, Home of Professional Open Source
  3. * Copyright 2011, Red Hat, Inc. and/or its affiliates, and individual
  4. * contributors as indicated by the @authors tag. All rights reserved.
  5. * See the copyright.txt in the distribution for a full listing
  6. * of individual contributors.
  7. *
  8. * This copyrighted material is made available to anyone wishing to use,
  9. * modify, copy, or redistribute it subject to the terms and conditions
  10. * of the GNU General Public License, v. 2.0.
  11. *
  12. * This program 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. * General Public License for more details.
  16. *
  17. * You should have received a copy of the GNU General Public License,
  18. * v. 2.0 along with this distribution; if not, write to the Free
  19. * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
  20. * MA 02110-1301, USA.
  21. */
  22. package org.mobicents.protocols.ss7.map.api.primitives;
  23. import java.io.Serializable;
  24. /**
  25. * AlertingPattern ::= OCTET STRING (SIZE (1) )
  26. * -- This type is used to represent Alerting Pattern
  27. * -- bits 8765 : 0000 (unused)
  28. * -- bits 43 : type of Pattern
  29. * -- 00 level
  30. * -- 01 category
  31. * -- 10 category
  32. * -- all other values are reserved.
  33. * -- bits 21 : type of alerting
  34. * alertingLevel-0 AlertingPattern ::= '00000000'B
  35. * alertingLevel-1 AlertingPattern ::= '00000001'B
  36. * alertingLevel-2 AlertingPattern ::= '00000010'B
  37. * -- all other values of Alerting level are reserved
  38. * -- Alerting Levels are defined in GSM 02.07
  39. * alertingCategory-1 AlertingPattern ::= '00000100'B
  40. * alertingCategory-2 AlertingPattern ::= '00000101'B
  41. * alertingCategory-3 AlertingPattern ::= '00000110'B
  42. * alertingCategory-4 AlertingPattern ::= '00000111'B
  43. * alertingCategory-5 AlertingPattern ::= '00001000'B
  44. * -- all other values of Alerting Category are reserved
  45. * -- Alerting categories are defined in GSM 02.07
  46. *
  47. * @author amit bhayani
  48. * @author sergey vetyutnev
  49. *
  50. */
  51. public interface AlertingPattern extends Serializable {
  52. public byte[] getData();
  53. public AlertingLevel getAlertingLevel();
  54. public AlertingCategory getAlertingCategory();
  55. }