org.jdiameter.client.api.fsm
Class FsmEvent

java.lang.Object
  extended by org.jdiameter.client.api.fsm.FsmEvent
All Implemented Interfaces:
java.lang.Comparable, org.jdiameter.api.app.StateEvent

public class FsmEvent
extends java.lang.Object
implements org.jdiameter.api.app.StateEvent

This class extends behaviour of FSM StateEvent


Constructor Summary
FsmEvent(EventTypes type)
          Create instance of class
FsmEvent(EventTypes type, IMessage value)
          Create instance of class with predefined parameters
FsmEvent(EventTypes type, IMessage value, java.lang.String key)
          Create instance of class with predefined parameters
FsmEvent(EventTypes type, java.lang.String key)
          Create instance of class with predefined parameters
 
Method Summary
 int compareTo(java.lang.Object o)
           
<E> E
encodeType(java.lang.Class<E> eClass)
           
 java.lang.Object getData()
           
 java.lang.String getKey()
          Return key value
 IMessage getMessage()
          Return attached message
 java.lang.Enum getType()
           
 void setData(java.lang.Object o)
           
 java.lang.String toString()
          Return string representation of instance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FsmEvent

public FsmEvent(EventTypes type)
Create instance of class

Parameters:
type - type of event

FsmEvent

public FsmEvent(EventTypes type,
                java.lang.String key)
Create instance of class with predefined parameters

Parameters:
type - type of event
key - event key

FsmEvent

public FsmEvent(EventTypes type,
                IMessage value)
Create instance of class with predefined parameters

Parameters:
type - type of event
value - attached message

FsmEvent

public FsmEvent(EventTypes type,
                IMessage value,
                java.lang.String key)
Create instance of class with predefined parameters

Parameters:
type - type of event
value - attached message
key - event key
Method Detail

getKey

public java.lang.String getKey()
Return key value

Returns:
key value

getMessage

public IMessage getMessage()
Return attached message

Returns:
diameter message

encodeType

public <E> E encodeType(java.lang.Class<E> eClass)
Specified by:
encodeType in interface org.jdiameter.api.app.StateEvent

getType

public java.lang.Enum getType()
Specified by:
getType in interface org.jdiameter.api.app.StateEvent

setData

public void setData(java.lang.Object o)
Specified by:
setData in interface org.jdiameter.api.app.StateEvent

getData

public java.lang.Object getData()
Specified by:
getData in interface org.jdiameter.api.app.StateEvent

compareTo

public int compareTo(java.lang.Object o)
Specified by:
compareTo in interface java.lang.Comparable

toString

public java.lang.String toString()
Return string representation of instance

Overrides:
toString in class java.lang.Object
Returns:
string representation of instance


Copyright © 2008. All Rights Reserved.