BEA Systems, Inc.

com.beasys.commerce.axiom.p13n.agents
Class ClassificationAgentImpl

java.lang.Object
  |
  +--com.beasys.commerce.axiom.p13n.agents.ClassificationAgentImpl

public final class ClassificationAgentImpl
extends java.lang.Object
implements Agent, java.io.Serializable

This class is the implementation class for a Classification Agent 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 ClassificationAgentImpl expects a ClassificationAdviceRequest as input and returns ClassificationAdviceResults.

See Also:
Serialized Form

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

Constructor Detail

ClassificationAgentImpl

public ClassificationAgentImpl()
Method Detail

advise

public AdviceResults advise(AdviceRequest adviceRequest)
                     throws java.lang.IllegalArgumentException,
                            PersonalizationAdvisorException,
                            AdviceRequestValidationException
This method makes recommendations based the AdviceRequest passed in. For the ClassificationAgent, the request class is: ClassificationAdviceRequest For the ClassificationAgent, the results class is: ClassificationAdviceResults
Specified by:
advise in interface Agent
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.
PersonalizationAdvisorException - 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 agent.
Specified by:
getName in interface Agent
Returns:
String The name of the agent.

BEA Systems, Inc.

Copyright © 2000 BEA Systems, Inc. All Rights Reserved