public class GMessageTransfer extends GActivity
END_COLUMN, END_LINE, END_POSITION, RESOURCE_URL, START_COLUMN, START_LINE, START_POSITION| Constructor and Description |
|---|
GMessageTransfer()
The default constructor.
|
GMessageTransfer(GMessageTransfer i)
The copy constructor.
|
GMessageTransfer(Message sig,
Role fromRole,
List<Role> toRoles)
This method initializes the 'from' and 'to' roles, and
message signature.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
Role |
getFromRole()
This method returns the 'from' role.
|
Message |
getMessage()
This method returns the message.
|
List<Role> |
getToRoles()
This method returns the 'to' roles.
|
int |
hashCode() |
void |
identifyInvolvedRoles(Set<Role> roles)
This method builds up the set of roles involved in the global
activity.
|
boolean |
isRoleInvolved(RoleDecl role)
This method determines whether the supplied role is 'involved'
in this global activity.
|
void |
setFromRole(Role part)
This method sets the 'from' role.
|
void |
setMessage(Message message)
This method sets the message.
|
void |
setToRoles(List<Role> part)
This method sets the 'to' roles.
|
String |
toString() |
void |
toText(StringBuffer buf,
int level)
This method generates a text representation of the protocol component.
|
void |
visit(GVisitor visitor)
This method visits the model object using the supplied
visitor.
|
derivedFrom, getModule, getParent, getParent, getProperties, indent, setParentpublic GMessageTransfer()
public GMessageTransfer(GMessageTransfer i)
i - The interaction to copypublic boolean isRoleInvolved(RoleDecl role)
isRoleInvolved in class GActivitypublic void identifyInvolvedRoles(Set<Role> roles)
identifyInvolvedRoles in class GActivityroles - The set of involved rolespublic Message getMessage()
public void setMessage(Message message)
message - The messagepublic Role getFromRole()
public void setFromRole(Role part)
part - The 'from' rolepublic List<Role> getToRoles()
public void setToRoles(List<Role> part)
part - The 'to' rolespublic void visit(GVisitor visitor)
public void toText(StringBuffer buf, int level)
toText in class ModelObjectbuf - The text bufferlevel - The indentation level, if relevantCopyright © 2014. All Rights Reserved.