public class MessageSequencer
extends java.lang.Object
messages
of an Interaction
.
The sequence numbers are computed once on instantiation and won't be updated if the model is modified.
The sequence number is an integer matching the index in the sequence. The sequence order is determined by:
Constructor and Description |
---|
MessageSequencer(Interaction interaction) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getSequence(Message m)
Get the sequence number for a message
|
java.lang.String |
toString() |
void |
updateModel()
Update the
Message.getSequence() for each message. |
public MessageSequencer(Interaction interaction)
public java.lang.String getSequence(Message m) throws java.lang.IllegalArgumentException
m
- a messagejava.lang.IllegalArgumentException
- if the message is not part of the interaction.public void updateModel()
Message.getSequence()
for each message.public java.lang.String toString()
toString
in class java.lang.Object