/* * TeleStax, Open Source Cloud Communications Copyright 2012. * and individual contributors * by the @authors tag. See the copyright.txt in the distribution for a * full listing of individual contributors. * * This is free software; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation; either version 2.1 of * the License, or (at your option) any later version. * * This software 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 * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this software; if not, write to the Free * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA * 02110-1301 USA, or see the FSF site: http://www.fsf.org. */ package org.mobicents.protocols.ss7.tcapAnsi.api.asn.comp; import org.mobicents.protocols.ss7.tcapAnsi.api.tc.component.InvokeClass; /** * @author baranowb * @author amit bhayani * Invoke{InvokeId: InvokeIdSet, OPERATION: Operations} ::= SEQUENCE { componentIDs [PRIVATE 15] IMPLICIT OCTET STRING SIZE(0..2) --The invoke ID precedes the correlation id. There may be no --identifier, only an invoke ID, or both invoke and correlation --IDs. (CONSTRAINED BY {--must be unambiguous --} ! RejectProblem : invoke-duplicateInvocation), (CONSTRAINED BY {--correlation ID must identify an outstanding operation --} ! RejectProblem : invoke-unrecognisedCorrelationId) OPTIONAL, operationCode OPERATION.&operationCode ((Operations) ! RejectProblem : invoke-unrecognisedOperation), parameter OPERATION.&ParameterType ((Operations)(@Opcode) ! RejectProblem : invoke-mistypedArgument) OPTIONAL } (CONSTRAINED BY {--must conform to the above definition --} ! RejectProblem : general-incorrectComponentPortion) (CONSTRAINED BY {--must have consistent encoding --} ! RejectProblem : general-badlyStructuredCompPortion) (CONSTRAINED BY {--must conform to ANSI T1.114.3 encoding rules --} ! RejectProblem : general-incorrectComponentCoding) * */ public interface Invoke extends Component { int _TAG_INVOKE_NOT_LAST = 13; int _TAG_INVOKE_LAST = 9; // local, relevant only for send InvokeClass getInvokeClass(); boolean isNotLast(); void setNotLast(boolean val); void setInvokeId(Long i); Long getInvokeId(); Invoke getCorrelationInvoke(); void setCorrelationInvoke(Invoke val); void setOperationCode(OperationCode i); OperationCode getOperationCode(); void setParameter(Parameter p); Parameter getParameter(); /** * @return the current invokeTimeout value */ long getTimeout(); /** * Setting the Invoke timeout in milliseconds Must be invoked before sendComponent() invoking * * @param invokeTimeout */ void setTimeout(long invokeTimeout); }