com.ibm.commerce.negotiation.operation
Class OpenCryBidRuleInterpreterImpl
java.lang.Object
|
+--com.ibm.commerce.negotiation.operation.RuleInterpreterImpl
|
+--com.ibm.commerce.negotiation.operation.OpenCryBidRuleInterpreterImpl
- All Implemented Interfaces:
- RuleInterpreter
- public class OpenCryBidRuleInterpreterImpl
- extends RuleInterpreterImpl
This class handles Open Cry Auction bid rule.
Method Summary |
protected double |
getIncrementFromRule()
Returns the increment associated with a control-rule price range. |
void |
populateDataBean()
Populates the databean object with a ControlRuleAccessBean object. |
protected java.lang.String |
priceRangesToText()
Returns the string that represents the price range vector for Open Cry Bid Rule. |
void |
saveDataBean()
Save the datbean back to a ControlRuleAccessBean, then to the database. |
protected java.util.Vector |
textToPriceRanges()
Parses text string into upper/lower price limit components. |
boolean |
validate()
validate
Validates an open-cry bid against the auction control rule. |
Methods inherited from class com.ibm.commerce.negotiation.operation.RuleInterpreterImpl |
addRelevantObject, getBidQty, getBidValue, getControlRuleAccessBean, getControlRuleDataBean, getLowestWinningBid, getRelevantObject, setBidQty, setBidValue, setControlRuleAccessBean, setControlRuleDataBean, setLowestWinningBid |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TEXT_DELIMITER
public static final java.lang.String TEXT_DELIMITER
TEXT_SEPARATOR
public static final java.lang.String TEXT_SEPARATOR
OpenCryBidRuleInterpreterImpl
public OpenCryBidRuleInterpreterImpl()
- Creates an OpenCryBidRuleInterpreterImpl object.
getIncrementFromRule
protected double getIncrementFromRule()
- Returns the increment associated with a control-rule price range.
- Returns:
- double
populateDataBean
public void populateDataBean()
throws java.lang.Exception
- Populates the databean object with a ControlRuleAccessBean object.
- Overrides:
populateDataBean
in class RuleInterpreterImpl
priceRangesToText
protected java.lang.String priceRangesToText()
- Returns the string that represents the price range vector for Open Cry Bid Rule.
This string will be save to the database.
- Returns:
- java.lang.String
saveDataBean
public void saveDataBean()
throws java.lang.Exception
- Save the datbean back to a ControlRuleAccessBean, then to the database.
- Overrides:
saveDataBean
in class RuleInterpreterImpl
- Throws:
java.lang.Exception
- The exception description.
textToPriceRanges
protected java.util.Vector textToPriceRanges()
- Parses text string into upper/lower price limit components.
validate
public boolean validate()
throws java.lang.Exception
- validate
Validates an open-cry bid against the auction control rule.
- Overrides:
validate
in class RuleInterpreterImpl
- Returns:
- boolean
- Throws:
java.lang.Exception
-