uk.ac.ucl.che.esf.base
Class Method

java.lang.Object
  extended by uk.ac.ucl.che.esf.base.Method
All Implemented Interfaces:
java.io.Serializable

public class Method
extends java.lang.Object
implements java.io.Serializable

Associated with any object in the ESF hierarchy (starting from the EGO object) are a set of "methods". These methods are those which the user of a text or graphical based interface can access. A method is described by a string (the name of the method), the number of arguments it expects (which will be passed as an array of EGO objects), and the number of objects it returns (again as an array of EGO objects.

See Also:
Serialized Form

Nested Class Summary
 class Method.Invocation
          Thread inner class to apply methods in the GUI interface.
 
Constructor Summary
Method(java.lang.String name, int nargs, int nret)
          Deprecated.  
Method(java.lang.String name, int nargs, int nret, boolean f_modifies)
          The real constructor which expects the name of the method, the number of arguments and return values, and the flag which indicates whether the method is likely to modify the base object or not.
 
Method Summary
 void apply(EGO object)
          Apply the specific method to the object given.
 java.lang.String getName()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Method

public Method(java.lang.String name,
              int nargs,
              int nret)
Deprecated. 

The old constructor.


Method

public Method(java.lang.String name,
              int nargs,
              int nret,
              boolean f_modifies)
The real constructor which expects the name of the method, the number of arguments and return values, and the flag which indicates whether the method is likely to modify the base object or not.

Method Detail

apply

public void apply(EGO object)
Apply the specific method to the object given.


getName

public java.lang.String getName()
Returns:
name of the object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object