ist.palcom.hgraph
Class FuncHandler

java.lang.Object
  extended by ist.palcom.hgraph.AbstractHandler
      extended by ist.palcom.hgraph.FuncHandler
All Implemented Interfaces:
Handler

public class FuncHandler
extends AbstractHandler


Field Summary
static java.lang.String CMD_ADDHANDLER
          Command for adding a listener the node.
static java.lang.String CMD_ADDINVOKATOR
          Command for adding a listener the node.
static java.lang.String CMD_ADDLISTENER
          Command for adding a listener the node.
static java.lang.String CMD_REMOVEHANDLER
           
static java.lang.String CMD_REMOVEINVOKATOR
           
static java.lang.String CMD_REMOVELISTENER
           
static java.lang.String description
           
static java.lang.String name
           
 
Fields inherited from class ist.palcom.hgraph.AbstractHandler
DEFAULT_NUM_LOGS
 
Constructor Summary
FuncHandler(HgraphNode node)
           
 
Method Summary
 Signature[] getSignatures()
           
 void handle(HgraphEvent event)
          The handle method is invoked by the HgraphNode in which the handler is installed.
 
Methods inherited from class ist.palcom.hgraph.AbstractHandler
getDescription, getLast, getLogIterator, getName, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

public static final java.lang.String name
See Also:
Constant Field Values

description

public static final java.lang.String description
See Also:
Constant Field Values

CMD_ADDLISTENER

public static final java.lang.String CMD_ADDLISTENER
Command for adding a listener the node.

See Also:
Constant Field Values

CMD_ADDHANDLER

public static final java.lang.String CMD_ADDHANDLER
Command for adding a listener the node.

See Also:
Constant Field Values

CMD_ADDINVOKATOR

public static final java.lang.String CMD_ADDINVOKATOR
Command for adding a listener the node.

See Also:
Constant Field Values

CMD_REMOVEINVOKATOR

public static final java.lang.String CMD_REMOVEINVOKATOR
See Also:
Constant Field Values

CMD_REMOVELISTENER

public static final java.lang.String CMD_REMOVELISTENER
See Also:
Constant Field Values

CMD_REMOVEHANDLER

public static final java.lang.String CMD_REMOVEHANDLER
See Also:
Constant Field Values
Constructor Detail

FuncHandler

public FuncHandler(HgraphNode node)
Method Detail

getSignatures

public Signature[] getSignatures()
Returns:
The signatures of the commands handled by the handler

handle

public void handle(HgraphEvent event)
Description copied from interface: Handler
The handle method is invoked by the HgraphNode in which the handler is installed. This happens once the node receives an event for which it is the designatee. The handler may freely switch on the command string of the event and act accordingly

Specified by:
handle in interface Handler
Overrides:
handle in class AbstractHandler
See Also:
Handler