net.sf.sdedit.message
Class BroadcastMessage
java.lang.Object
net.sf.sdedit.message.Message
net.sf.sdedit.message.ForwardMessage
net.sf.sdedit.message.BroadcastMessage
- All Implemented Interfaces:
- Constants
public class BroadcastMessage
- extends ForwardMessage
| Fields inherited from interface net.sf.sdedit.Constants |
ACTIVE_LIFELINE_COLOR, ANTI_ALIAS, dashed, DEFAULT_CODE_FONT, DEFAULT_CURSOR, DEFAULT_ENCODING_SCHEME, dotted, emptyStroke, GLOBAL_CONF_FILE, HAND_CURSOR, MOVE_CURSOR, SAVE_AS_FILE_PROPERTY, SAVE_AS_TYPE_PROPERTY, solid, TEST_FREEHEP_CLASSNAME, thick, thick_dashed, THREAD_COLORS |
|
Method Summary |
Answer |
getAnswerMessage()
Returns the answer to this forward message, if there is one, otherwise
null. |
boolean |
isSynchronous()
Returns true if at least one of the caller or callee is an actor. |
void |
setOtherCallees(Lifeline[] otherCallees)
This method must only be called for the last of messages belonging to a
broadcast. |
void |
updateView()
Creates some space on the diagram, so that the message arrow and its
label can be drawn, then draws them and creates some more space. |
| Methods inherited from class net.sf.sdedit.message.Message |
extendLifelines, getArrow, getCallee, getCaller, getConfiguration, getData, getDiagram, getThread, setArrow, toString, v |
FIRST
public static final int FIRST
- See Also:
- Constant Field Values
OTHER
public static final int OTHER
- See Also:
- Constant Field Values
LAST
public static final int LAST
- See Also:
- Constant Field Values
BroadcastMessage
public BroadcastMessage(Lifeline caller,
Lifeline callee,
Diagram diagram,
MessageData data)
getAnswerMessage
public Answer getAnswerMessage()
- Description copied from class:
ForwardMessage
- Returns the answer to this forward message, if there is one, otherwise
null. If this is a forward message to an actor, there is no
answer. Otherwise an AnswerMessage instance with the same
MessageData attached is returned, so the answer found in this
data is an appropriate label of an arrow representing the answer.
- Overrides:
getAnswerMessage in class ForwardMessage
- Returns:
- the answer to this forward message, if there is one, otherwise
null
setOtherCallees
public void setOtherCallees(Lifeline[] otherCallees)
- This method must only be called for the last of messages belonging to a
broadcast.
- Parameters:
otherCallees - the other receivers (beside this.getCallee() of the
broadcast)
updateView
public void updateView()
- Description copied from class:
Message
- Creates some space on the diagram, so that the message arrow and its
label can be drawn, then draws them and creates some more space. Changes
the state of the diagram so that the effects of the message are
reflected. When creating space, the lifelines that do not participate in
the message must be drawn according to their current state (via
Message.extendLifelines(int).
- Overrides:
updateView in class ForwardMessage
isSynchronous
public boolean isSynchronous()
- Description copied from class:
Message
- Returns true if at least one of the caller or callee is an actor.
- Overrides:
isSynchronous in class Message
- Returns:
- true if at least one of the caller or callee is an actor
Copyright © 2011. All Rights Reserved.