|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsdt.mediator.Bubble
public class Bubble
A bubble represents a group of parties in conversation
| Method Summary | |
|---|---|
PartyInBubble |
addParty(PartyURI p)
adds a party in Read-Write role to this bubble |
PartyInBubble |
addParty(PartyURI p,
Role r)
adds a party to this bubble, in specified role. |
Bubble |
copy()
generate an EMPTY bubble of the same media type, and following the same state machine |
void |
drop()
remove self from containing session. |
void |
dropParty(PartyURI p)
removes the specified party from the bubble. |
boolean |
eq(Bubble b1)
equality comparison |
boolean |
equals(java.lang.Object o)
|
Media |
getMedia()
|
java.util.Set<PartyInBubble> |
getParties()
|
PartyInBubble |
getParty(PartyURI p)
finds party-in-bubble corresponding to party p, if it exists. |
Session |
getSession()
gets parent session |
java.net.URI |
getStateMachine()
returns a URI for the bubble state machine |
int |
hashCode()
|
void |
merge(Bubble in)
Merge given bubble into this bubble. |
Expr |
mkEnterState(IState state,
PartyInBubbleConst pc)
|
Expr |
mkEnterState(IState state,
PartyInBubbleVar pv)
|
Expr |
mkEvent(IEvent a,
PartyInBubbleConst pc)
|
Expr |
mkEvent(IEvent a,
PartyInBubbleVar pv)
|
Expr |
mkInState(IState state,
PartyInBubbleConst pc)
|
Expr |
mkInState(IState state,
PartyInBubbleVar pv)
|
Expr |
mkLeaveState(IState state,
PartyInBubbleConst pc)
|
Expr |
mkLeaveState(IState state,
PartyInBubbleVar pv)
|
int |
numParties()
|
boolean |
sametype(Bubble b1)
returns true if both bubbles have the same state machine and media type. |
java.lang.String |
toString()
The unique ID within bubbles of a session. |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public boolean eq(Bubble b1)
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic java.net.URI getStateMachine()
public Session getSession()
public java.util.Set<PartyInBubble> getParties()
throws SDTException
SDTException
public PartyInBubble getParty(PartyURI p)
throws SDTException
p -
SDTException
public int numParties()
throws SDTException
SDTExceptionpublic Media getMedia()
public PartyInBubble addParty(PartyURI p,
Role r)
throws SDTException
SDTException
public PartyInBubble addParty(PartyURI p)
throws SDTException
SDTException
public void drop()
throws SDTException
SDTExceptionpublic java.lang.String toString()
toString in class java.lang.Object
public void merge(Bubble in)
throws SDTException
in - The bubble to merge into this bubble.
SDTException
public Bubble copy()
throws SDTException
SDTException
public Expr mkEvent(IEvent a,
PartyInBubbleVar pv)
public Expr mkEvent(IEvent a,
PartyInBubbleConst pc)
public Expr mkEnterState(IState state,
PartyInBubbleVar pv)
public Expr mkEnterState(IState state,
PartyInBubbleConst pc)
public Expr mkInState(IState state,
PartyInBubbleVar pv)
public Expr mkInState(IState state,
PartyInBubbleConst pc)
public Expr mkLeaveState(IState state,
PartyInBubbleVar pv)
public Expr mkLeaveState(IState state,
PartyInBubbleConst pc)
public void dropParty(PartyURI p)
throws SDTException
p -
SDTException - thrown if party p is not in the bubblepublic boolean sametype(Bubble b1)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||