/*
* 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;
import org.mobicents.protocols.ss7.tcapAnsi.api.asn.comp.ErrorCode;
import org.mobicents.protocols.ss7.tcapAnsi.api.asn.comp.Invoke;
import org.mobicents.protocols.ss7.tcapAnsi.api.asn.comp.OperationCode;
import org.mobicents.protocols.ss7.tcapAnsi.api.asn.comp.Parameter;
import org.mobicents.protocols.ss7.tcapAnsi.api.asn.comp.Reject;
import org.mobicents.protocols.ss7.tcapAnsi.api.asn.comp.ReturnError;
import org.mobicents.protocols.ss7.tcapAnsi.api.asn.comp.ReturnResultNotLast;
import org.mobicents.protocols.ss7.tcapAnsi.api.asn.comp.ReturnResultLast;
import org.mobicents.protocols.ss7.tcapAnsi.api.tc.component.InvokeClass;
/**
*
* @author amit bhayani
* @author baranowb
*/
public interface ComponentPrimitiveFactory {
/**
* Create a new Invoke. Class of this Invoke will be 1
*
* @return return new instance of ({@link Invoke}
*/
Invoke createTCInvokeRequestNotLast();
Invoke createTCInvokeRequestLast();
/**
* <p>
* Create a new {@link Invoke}. Set the {@link InvokeClass} as per bellow consideration
* </p>
* <ul>
* <li>Class 1 – Both success and failure are reported.</li>
* <li>Class 2 – Only failure is reported.</li>
* <li>Class 3 – Only success is reported.</li>
* <li>Class 4 – Neither success, nor failure is reported.</li>
* </ul>
*
* @param invokeClass The Class of Operation
* @return new instance of ({@link Invoke}
*/
Invoke createTCInvokeRequestNotLast(InvokeClass invokeClass);
Invoke createTCInvokeRequestLast(InvokeClass invokeClass);
Reject createTCRejectRequest();
ReturnResultLast createTCResultLastRequest();
ReturnResultNotLast createTCResultNotLastRequest();
ReturnError createTCReturnErrorRequest();
OperationCode createOperationCode();
ErrorCode createErrorCode();
Parameter createParameter();
Parameter createParameter(int tag, int tagClass, boolean isPrimitive);
}