|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.cfpm.caves.za.Dump
public class Dump
This class implements a user function in Jess. The parameterless function "dump" calls the method of the same name on the model class. To be used on the RHS of rules. This allows (a) to toggle output on/off via one model parameter, given that all Jess output uses the dump function, and (b) an efficient way to call a method on the model without having to put the model fact in the LHS of a rule.
Field Summary | |
---|---|
(package private) SouthAfricaModel |
model
a reference to the model |
Constructor Summary | |
---|---|
Dump(SouthAfricaModel model)
Creates the user function with the given model |
Method Summary | |
---|---|
jess.Value |
call(jess.ValueVector vv,
jess.Context context)
calls the function with the given parameter and context from Jess. |
java.lang.String |
getName()
returns the name of the function in Jess |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
SouthAfricaModel model
Constructor Detail |
---|
public Dump(SouthAfricaModel model)
model
- the modelMethod Detail |
---|
public java.lang.String getName()
getName
in interface jess.Userfunction
public jess.Value call(jess.ValueVector vv, jess.Context context) throws jess.JessException
call
in interface jess.Userfunction
vv
- the list of parameters (ignored)context
- the Jess context (ignored)
jess.JessException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |