public class GBlock extends GActivity
END_COLUMN, END_LINE, END_POSITION, RESOURCE_URL, START_COLUMN, START_LINE, START_POSITION| Constructor and Description |
|---|
GBlock() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(GActivity act)
This method adds an activity to the block.
|
boolean |
equals(Object o) |
GActivity |
get(int index)
This method returns the activity at the specified
index.
|
List<GActivity> |
getContents()
This method returns the contents associated with
the block.
|
int |
hashCode() |
void |
identifyInvolvedRoles(Set<Role> roles)
This method builds up the set of roles involved in the global
activity.
|
int |
indexOf(GActivity act)
This method returns the index of the supplied activity.
|
boolean |
isRoleInvolved(RoleDecl role)
This method determines whether the supplied role is 'involved'
in this global activity.
|
boolean |
remove(GActivity act)
This method removes an activity from the block.
|
int |
size()
This method returns the number of activities
in the block.
|
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 boolean isRoleInvolved(RoleDecl role)
isRoleInvolved in class GActivitypublic void identifyInvolvedRoles(Set<Role> roles)
identifyInvolvedRoles in class GActivityroles - The set of involved rolespublic List<GActivity> getContents()
public boolean add(GActivity act)
act - The activitypublic boolean remove(GActivity act)
act - The activitypublic int size()
public GActivity get(int index) throws IndexOutOfBoundsException
index - The index The indexIndexOutOfBoundsException - Out of boundspublic int indexOf(GActivity act)
act - The activitypublic 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.