All Packages Class Hierarchy This Package Previous Next Index
Interface lava.net.psyc.PSYCPackage
- public interface PSYCPackage
-
getMethods()
- Returns all methods the package wants to handle, it may
return null or an empty Array, if it doesn't want to handle
any method.
-
getPackageName()
- Returns the name of the package.
-
getVariables()
- Returns all variables the package wants to get messaged
if they were changed.
-
received(UNL, String, String)
- Called, if a method, the package wants to handle, were called.
-
registerCenter(PSYCMessageCenter)
- Called to tell the package it's responsible PSYCMessageCenter.
-
reset(UNL)
- Called, if a connection will be resetted.
-
understands()
- Returns, if the application behind the package UNDERSTANDS
the package.
-
uses()
- Returns, if the application behind the package can
use the package.
-
variableChanged(UNL, VariableModifier)
- Called, if a variable, the package wants to get messaged for,
were changed.
-
wantsErrors()
- Returns, if the package wants to get messaged about errors
on connections.
getPackageName
public abstract String getPackageName()
- Returns the name of the package. The name should not
contain blank characters. The method should return
null or an empty String if there is no package name
that should be provided.
uses
public abstract boolean uses()
- Returns, if the application behind the package can
use the package.
understands
public abstract boolean understands()
- Returns, if the application behind the package UNDERSTANDS
the package. Normally one should find this out, if the
application installs its own callback class.
wantsErrors
public abstract boolean wantsErrors()
- Returns, if the package wants to get messaged about errors
on connections.
getMethods
public abstract String[] getMethods()
- Returns all methods the package wants to handle, it may
return null or an empty Array, if it doesn't want to handle
any method.
getVariables
public abstract String[] getVariables()
- Returns all variables the package wants to get messaged
if they were changed.
registerCenter
public abstract void registerCenter(PSYCMessageCenter center)
- Called to tell the package it's responsible PSYCMessageCenter.
This method will be called while the message center
initializes the package but before the package must do some work.
received
public abstract void received(UNL source,
String method,
String body)
- Called, if a method, the package wants to handle, were called.
variableChanged
public abstract void variableChanged(UNL source,
VariableModifier modifier)
- Called, if a variable, the package wants to get messaged for,
were changed.
reset
public abstract void reset(UNL source)
- Called, if a connection will be resetted.
All Packages Class Hierarchy This Package Previous Next Index