org.scribble.protocol.model
Class Choice

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

public class Choice
extends Activity

This class represents the Choice construct between two or more paths.


Constructor Summary
Choice()
          This is the default constructor.
 
Method Summary
 boolean equals(Object o)
           
 List<Block> 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 setRole(Role part)
          This method sets the 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

Choice

public Choice()
This is the default constructor.

Method Detail

getRole

public Role getRole()
This method returns the role.

Returns:
The role

setRole

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

Parameters:
part - The role

getPaths

public List<Block> getPaths()
This method returns the list of mutually exclusive activity blocks that comprise the multi-path construct.

Returns:
The list of choice paths

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.