Package org.marketcetera.trade.pnl
Interface Lot
-
- All Superinterfaces:
HasPosition,HasTrade,HasUser
public interface Lot extends HasPosition, HasTrade, HasUser
Identifies a lot used to calculate profit and loss.- Since:
- $Release$
- Version:
- $Id$
- Author:
- Colin DuPlantis
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description BigDecimalgetAllocatedQuantity()Get the allocatedQuantity value.BigDecimalgetBasisPrice()Get the basisPrice value.DategetEffectiveDate()Get the effectiveDate value.BigDecimalgetGain()Get the gain value.BigDecimalgetQuantity()Get the quantity value.BigDecimalgetTradePrice()Get the tradePrice value.voidsetAllocatedQuantity(BigDecimal inAllocatedQuantity)Set the allocatedQuantity value.voidsetBasisPrice(BigDecimal inBasisPrice)Set the basisPrice value.voidsetEffectiveDate(Date inEffectiveDate)Set the effectiveDate value.voidsetGain(BigDecimal inGain)Set the gain value.voidsetQuantity(BigDecimal inQuantity)Set the quantity value.voidsetTradePrice(BigDecimal inTradePrice)Set the tradePrice value.-
Methods inherited from interface org.marketcetera.trade.pnl.HasPosition
getPosition, setPosition
-
-
-
-
Method Detail
-
getQuantity
BigDecimal getQuantity()
Get the quantity value.- Returns:
- a
java.math.BigDecimalvalue
-
setQuantity
void setQuantity(BigDecimal inQuantity)
Set the quantity value.- Parameters:
inQuantity- ajava.math.BigDecimalvalue
-
getAllocatedQuantity
BigDecimal getAllocatedQuantity()
Get the allocatedQuantity value.- Returns:
- a
java.math.BigDecimalvalue
-
setAllocatedQuantity
void setAllocatedQuantity(BigDecimal inAllocatedQuantity)
Set the allocatedQuantity value.- Parameters:
inAllocatedQuantity- ajava.math.BigDecimalvalue
-
getEffectiveDate
Date getEffectiveDate()
Get the effectiveDate value.- Returns:
- a
java.util.Datevalue
-
setEffectiveDate
void setEffectiveDate(Date inEffectiveDate)
Set the effectiveDate value.- Parameters:
inEffectiveDate- ajava.util.Datevalue
-
getBasisPrice
BigDecimal getBasisPrice()
Get the basisPrice value.- Returns:
- a
java.math.BigDecimalvalue
-
setBasisPrice
void setBasisPrice(BigDecimal inBasisPrice)
Set the basisPrice value.- Parameters:
inBasisPrice- ajava.math.BigDecimalvalue
-
getGain
BigDecimal getGain()
Get the gain value.- Returns:
- a
java.math.BigDecimalvalue
-
setGain
void setGain(BigDecimal inGain)
Set the gain value.- Parameters:
inGain- ajava.math.BigDecimalvalue
-
getTradePrice
BigDecimal getTradePrice()
Get the tradePrice value.- Returns:
- a
java.math.BigDecimalvalue
-
setTradePrice
void setTradePrice(BigDecimal inTradePrice)
Set the tradePrice value.- Parameters:
inTradePrice- ajava.math.BigDecimalvalue
-
-