eaLib API Docs
Last Modified : January 7 2002

mss.ea.al
Class AbstractMessage

java.lang.Object
  |
  +--mss.ea.al.AbstractMessage
All Implemented Interfaces:
Message
Direct Known Subclasses:
CollectionMessage, Notification, ObjectMessage

public abstract class AbstractMessage
extends java.lang.Object
implements Message

Abstract base class of a message.

Since:
0.2
Version:
$Revision: 1.3 $ $Date: 2001/11/13 09:55:23 $
Author:
Andreas Rummler

Field Summary
protected  boolean deliverState
          Deliver state of this message.
protected  long ID
          ID of this message.
protected  java.lang.Object recipient
          Recipient of this message.
protected  java.lang.Object sender
          Sender of this message.
protected  MessageType type
          Type of this message.
 
Constructor Summary
AbstractMessage(java.lang.Object sender, java.lang.Object recipient)
          Constructor.
AbstractMessage(java.lang.Object sender, java.lang.Object recipient, MessageType type)
          Constructor with type.
 
Method Summary
 boolean getDeliverState()
          Gets the deliver state of this message.
 long getID()
          Gets the ID of this message.
 java.lang.Object getRecipient()
          Gets the recipient of this message.
 java.lang.Object getSender()
          Gets the sender of this message.
 MessageType getType()
          Gets the type of this message.
 void setDeliverState(boolean state)
          Sets a new deliver state for this message.
 java.lang.String toString()
          Returns a string representation of this message.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface mss.ea.al.Message
getCollection, getObject, transportsCollection, transportsObject
 

Field Detail

ID

protected long ID
ID of this message.

type

protected MessageType type
Type of this message.

sender

protected java.lang.Object sender
Sender of this message.

recipient

protected java.lang.Object recipient
Recipient of this message.

deliverState

protected boolean deliverState
Deliver state of this message.
Constructor Detail

AbstractMessage

public AbstractMessage(java.lang.Object sender,
                       java.lang.Object recipient)
Constructor.
Parameters:
sender - sender of this message
recipient - recipient of this message

AbstractMessage

public AbstractMessage(java.lang.Object sender,
                       java.lang.Object recipient,
                       MessageType type)
Constructor with type.
Parameters:
sender - sender of this message
recipient - recipient of this message
type - type of this message
Method Detail

getID

public long getID()
Gets the ID of this message.
Specified by:
getID in interface Message
Returns:
ID of this message

getType

public MessageType getType()
Gets the type of this message.
Specified by:
getType in interface Message
Returns:
type of this message

getSender

public java.lang.Object getSender()
Gets the sender of this message.
Specified by:
getSender in interface Message
Returns:
sender of this message

getRecipient

public java.lang.Object getRecipient()
Gets the recipient of this message.
Specified by:
getRecipient in interface Message
Returns:
recipient of this message

getDeliverState

public boolean getDeliverState()
Gets the deliver state of this message.
Specified by:
getDeliverState in interface Message
Returns:
deliver state of this message

setDeliverState

public void setDeliverState(boolean state)
Sets a new deliver state for this message.
Specified by:
setDeliverState in interface Message
Parameters:
state - new deliver state

toString

public java.lang.String toString()
Returns a string representation of this message.
Overrides:
toString in class java.lang.Object
Returns:
string representation

eaLib API Docs
Last Modified : January 7 2002

Copyright © 2000-2001 Technical University of Ilmenau, Department ESS