|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.scribble.protocol.model.ModelObject
org.scribble.protocol.model.Protocol
public class Protocol

This class represents the protocol notation.
| Constructor Summary | |
|---|---|
Protocol()
The default constructor. |
|
| Method Summary | |
|---|---|
Block |
getBlock()
This method returns the block of activities associated with the definition. |
Protocol |
getEnclosingProtocol()
This method returns the protocol in which this activity is contained. |
Role |
getLocatedRole()
This method returns the located role. |
ProtocolModel |
getModel()
This method returns the model in which this definition is contained. |
String |
getName()
This method returns the name. |
Protocol |
getNestedProtocol(String name)
This method returns the nested-protocol associated with the supplied name. |
List<Protocol> |
getNestedProtocols()
This method returns the list of nested protocols. |
ParameterDefinition |
getParameterDefinition(String name)
This method returns the parameter definition associated with the supplied name. |
List<ParameterDefinition> |
getParameterDefinitions()
This method returns the parameters associated with the protocol. |
List<Role> |
getRoles()
This method returns the list of roles defined within the protocol definition. |
Protocol |
getTopLevelProtocol()
This method returns the top level protocol. |
void |
setBlock(Block block)
This method sets the block of activities associated with the definition. |
void |
setLocatedRole(Role role)
This method sets the located role. |
void |
setName(String name)
This method sets the name. |
void |
visit(Visitor visitor)
This method visits the model object using the supplied visitor. |
| Methods inherited from class org.scribble.protocol.model.ModelObject |
|---|
derivedFrom, getAnnotations, getParent, getProperties, setParent |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Protocol()
| Method Detail |
|---|
public String getName()
public void setName(String name)
name - The namepublic Role getLocatedRole()
public void setLocatedRole(Role role)
role - The located rolepublic List<ParameterDefinition> getParameterDefinitions()
public ParameterDefinition getParameterDefinition(String name)
name - The name
public Block getBlock()
public void setBlock(Block block)
block - The block of activitiespublic List<Protocol> getNestedProtocols()
public ProtocolModel getModel()
getModel in class ModelObjectpublic Protocol getEnclosingProtocol()
public Protocol getTopLevelProtocol()
public Protocol getNestedProtocol(String name)
name - The name
public List<Role> getRoles()
public void visit(Visitor visitor)
visit in class ModelObjectvisitor - The visitor
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||