|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectuk.ac.ucl.che.esf.base.Method
public class Method
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.
| 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 |
|---|
public Method(java.lang.String name,
int nargs,
int nret)
public Method(java.lang.String name,
int nargs,
int nret,
boolean f_modifies)
| Method Detail |
|---|
public void apply(EGO object)
public java.lang.String getName()
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||