|
|||||||||
| 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.Activity
org.scribble.protocol.model.Interaction
public class Interaction

This class represents an interaction: the communication of a message from one role to another, or several others.
| Constructor Summary | |
|---|---|
Interaction()
The default constructor. |
|
Interaction(Interaction i)
The copy constructor. |
|
Interaction(Role fromRole,
Collection<Role> toRoles,
MessageSignature sig)
This method initializes the 'from' and 'to' roles, and message signature. |
|
Interaction(Role fromRole,
MessageSignature sig)
This constructor initializes the 'from' role and message signature. |
|
Interaction(Role fromRole,
Role toRole,
MessageSignature sig)
This method initializes the 'from' and 'to' roles, and message signature. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object o)
|
Role |
getFromRole()
This method returns the optional 'from' role. |
MessageSignature |
getMessageSignature()
This method returns the message signature. |
List<Role> |
getToRoles()
This method returns the optional (one or many) 'to' roles. |
int |
hashCode()
|
void |
setFromRole(Role part)
This method sets the optional 'from' role. |
void |
setMessageSignature(MessageSignature signature)
This method sets the message signature. |
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 Interaction()
public Interaction(Interaction i)
i - The interaction to copy
public Interaction(Role fromRole,
MessageSignature sig)
fromRole - The 'from' rolesig - The message signature
public Interaction(Role fromRole,
Role toRole,
MessageSignature sig)
fromRole - The 'from' roletoRole - The 'to' rolesig - The message signature
public Interaction(Role fromRole,
Collection<Role> toRoles,
MessageSignature sig)
fromRole - The 'from' roletoRoles - The 'to' rolessig - The message signature| Method Detail |
|---|
public MessageSignature getMessageSignature()
public void setMessageSignature(MessageSignature signature)
signature - The message signaturepublic Role getFromRole()
public void setFromRole(Role part)
part - The optional 'from' rolepublic List<Role> getToRoles()
public String toString()
toString in class Objectpublic void visit(Visitor visitor)
visit in class ModelObjectvisitor - The visitorpublic boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||