jain.protocol.ss7.tcap.component
Class InvokeIndEvent

java.lang.Object
  |
  +--java.util.EventObject
        |
        +--jain.protocol.ss7.tcap.ComponentIndEvent
              |
              +--jain.protocol.ss7.tcap.component.InvokeIndEvent

public final class InvokeIndEvent
extends ComponentIndEvent

An event representing a TCAP Invoke indication component primitive. The mandatory parameters of this primitive are supplied to the constructor. Optional parameters may then be set using the set methods.

Version:
1.0
Author:
Colm Hayden & Phelim O'Doherty
See Also:
Serialized Form

Fields inherited from class jain.protocol.ss7.tcap.ComponentIndEvent
dialogueId, dialogueIdPresent, invokeId, invokeIdPresent, lastComponent, lastComponentPresent
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
InvokeIndEvent(java.lang.Object source, Operation operation, boolean lastComponent)
          Constructs a new Invoke indication Event, with only the Event Source and the JAIN TCAP Mandatory parameters being supplied to the constructor.
 
Method Summary
 void clearAllParameters()
          Clears all previously set parameters .
 int getLinkId()
          Gets the link Id parameter of the INVOKE indication component.
 Operation getOperation()
          Gets the Operation parameter of the INVOKE indication Component.
 Parameters getParameters()
          Gets the Parameters' parameter of the INVOKE indication Component.
 int getPrimitiveType()
          This method returns the type of this primitive.
 boolean isDialogueIdPresent()
          Indicates if the Dialogue Id is present in this Event.
 boolean isLastInvokeEvent()
          Indicates if this is the last Invoke Event
 boolean isLinkIdPresent()
          Indicates if the link Id parameter is present in this Event.
 boolean isParametersPresent()
          Indicates if the 'Parameters' field is present in this Event.
 void setLastInvokeEvent(boolean lastInvokeEvent)
          Sets the lastInvoke flag of this Invoke Event
 void setLinkId(int value)
          Sets the link Id parameter of the INVOKE indication component.
 void setOperation(Operation op)
          Sets the Operation parameter of the INVOKE indication Component
 void setParameters(Parameters params)
          Sets the Parameters' parameter of the INVOKE indication Component.
 java.lang.String toString()
          Returns a string representation of an instance of this class.
 
Methods inherited from class jain.protocol.ss7.tcap.ComponentIndEvent
getDialogueId, getInvokeId, isInvokeIdPresent, isLastComponent, setDialogueId, setInvokeId, setLastComponent, setSource
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InvokeIndEvent

public InvokeIndEvent(java.lang.Object source,
                      Operation operation,
                      boolean lastComponent)
Constructs a new Invoke indication Event, with only the Event Source and the JAIN TCAP Mandatory parameters being supplied to the constructor.
Method Detail

isDialogueIdPresent

public boolean isDialogueIdPresent()
Indicates if the Dialogue Id is present in this Event.
Returns:
true if Dialogue Id has been set.

isLastInvokeEvent

public boolean isLastInvokeEvent()
Indicates if this is the last Invoke Event
Returns:
true if this is the last Invoke Event, false otherwise.

setLastInvokeEvent

public void setLastInvokeEvent(boolean lastInvokeEvent)
Sets the lastInvoke flag of this Invoke Event

isLinkIdPresent

public boolean isLinkIdPresent()
Indicates if the link Id parameter is present in this Event.
Returns:
true if link Id has been set.

getLinkId

public int getLinkId()
              throws ParameterNotSetException
Gets the link Id parameter of the INVOKE indication component. The link Id parameter links an operation invocation to a previous operation invocation by the remote TCAP application.
Returns:
the link Id of the INVOKE indication
Throws:
ParameterNotSetException - this exception is thrown if this parameter has not yet been set

setLinkId

public void setLinkId(int value)
Sets the link Id parameter of the INVOKE indication component.
Parameters:
value - the link Id of the INVOKE indication

getOperation

public Operation getOperation()
                       throws ParameterNotSetException
Gets the Operation parameter of the INVOKE indication Component. Operation identifies the action to be executed by the remote application.
Returns:
the Operation of the INVOKE indication Component
Throws:
ParameterNotSetException - this exception is thrown if this Mandatory parameter has not yet been set

setOperation

public void setOperation(Operation op)
Sets the Operation parameter of the INVOKE indication Component
Parameters:
op - the Operation of the INVOKE indication Component

isParametersPresent

public boolean isParametersPresent()
Indicates if the 'Parameters' field is present in this Event.
Returns:
true if 'Parameters' has been set.

getParameters

public Parameters getParameters()
                         throws ParameterNotSetException
Gets the Parameters' parameter of the INVOKE indication Component. Parameters contains any parameters that accompany an operation or that are provided in reply to an operation.
Returns:
the Parameters of the INVOKE indication Component
Throws:
ParameterNotSetException - this exception is thrown if this parameter has not yet been set

setParameters

public void setParameters(Parameters params)
Sets the Parameters' parameter of the INVOKE indication Component.
Parameters:
params - the Parameters of the INVOKE indication Component.

getPrimitiveType

public int getPrimitiveType()
This method returns the type of this primitive.
Overrides:
getPrimitiveType in class ComponentIndEvent

clearAllParameters

public void clearAllParameters()
Clears all previously set parameters .

toString

public java.lang.String toString()
Returns a string representation of an instance of this class.
Overrides:
toString in class java.util.EventObject


01 September 99
If you have any comments or queries, please mail them to JainTcap@Sun.Com

Copyright - 1999 Sun Microsystems