BEA Systems, Inc.

com.beasys.commerce.axiom.advisor.advislets
Class ClassificationAdvisletImpl

java.lang.Object
  |
  +--com.beasys.commerce.axiom.advisor.advislets.ClassificationAdvisletImpl

public final class ClassificationAdvisletImpl
extends java.lang.Object
implements Advislet, java.io.Serializable

This class is the implementation class for a Classification Advislet that handles getting advise for a Classification Request. A Classification Request is an attempt to classify a user according to a classifier rule that resides in a rule sheet. A ClassificationAdvisletImpl expects a ClassificationAdviceRequest as input and returns ClassificationAdviceResults.

See Also:
Serialized Form

Constructor Summary
ClassificationAdvisletImpl()
           
 
Method Summary
 AdviceResults advise(AdviceRequest adviceRequest)
          This method makes recommendations based the AdviceRequest passed in.
 java.lang.String getName()
          Gets the name of the advislet.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassificationAdvisletImpl

public ClassificationAdvisletImpl()
Method Detail

advise

public AdviceResults advise(AdviceRequest adviceRequest)
                     throws java.lang.IllegalArgumentException,
                            AdvisorException,
                            AdviceRequestValidationException
This method makes recommendations based the AdviceRequest passed in. For the ClassificationAdvislet, the request class is: ClassificationAdviceRequest For the ClassificationAdvislet, the results class is: ClassificationAdviceResults
Specified by:
advise in interface Advislet
Parameters:
adviceRequest - The ClassificationAdviceRequest for which to make a Classification recommendation.
Returns:
AdviceResults The ClassificationAdviceResults which contain the Classification recommendation for the request..
Throws:
java.lang.IllegalArgumentException - Thrown if the adviceRequest parameter is null or an unsupported type.
AdvisorException - thrown on an error when processing the request.
AdviceRequestValidationException - thrown on an error when validating the request.

getName

public java.lang.String getName()
Gets the name of the advislet.
Returns:
String The name of the advislet.

BEA Systems, Inc.

Copyright © 2000 BEA Systems, Inc. All Rights Reserved