All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface lava.net.psyc.PSYCPackage

public interface PSYCPackage

Method Index

 o 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.
 o getPackageName()
Returns the name of the package.
 o getVariables()
Returns all variables the package wants to get messaged if they were changed.
 o received(UNL, String, String)
Called, if a method, the package wants to handle, were called.
 o registerCenter(PSYCMessageCenter)
Called to tell the package it's responsible PSYCMessageCenter.
 o reset(UNL)
Called, if a connection will be resetted.
 o understands()
Returns, if the application behind the package UNDERSTANDS the package.
 o uses()
Returns, if the application behind the package can use the package.
 o variableChanged(UNL, VariableModifier)
Called, if a variable, the package wants to get messaged for, were changed.
 o wantsErrors()
Returns, if the package wants to get messaged about errors on connections.

Methods

 o 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.

 o uses
 public abstract boolean uses()
Returns, if the application behind the package can use the package.

 o 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.

 o wantsErrors
 public abstract boolean wantsErrors()
Returns, if the package wants to get messaged about errors on connections.

 o 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.

 o getVariables
 public abstract String[] getVariables()
Returns all variables the package wants to get messaged if they were changed.

 o 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.

 o received
 public abstract void received(UNL source,
                               String method,
                               String body)
Called, if a method, the package wants to handle, were called.

 o variableChanged
 public abstract void variableChanged(UNL source,
                                      VariableModifier modifier)
Called, if a variable, the package wants to get messaged for, were changed.

 o reset
 public abstract void reset(UNL source)
Called, if a connection will be resetted.


All Packages  Class Hierarchy  This Package  Previous  Next  Index