|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.scribble.protocol.model.ModelObject org.scribble.protocol.model.Activity org.scribble.protocol.model.DirectedChoice
public class DirectedChoice
This class represents the Choice construct between two or more paths.
Constructor Summary | |
---|---|
DirectedChoice()
This is the default constructor. |
Method Summary | |
---|---|
boolean |
equals(Object o)
|
Role |
getFromRole()
This method returns the from role. |
List<OnMessage> |
getOnMessages()
This method returns the list of on-message blocks representing the different paths of the directed choice. |
List<Role> |
getToRoles()
This method returns the optional (one or many) 'to' roles. |
int |
hashCode()
|
void |
setFromRole(Role part)
This method sets the from role. |
String |
toString()
|
void |
visit(Visitor visitor)
This method visits the model object using the supplied visitor. |
Methods inherited from class org.scribble.protocol.model.Activity |
---|
getEnclosingProtocol |
Methods inherited from class org.scribble.protocol.model.ModelObject |
---|
derivedFrom, getAnnotations, getModel, getParent, getProperties, setParent |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DirectedChoice()
Method Detail |
---|
public Role getFromRole()
public void setFromRole(Role part)
part
- The from rolepublic List<Role> getToRoles()
public List<OnMessage> getOnMessages()
public void visit(Visitor visitor)
visit
in class ModelObject
visitor
- The visitorpublic boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |