sdt.mediator
Class PartyInBubble

java.lang.Object
  extended by sdt.mediator.PartyInBubble

public class PartyInBubble
extends java.lang.Object

This represents the "connection" between a party and a bubble. The connection maintains the state of the party in the bubble


Method Summary
 void drop()
          Drop self from containing bubble
 boolean eq(PartyInBubble q)
          equality check
 boolean equals(java.lang.Object o)
           
 Bubble getBubble()
           
 PartyURI getParty()
           
 Role getRole()
           
 java.lang.String getState()
           
 sdt.ext.interfaces.PartyInBridgeURI getURI()
           
 int hashCode()
           
 PartyInBubble invite(PartyURI partyURI, Role r)
          invites another party to the same bubble.
 Expr mkEnterState(IState state)
           
 Expr mkEvent(IEvent a)
           
 Expr mkInState(IState state)
           
 Expr mkLeaveState(IState state)
           
 void moveTo(Bubble b1)
          move to new bubble; only works if new and old bubbles are from the same session, and have the same type.
 void request(IEvent a)
          request an action to be performed.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

eq

public boolean eq(PartyInBubble q)
equality check


equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

getURI

public sdt.ext.interfaces.PartyInBridgeURI getURI()

getBubble

public Bubble getBubble()

getParty

public PartyURI getParty()

getRole

public Role getRole()

drop

public void drop()
          throws SDTException
Drop self from containing bubble

Throws:
SDTException

getState

public java.lang.String getState()
                          throws SDTException
Throws:
SDTException

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

moveTo

public void moveTo(Bubble b1)
            throws SDTException
move to new bubble; only works if new and old bubbles are from the same session, and have the same type.

Throws:
SDTException

request

public void request(IEvent a)
             throws SDTException
request an action to be performed.

Parameters:
a -
Throws:
SDTException - if the action is not controllable, or could not be performed

invite

public PartyInBubble invite(PartyURI partyURI,
                            Role r)
                     throws SDTException
invites another party to the same bubble.

Throws:
SDTException

mkEvent

public Expr mkEvent(IEvent a)

mkEnterState

public Expr mkEnterState(IState state)

mkInState

public Expr mkInState(IState state)

mkLeaveState

public Expr mkLeaveState(IState state)