All Packages Class Hierarchy This Package Previous Next Index
Class kl1.lang.Module
java.lang.Object
|
+----kl1.lang.Module
- public abstract class Module
- extends Object
This class represents a module.
- Author:
- Satoshi KURAMOCHI
-
info
- the information of the module.
-
preds
- the predicates' information of the module.
-
Module()
-
-
exec(KL1Machine, Goalrec, Predicate)
- Executes goals.
-
get_pred(String, int)
- Returns the specified predicate.
-
init(KL1Machine)
- Initializes the module.
-
main(String[])
- main method.
-
print(int)
-
-
toString()
-
info
public Modinfo info
- the information of the module.
preds
public Predinfo preds[]
- the predicates' information of the module.
Module
public Module()
init
public void init(KL1Machine mach)
- Initializes the module.
exec
public abstract Module exec(KL1Machine mach,
Goalrec qp,
Predicate toppred)
- Executes goals.
- Parameters:
- qp - the goal queue.
- topppred - the top predicate in the goal queue.
- Returns:
- the module whose predicate first appears in the goal queue.
get_pred
public Predicate get_pred(String predname,
int arity)
- Returns the specified predicate.
- Parameters:
- predname - the name of the predicate.
- arity - the arity of the predicate.
- Returns:
- a predicate if it is found;
null
otherwise.
toString
public String toString()
- Overrides:
- toString in class Object
print
public String print(int pred)
main
public static final void main(String argv[])
- main method.
- Parameters:
- argv - arguments.
All Packages Class Hierarchy This Package Previous Next Index