org.pasoa.common.structure
Class InteractionKey

java.lang.Object
  extended by org.pasoa.common.structure.InteractionKey
All Implemented Interfaces:
Serializable

public class InteractionKey
extends Object
implements Serializable

An interaction key uniquely identifies an interaction and therefore an interaction record. An interaction is the exchange of a message from a sending actor (the client) to a receiving actor (the service).

Author:
pgroth
See Also:
Serialized Form

Constructor Summary
InteractionKey(Element messageSource, Element messageSink, String interactionID)
          Construct an interaction key.
 
Method Summary
 boolean equals(Object other)
           
 String getInteractionID()
           
 Element getMessageSink()
           
 Element getMessageSource()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InteractionKey

public InteractionKey(Element messageSource,
                      Element messageSink,
                      String interactionID)
Construct an interaction key.

Parameters:
messageSource - identifies the source of the interaction, i.e. where the message is sent from
messageSink - identifes the sink of the interaction, i.e. where the message is received at
interactionID - an id that distinguishes this interaction from all other interactions between the given messageSource and messsageSink
Method Detail

equals

public boolean equals(Object other)
Overrides:
equals in class Object

getInteractionID

public String getInteractionID()

getMessageSink

public Element getMessageSink()

getMessageSource

public Element getMessageSource()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object