sdt.mediator
Class Trigger

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

public class Trigger
extends java.lang.Object

represents a trigger, after it has been entered into a session


Method Summary
 void block()
          blocks notifications from reaching associated handler.
 void drop()
          remove this trigger from the session
 boolean eq(Trigger th1)
          equality function
 boolean equals(java.lang.Object o)
           
 IHandler getHandler()
          return current handler, must be non-null
 Session getSession()
          get session this is attached to
 Expr getTriggerExpression()
          return current trigger expression, must be non-null
 int hashCode()
           
 void setHandler(IHandler h1)
          replace current handler; new handler must be non-null
 void unblock()
          unblocks notifications
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

eq

public boolean eq(Trigger th1)
equality function


hashCode

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

equals

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

getSession

public Session getSession()
get session this is attached to


drop

public void drop()
          throws SDTException
remove this trigger from the session

Throws:
SDTException

getTriggerExpression

public Expr getTriggerExpression()
return current trigger expression, must be non-null


getHandler

public IHandler getHandler()
return current handler, must be non-null


setHandler

public void setHandler(IHandler h1)
replace current handler; new handler must be non-null


block

public void block()
blocks notifications from reaching associated handler.


unblock

public void unblock()
unblocks notifications