|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.cfpm.caves.za.RandomListElement
public class RandomListElement
This class implements a user function in Jess. The function "random-element-of" expects a list as parameter and returns a randomly picked element of this list.
Constructor Summary | |
---|---|
RandomListElement()
|
Method Summary | |
---|---|
jess.Value |
call(jess.ValueVector vv,
jess.Context context)
The argument of the call is the list of which a random element is to be picked. |
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 |
Constructor Detail |
---|
public RandomListElement()
Method 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 ValueVector containing the header and parameterscontext
- -- the context of the Rete engine
jess.JessException
Userfunction.call(jess.ValueVector, jess.Context)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |