lij.runtime
Class LetterPostData

java.lang.Object
  extended by lij.runtime.LetterPostData

public class LetterPostData
extends java.lang.Object

Encapsulates the post data of a letter described by an LCC message, i.e. message type, as well as sender and recepient type and ID.

Author:
Nikolaos Chatzinikolaou

Field Summary
private  Term messageType
           
private  java.io.Serializable recepientID
           
private  Term recepientType
           
private  java.io.Serializable senderID
           
private  Term senderType
           
 
Constructor Summary
LetterPostData(Term _messageType, Term _senderType, java.io.Serializable _senderID, Term _recepientType, java.io.Serializable _recepientID)
          Constructor.
 
Method Summary
 Term getMessageType()
          Accessor.
 java.io.Serializable getRecepientID()
          Accessor.
 Term getRecepientType()
          Accessor.
 java.io.Serializable getSenderID()
          Accessor.
 Term getSenderType()
          Accessor.
 boolean matches(LetterPostData other)
          Compares this LetterPostData object with another for a match.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

messageType

private Term messageType

senderType

private Term senderType

senderID

private java.io.Serializable senderID

recepientType

private Term recepientType

recepientID

private java.io.Serializable recepientID
Constructor Detail

LetterPostData

public LetterPostData(Term _messageType,
                      Term _senderType,
                      java.io.Serializable _senderID,
                      Term _recepientType,
                      java.io.Serializable _recepientID)
Constructor.

Parameters:
_messageType - The type Term of the message.
_senderType - The type Term of the sender of the message.
_senderID - The ID of the sender of the message.
_recepientType - The type Term of the recepient of the message.
_recepientID - The ID of the recepient of the message.
Method Detail

getMessageType

public Term getMessageType()
Accessor.

Returns:
The type Term of the message.

getSenderType

public Term getSenderType()
Accessor.

Returns:
The type Term of the sender of the message.

getSenderID

public java.io.Serializable getSenderID()
Accessor.

Returns:
The ID of the sender of the message.

getRecepientType

public Term getRecepientType()
Accessor.

Returns:
The type Term of the recepient of the message.

getRecepientID

public java.io.Serializable getRecepientID()
Accessor.

Returns:
The ID of the recepient of the message.

matches

public boolean matches(LetterPostData other)
Compares this LetterPostData object with another for a match.

Parameters:
other - The LetterPostData object to compare against.
Returns:
True, if this LetterPostData object matches the other LetterPostData object; false otherwise.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object