public class GChoice extends GMultiPathActivity
END_COLUMN, END_LINE, END_POSITION, RESOURCE_URL, START_COLUMN, START_LINE, START_POSITION
Constructor and Description |
---|
GChoice()
This is the default constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
List<GBlock> |
getPaths()
This method returns the list of mutually exclusive
activity blocks that comprise the multi-path construct.
|
Role |
getRole()
This method returns the role.
|
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 |
setRole(Role role)
This method sets the role.
|
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, setParent
public boolean isRoleInvolved(RoleDecl role)
isRoleInvolved
in class GActivity
public void identifyInvolvedRoles(Set<Role> roles)
identifyInvolvedRoles
in class GActivity
roles
- The set of involved rolespublic Role getRole()
public void setRole(Role role)
role
- The rolepublic List<GBlock> getPaths()
getPaths
in class GMultiPathActivity
public void visit(GVisitor visitor)
public void toText(StringBuffer buf, int level)
toText
in class ModelObject
buf
- The text bufferlevel
- The indentation level, if relevantCopyright © 2014. All Rights Reserved.