|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectist.palcom.hgraph.FuncFunc
public class FuncFunc
Functionality for H-Graph nodes. This class provides functionality for holding and maintaining a set of handlers, invokators and listeners. It further facilitates functionality for passing Hgraph Events through the H-Graph
| Constructor Summary | |
|---|---|
FuncFunc(IHgraphNode node)
|
|
| Method Summary | |
|---|---|
void |
addHandler(Handler handler,
Path callerPath)
Adds a handler to the node. |
void |
addInvokator(Invokator invokator,
Path callerPath)
Adds an invokator to the node |
void |
addListener(Listener listener,
Path callerPath)
Adds a listener to the node |
GenericInvokator |
getGenericInvokator()
|
Handler[] |
getHandlers()
|
Invokator[] |
getInvokators()
|
Listener[] |
getListeners()
|
int |
invoke(Invokator invokator,
HgraphEvent event)
Invokes (a) handler(s) across the h-graph. |
void |
removeHandler(Handler handler,
Path callerPath)
Removes a handler from the node |
void |
removeHandler(java.lang.String name,
Path callerPath)
|
void |
removeInvokator(Invokator invokator,
Path callerPath)
Removes an invokator from the node |
void |
removeInvokator(java.lang.String name,
Path callerPath)
|
void |
removeListener(Listener listener,
Path callerPath)
Removes a listener from the node |
void |
removeListener(java.lang.String name,
Path callerPath)
|
void |
trigger(java.lang.String command,
Value params,
Path callerPath)
Triggers the listeners installed in the local node. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FuncFunc(IHgraphNode node)
| Method Detail |
|---|
public void removeListener(java.lang.String name,
Path callerPath)
public void removeHandler(java.lang.String name,
Path callerPath)
public void removeInvokator(java.lang.String name,
Path callerPath)
public void addInvokator(Invokator invokator,
Path callerPath)
invokator -
public void addListener(Listener listener,
Path callerPath)
Listener
public void removeListener(Listener listener,
Path callerPath)
listener - Listener
public void removeInvokator(Invokator invokator,
Path callerPath)
invokator - Invokatorpublic GenericInvokator getGenericInvokator()
public int invoke(Invokator invokator,
HgraphEvent event)
event - The event to invoke the graph with. It holds the recipient path, the command and the parameters
HgraphEvent
public void trigger(java.lang.String command,
Value params,
Path callerPath)
public void addHandler(Handler handler,
Path callerPath)
handler - Handler
public void removeHandler(Handler handler,
Path callerPath)
handler - the Handler to remove.public Handler[] getHandlers()
public Invokator[] getInvokators()
public Listener[] getListeners()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||