|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.cfpm.caves.za.CurrentTick
public class CurrentTick
This class implements a user function in Jess. The parameterless function "current-tick" returns the current model tick, to be used on the RHS of rules. This way is more efficient than having the model in the LHS.
Field Summary | |
---|---|
(package private) SouthAfricaModel |
model
a reference to the model |
Constructor Summary | |
---|---|
CurrentTick(SouthAfricaModel model)
Creates the user function with the given model |
Method Summary | |
---|---|
jess.Value |
call(jess.ValueVector vv,
jess.Context c)
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 CurrentTick(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 c) throws jess.JessException
call
in interface jess.Userfunction
vv
- the list of parameters (ignored)c
- the Jess context (ignored)
jess.JessException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |