|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsdt.mediator.Session
public class Session
represents a session.
| Method Summary | |
|---|---|
Bubble |
addBubble(java.net.URI statemachine,
Media m)
|
Trigger |
addNotifyOnlyTrigger(Expr te,
IHandler h)
Adds a trigger of a Notify-Only type. |
Trigger |
addNotifyWaitTrigger(Expr te,
IHandler h)
Adds a trigger of a Notify-Wait type. |
Trigger |
addTrigger(Expr te,
IHandler h,
TriggerKind k)
Add a trigger |
void |
blockTriggers()
blocks all triggers for this session |
void |
drop()
stops session. |
boolean |
eq(Session o)
equality function |
boolean |
equals(java.lang.Object o)
|
java.util.Set<Bubble> |
getBubbles()
|
java.util.Set<Trigger> |
getTriggers()
|
SessionURI |
getURI()
|
int |
hashCode()
|
Expr |
mkEnterState(IState state,
BubbleVar bv,
PartyInBubbleVar pv)
|
Expr |
mkEvent(IEvent a,
BubbleVar bv,
PartyInBubbleVar pv)
|
Expr |
mkInState(IState state,
BubbleVar bv,
PartyInBubbleVar pv)
|
Expr |
mkLeaveState(IState state,
BubbleVar bv,
PartyInBubbleVar pv)
|
java.lang.String |
toString()
|
void |
unblockTriggers()
un-blocks all triggers for this session |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public boolean eq(Session o)
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object
public Bubble addBubble(java.net.URI statemachine,
Media m)
throws SDTException
SDTException
public Trigger addTrigger(Expr te,
IHandler h,
TriggerKind k)
throws SDTException
te - is the trigger condition (see sdt.mediator.predicates for structure)h - is the handler to be called when the trigger is activatedt - is the type of trigger (notify-only, notify-and-wait)
SDTException
public Trigger addNotifyWaitTrigger(Expr te,
IHandler h)
throws SDTException
SDTException
public Trigger addNotifyOnlyTrigger(Expr te,
IHandler h)
throws SDTException
SDTException
public java.util.Set<Bubble> getBubbles()
throws SDTException
SDTException
public java.util.Set<Trigger> getTriggers()
throws SDTException
SDTExceptionpublic SessionURI getURI()
public void drop()
throws SDTException
SDTExceptionpublic void blockTriggers()
public void unblockTriggers()
public Expr mkEnterState(IState state,
BubbleVar bv,
PartyInBubbleVar pv)
public Expr mkEvent(IEvent a,
BubbleVar bv,
PartyInBubbleVar pv)
public Expr mkInState(IState state,
BubbleVar bv,
PartyInBubbleVar pv)
public Expr mkLeaveState(IState state,
BubbleVar bv,
PartyInBubbleVar pv)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||