Package org.marketcetera.trade.pnl
Interface ProfitAndLoss
-
- All Superinterfaces:
HasInstrument,HasUser
public interface ProfitAndLoss extends HasInstrument, HasUser
Indicates profit and loss for a user-instrument tuple.- Since:
- $Release$
- Version:
- $Id$
- Author:
- Colin DuPlantis
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description BigDecimalgetBasisPrice()Get the basisPrice value.BigDecimalgetPosition()Get the position value.BigDecimalgetRealizedGain()Get the realizedGain value.BigDecimalgetUnrealizedGain()Get the unrealizedGain value.voidsetBasisPrice(BigDecimal inBasisPrice)Set the basisPrice value.voidsetPosition(BigDecimal inPosition)Set the position value.voidsetRealizedGain(BigDecimal inRealizedGain)Set the realizedGain value.voidsetUnrealizedGain(BigDecimal inUnrealizedGain)Set the unrealizedGain value.-
Methods inherited from interface org.marketcetera.trade.HasInstrument
getInstrument, setInstrument
-
-
-
-
Method Detail
-
getRealizedGain
BigDecimal getRealizedGain()
Get the realizedGain value.- Returns:
- a
java.math.BigDecimalvalue
-
setRealizedGain
void setRealizedGain(BigDecimal inRealizedGain)
Set the realizedGain value.- Parameters:
inRealizedGain- ajava.math.BigDecimalvalue
-
getUnrealizedGain
BigDecimal getUnrealizedGain()
Get the unrealizedGain value.- Returns:
- a
java.math.BigDecimalvalue
-
setUnrealizedGain
void setUnrealizedGain(BigDecimal inUnrealizedGain)
Set the unrealizedGain value.- Parameters:
inUnrealizedGain- ajava.math.BigDecimalvalue
-
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
-
getPosition
BigDecimal getPosition()
Get the position value.- Returns:
- a
java.math.BigDecimalvalue
-
setPosition
void setPosition(BigDecimal inPosition)
Set the position value.- Parameters:
inPosition- ajava.math.BigDecimalvalue
-
-