java.lang.ObjectCacheableCommandImpl
com.ibm.commerce.command.AbstractECTargetableCommand
com.ibm.commerce.command.TaskCommandImpl
com.ibm.commerce.negotiation.commands.ProcessTaskCmdImpl
com.ibm.commerce.negotiation.commands.AutoBidsTaskCmdImpl
The task command that computes and updates the prices of the bids that belong to auto-bids for a specified auction.
Field Summary | |
static java.lang.String | COPYRIGHT Copyright statement. |
static java.lang.String | EC_AUTOBIDS_TASK_ERROR_VIEW_CMD The name for the error task. |
protected java.util.Vector | winners The list of winners. |
Fields inherited from class com.ibm.commerce.command.AbstractECTargetableCommand |
commandContext |
Fields inherited from interface com.ibm.commerce.negotiation.commands.AutoBidsTaskCmd |
defaultCommandClassName, NAME |
Fields inherited from interface com.ibm.commerce.command.ECCommand |
defaultCommandClassName |
Constructor Summary | |
AutoBidsTaskCmdImpl() AutoBidsTaskCmdImpl constructor. |
Method Summary | |
protected double | allocateQuantity() Allocates the quantity on auction among the specified sorted list of bids. |
protected int | calcExpectedBidCount() Calculates the expected number of bids to be retrieved required to fully allocate the auction quantity. |
protected void | determineWinnersNextBidPrices() Determines the current potential bid winners's next bid prices for the current auction. |
protected java.util.Vector | getWinners() Get the winner list. |
protected void | handleException(java.lang.Exception e) Formats an ECException based on the input exception value. |
void | performExecute() Auto Bids processing task. |
void | reset() reset the command, so that it can be reused. |
protected java.util.Vector | retrieveActiveBids(int count) Retrieve the specified number of active bids sorted by bid price/upper limit (desc), quantity (desc) and creation time (asc) |
protected void | updateAuction(long auctionBookKeepTime) Update current auction highest/lowest winning bids, Lock flag and time. |
Methods inherited from class com.ibm.commerce.negotiation.commands.ProcessTaskCmdImpl |
getActiveBids, getAuction, getAuctionId, getDefaultBestBidValue, getDefaultBidCount, getErrorTaskName, isReadyToCallExecute, setActiveBids, setDataHandle, setErrorTaskName |
Methods inherited from class com.ibm.commerce.command.AbstractECTargetableCommand |
accessControlCheck, checkIsAllowed, checkParameters, checkResourcePermission, createCommandExecutionEvent, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.ibm.commerce.negotiation.commands.ProcessTaskCmd |
setDataHandle, setErrorTaskName |
Field Detail |
public static final java.lang.String COPYRIGHT
public static final java.lang.String EC_AUTOBIDS_TASK_ERROR_VIEW_CMD
protected java.util.Vector winners
Constructor Detail |
public AutoBidsTaskCmdImpl()
Method Detail |
protected double allocateQuantity() throws java.lang.Exception
protected int calcExpectedBidCount() throws java.lang.Exception
protected void determineWinnersNextBidPrices() throws java.lang.Exception
protected java.util.Vector getWinners()
protected void handleException(java.lang.Exception e) throws ECException
public void performExecute() throws ECException
public void reset()
protected java.util.Vector retrieveActiveBids(int count) throws ECException
protected void updateAuction(long auctionBookKeepTime) throws java.lang.Exception
(C) Copyright IBM Corporation 1996, 2005. All Rights Reserved.