org.scribble.protocol.model
Class DirectedChoice

java.lang.Object
  extended by org.scribble.protocol.model.ModelObject
      extended by org.scribble.protocol.model.Activity
          extended by org.scribble.protocol.model.DirectedChoice

public class DirectedChoice
extends Activity

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

DirectedChoice

public DirectedChoice()
This is the default constructor.

Method Detail

getFromRole

public Role getFromRole()
This method returns the from role.

Returns:
The from role

setFromRole

public void setFromRole(Role part)
This method sets the from role.

Parameters:
part - The from role

getToRoles

public List<Role> getToRoles()
This method returns the optional (one or many) 'to' roles.

Returns:
The optional 'to' roles

getOnMessages

public List<OnMessage> getOnMessages()
This method returns the list of on-message blocks representing the different paths of the directed choice.

Returns:
The list of on-messages

visit

public void visit(Visitor visitor)
This method visits the model object using the supplied visitor.

Specified by:
visit in class ModelObject
Parameters:
visitor - The visitor

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2008-Present Scribble.org. All Rights Reserved.