com.ibm.commerce.negotiation.operation

Class RuleInterpreterImpl

  • java.lang.Object
    • com.ibm.commerce.negotiation.operation.RuleInterpreterImpl
    • Field Detail

      • COPYRIGHT

        public static final java.lang.String COPYRIGHT
        IBM copyright notice field.
        See Also:
        Constant Field Values
    • 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
        Parameters:
        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
      • 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
        Parameters:
        int -
        Returns:
        Object
      • populateDataBean

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

        public abstract void saveDataBean()
                                   throws java.lang.Exception
        Abstract method.
        Specified by:
        saveDataBean in interface RuleInterpreter
        Throws:
        Excpetion
        java.lang.Exception
      • 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
      • 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