PageRenderTime 37ms CodeModel.GetById 22ms RepoModel.GetById 0ms app.codeStats 0ms

/protocols/ss7/m3ua/api/src/main/java/org/mobicents/protocols/ss7/m3ua/parameter/ParameterFactory.java

http://mobicents.googlecode.com/
Java | 122 lines | 38 code | 29 blank | 55 comment | 0 complexity | e25a1a53e38c8cc9c5371f831dd568e2 MD5 | raw file
Possible License(s): LGPL-3.0, GPL-3.0, LGPL-2.1, GPL-2.0, CC-BY-SA-3.0, CC0-1.0, Apache-2.0, BSD-3-Clause
  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. package org.mobicents.protocols.ss7.m3ua.parameter;
  23. import org.mobicents.protocols.ss7.m3ua.parameter.CongestedIndication.CongestionLevel;
  24. import org.mobicents.protocols.ss7.mtp.Mtp3TransferPrimitive;
  25. /**
  26. * Constructs parameters.
  27. *
  28. * @author amit bhayani
  29. * @author kulikov
  30. */
  31. public interface ParameterFactory {
  32. /**
  33. * Constructs Protocol Data parameter.
  34. *
  35. * @param opc
  36. * the origination point code
  37. * @param dpc
  38. * the destination point code
  39. * @param si
  40. * the service indicator
  41. * @param ni
  42. * the network indicator
  43. * @param mp
  44. * the message priority indicator
  45. * @param sls
  46. * the signaling link selection
  47. * @param data
  48. * message payload
  49. * @return Protocol data parameter
  50. */
  51. public ProtocolData createProtocolData(int opc, int dpc, int si, int ni,
  52. int mp, int sls, byte[] data);
  53. /**
  54. * Constructs Protocol Data parameter.
  55. *
  56. * @param mp
  57. * message priority
  58. * @param msu
  59. * the message signaling unit
  60. * @return Protocol data parameter
  61. */
  62. public ProtocolData createProtocolData(Mtp3TransferPrimitive mtp3TransferPrimitive);
  63. public ProtocolData createProtocolData(byte[] payloadData);
  64. public NetworkAppearance createNetworkAppearance(long netApp);
  65. public RoutingContext createRoutingContext(long[] routCntx);
  66. public CorrelationId createCorrelationId(long corrId);
  67. public AffectedPointCode createAffectedPointCode(int[] pc, short[] mask);
  68. public DestinationPointCode createDestinationPointCode(int pc, short mask);
  69. public InfoString createInfoString(String string);
  70. public ConcernedDPC createConcernedDPC(int pointCode);
  71. public CongestedIndication createCongestedIndication(CongestionLevel level);
  72. public UserCause createUserCause(int user, int cause);
  73. public ASPIdentifier createASPIdentifier(long aspId);
  74. public LocalRKIdentifier createLocalRKIdentifier(long id);
  75. public OPCList createOPCList(int[] pc, short[] mask);
  76. public ServiceIndicators createServiceIndicators(short[] inds);
  77. public TrafficModeType createTrafficModeType(int mode);
  78. public RegistrationStatus createRegistrationStatus(int status);
  79. public DiagnosticInfo createDiagnosticInfo(String info);
  80. public RoutingKey createRoutingKey(LocalRKIdentifier localRkId,
  81. RoutingContext rc, TrafficModeType trafMdTy,
  82. NetworkAppearance netApp, DestinationPointCode[] dpc,
  83. ServiceIndicators[] servInds, OPCList[] opcList);
  84. public RegistrationResult createRegistrationResult(
  85. LocalRKIdentifier localRkId, RegistrationStatus status,
  86. RoutingContext rc);
  87. public DeregistrationStatus createDeregistrationStatus(int status);
  88. public DeregistrationResult createDeregistrationResult(RoutingContext rc,
  89. DeregistrationStatus status);
  90. public ErrorCode createErrorCode(int code);
  91. public Status createStatus(int type, int info);
  92. public HeartbeatData createHeartbeatData(byte[] data);
  93. }