org.cfpm.caves.za
Class EndorsementValue

java.lang.Object
  extended by org.cfpm.caves.za.EndorsementValue
All Implemented Interfaces:
jess.Userfunction

public class EndorsementValue
extends java.lang.Object
implements jess.Userfunction

This class implements a user function in Jess. The function "endorsement-value" expects an endorsement scheme and a list of endorsement as parameters. It returns the overall endorsement value.

Author:
Scott

Constructor Summary
EndorsementValue()
           
 
Method Summary
 jess.Value call(jess.ValueVector vv, jess.Context context)
          The first argument of the call is the endorsement scheme used to evaluate the endorsed object and the second is the list of endorsements on the object.
 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

EndorsementValue

public EndorsementValue()
Method Detail

getName

public java.lang.String getName()
returns the name of the function in Jess

Specified by:
getName in interface jess.Userfunction

call

public jess.Value call(jess.ValueVector vv,
                       jess.Context context)
                throws jess.JessException
The first argument of the call is the endorsement scheme used to evaluate the endorsed object and the second is the list of endorsements on the object.

Specified by:
call in interface jess.Userfunction
Parameters:
vv - -- the ValueVector containing the header and parameters
context - -- the context of the Rete engine
Returns:
the overall endorsement value of the endorsed object
Throws:
jess.JessException
See Also:
Userfunction.call(jess.ValueVector, jess.Context)