public interface Bid extends OsidRelationship
A Bid
represents a bid for an item at an auction.
Modifier and Type | Method and Description |
---|---|
Auction |
getAuction()
Gets the auction.
|
Id |
getAuctionId()
Gets the
Id of the auction. |
Resource |
getBidder()
Gets the bidder.
|
Id |
getBidderId()
Gets the
Id of the bidder. |
Agent |
getBiddingAgent()
Gets the bidding agent.
|
Id |
getBiddingAgentId()
Gets the
Id of the bidding agent. |
BidRecord |
getBidRecord(Type bidRecordType)
Gets the bid record corresponding to the given
Bid
record Type. |
Currency |
getCurrentBid()
Gets the current bid amount.
|
Currency |
getMaximumBid()
Gets the maximum bid.
|
long |
getQuantity()
Gets the quantity of items in this bid.
|
Currency |
getSettlementAmount()
Gets the settlement amount owed from the bidder.
|
boolean |
isWinner()
Tests if this was a winning bid.
|
getEndReason, getEndReasonId, hasEndReason
getDescription, getDisplayName, getGenusType, isOfGenusType
getId, isCurrent
getRecordTypes, hasRecordType
getProperties, getPropertiesByRecordType
getEndDate, getStartDate, isEffective
Id getAuctionId()
Id
of the auction. Id
mandatory
- This method must be implemented. Auction getAuction() throws OperationFailedException
OperationFailedException
- unable to complete requestmandatory
- This method must be implemented. Id getBidderId()
Id
of the bidder. Id
mandatory
- This method must be implemented. Resource getBidder() throws OperationFailedException
OperationFailedException
- unable to complete requestmandatory
- This method must be implemented. Id getBiddingAgentId()
Id
of the bidding agent. Id
mandatory
- This method must be implemented. Agent getBiddingAgent() throws OperationFailedException
OperationFailedException
- unable to complete requestmandatory
- This method must be implemented. long getQuantity()
mandatory
- This method must be implemented. Currency getCurrentBid()
mandatory
- This method must be implemented. Currency getMaximumBid()
mandatory
- This method must be implemented. boolean isWinner()
true
if this was a winnign bid, false
otherwisemandatory
- This method must be implemented. Currency getSettlementAmount()
mandatory
- This method must be implemented. BidRecord getBidRecord(Type bidRecordType) throws OperationFailedException
Bid
record Type.
This method is used to retrieve an object
implementing the requested record. The bidRecordType
may be the Type
returned in getRecordTypes()
or any of its parents in a Type
hierarchy where
hasRecordType(bidRecordType)
is true
.bidRecordType
- the type of bid record to retrieveNullArgumentException
- bidRecordType
is
null
OperationFailedException
- unable to complete requestUnsupportedException
-
hasRecordType(bidRecordType)
is false
mandatory
- This method must be implemented.