com.ibm.commerce.negotiation.operation
Class RuleInterpreterImpl

java.lang.Object
  |
  +--com.ibm.commerce.negotiation.operation.RuleInterpreterImpl
All Implemented Interfaces:
RuleInterpreter
Direct Known Subclasses:
OpenCryBidRuleInterpreterImpl, SealedBidRuleInterpreterImpl

public abstract class RuleInterpreterImpl
extends java.lang.Object
implements RuleInterpreter

This is the abstract class that implements the RuleInterpreter Interface


Field Summary
protected  java.lang.String bestBidValue
           
protected  java.lang.String bidQty
           
protected  java.lang.String bidValue
           
protected  ControlRuleDataBean dataBean
           
protected  java.lang.String lowestWinningBid
           
protected  java.util.Vector objectList
           
protected  ControlRuleAccessBean rule
           
 
Constructor Summary
RuleInterpreterImpl()
          Creates an OpenCryRuleInterpreter object.
 
Method Summary
 void addRelevantObject(java.lang.Object param)
          addRelevantObject method comment.
 java.lang.String getBidQty()
          Fetches bid quantity.
 java.lang.String getBidValue()
          Fetches bid value.
 ControlRuleAccessBean getControlRuleAccessBean()
          Fetches a control rule.
 ControlRuleDataBean getControlRuleDataBean()
          Fetches a control rule data bean.
 java.lang.String getLowestWinningBid()
          Fetches the lowest winning bid.
 java.lang.Object getRelevantObject(int pos)
          Fetches an object from list.
abstract  void populateDataBean()
          Abstract method.
abstract  void saveDataBean()
          Abstract method.
 void setBidQty(java.lang.String newBidQty)
          Sets a new bid quantity.
 void setBidValue(java.lang.String newBidValue)
          Sets a new bid value.
 void setControlRuleAccessBean(ControlRuleAccessBean param)
          Sets a control rule.
 void setControlRuleDataBean(ControlRuleDataBean newControlRuleDataBean)
          Setter method for controlRuleDataBean.
 void setLowestWinningBid(java.lang.String newLowestWinningBid)
          Sets the lowest winning bid.
 boolean validate()
          Determines whether a bid complies with a bid control rule.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

bestBidValue

protected java.lang.String bestBidValue

bidQty

protected java.lang.String bidQty

bidValue

protected java.lang.String bidValue

dataBean

protected ControlRuleDataBean dataBean

lowestWinningBid

protected java.lang.String lowestWinningBid

objectList

protected java.util.Vector objectList

rule

protected ControlRuleAccessBean rule
Constructor Detail

RuleInterpreterImpl

public RuleInterpreterImpl()
Creates an OpenCryRuleInterpreter object.
Method Detail

addRelevantObject

public void addRelevantObject(java.lang.Object param)
addRelevantObject method comment.
Specified by:
addRelevantObject in interface RuleInterpreter
Following copied from interface: com.ibm.commerce.negotiation.operation.RuleInterpreter
Parameters:
param - java.lang.Object

getBidQty

public java.lang.String getBidQty()
Fetches bid quantity.
Specified by:
getBidQty in interface RuleInterpreter
Returns:
java.lang.String

getBidValue

public java.lang.String getBidValue()
Fetches bid value.
Specified by:
getBidValue in interface RuleInterpreter
Returns:
java.lang.String

getControlRuleAccessBean

public ControlRuleAccessBean getControlRuleAccessBean()
Fetches a control rule.
Specified by:
getControlRuleAccessBean in interface RuleInterpreter
Following copied from interface: com.ibm.commerce.negotiation.operation.RuleInterpreter
Returns:
com.ibm.commerce.negotiation.objects.ControlRuleAccessBean

getControlRuleDataBean

public ControlRuleDataBean getControlRuleDataBean()
Fetches a control rule data bean.
Specified by:
getControlRuleDataBean in interface RuleInterpreter
Returns:
com.ibm.commerce.negotiation.beans.ControlRuleDataBean

getLowestWinningBid

public java.lang.String getLowestWinningBid()
Fetches the lowest winning bid.
Specified by:
getLowestWinningBid in interface RuleInterpreter
Returns:
java.lang.String

getRelevantObject

public java.lang.Object getRelevantObject(int pos)
Fetches an object from list.
Specified by:
getRelevantObject in interface RuleInterpreter
Following copied from interface: com.ibm.commerce.negotiation.operation.RuleInterpreter
Parameters:
pos - int
Returns:
java.lang.Object

populateDataBean

public abstract void populateDataBean()
                               throws java.lang.Exception
Abstract method.
Specified by:
populateDataBean in interface RuleInterpreter

saveDataBean

public abstract void saveDataBean()
                           throws java.lang.Exception
Abstract method.
Specified by:
saveDataBean in interface RuleInterpreter

setBidQty

public void setBidQty(java.lang.String newBidQty)
Sets a new bid quantity.
Specified by:
setBidQty in interface RuleInterpreter
Parameters:
newBidQty - java.lang.String

setBidValue

public void setBidValue(java.lang.String newBidValue)
Sets a new bid value.
Specified by:
setBidValue in interface RuleInterpreter
Parameters:
newBidValue - java.lang.String

setControlRuleAccessBean

public void setControlRuleAccessBean(ControlRuleAccessBean param)
Sets a control rule.
Specified by:
setControlRuleAccessBean in interface RuleInterpreter
Parameters:
param - The ControlRuleAccessBean

setControlRuleDataBean

public void setControlRuleDataBean(ControlRuleDataBean newControlRuleDataBean)
Setter method for controlRuleDataBean.
Specified by:
setControlRuleDataBean in interface RuleInterpreter
Parameters:
newControlRuleDataBean - com.ibm.commerce.negotiation.beans.OpenCryBidControlRuleDataBean

setLowestWinningBid

public void setLowestWinningBid(java.lang.String newLowestWinningBid)
Sets the lowest winning bid.
Specified by:
setLowestWinningBid in interface RuleInterpreter
Parameters:
newLowestWinningBid - java.lang.String

validate

public boolean validate()
                 throws java.lang.Exception
Determines whether a bid complies with a bid control rule.
Specified by:
validate in interface RuleInterpreter
Returns:
boolean
Throws:
java.lang.Exception -