Package kieker.model.system.model
Class AbstractMessage
java.lang.Object
kieker.model.system.model.AbstractMessage
- Direct Known Subclasses:
SynchronousCallMessage,SynchronousReplyMessage
public abstract class AbstractMessage
extends java.lang.Object
An abstract base for messages which can later be used and combined in a
MessageTrace.- Since:
- 0.95a
-
Constructor Summary
Constructors Constructor Description AbstractMessage(long timestamp, Execution sendingExecution, Execution receivingExecution)Creates a new instance of this class using the given parameters. -
Method Summary
Modifier and Type Method Description abstract booleanequals(java.lang.Object obj)ExecutiongetReceivingExecution()Delivers the object which received the message.ExecutiongetSendingExecution()Delivers the object which sent the message.longgetTimestamp()Delivers the timestamp at which the message was created.inthashCode()java.lang.StringtoString()
-
Constructor Details
-
AbstractMessage
Creates a new instance of this class using the given parameters.
-
-
Method Details
-
getReceivingExecution
Delivers the object which received the message.- Returns:
- The receiving object.
-
getSendingExecution
Delivers the object which sent the message.- Returns:
- The sending object.
-
getTimestamp
public final long getTimestamp()Delivers the timestamp at which the message was created.- Returns:
- The timestamp of the message.
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-
equals
public abstract boolean equals(java.lang.Object obj)- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()- Overrides:
hashCodein classjava.lang.Object
-