Package org.marketcetera.trade.pnl
Interface CurrentPosition
-
- All Superinterfaces:
HasInstrument,HasUser
public interface CurrentPosition extends HasInstrument, HasUser
Describes the current position of a given instrument owned by a given user.- Since:
- $Release$
- Version:
- $Id$
- Author:
- Colin DuPlantis
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description BigDecimalgetPosition()Get the position value.BigDecimalgetRealizedGain()Get the realizedGain value.BigDecimalgetUnrealizedGain()Get the unrealizedGain value.BigDecimalgetWeightedAverageCost()Get the weightedAverageCost value.voidsetPosition(BigDecimal inPosition)Set the position value.voidsetRealizedGain(BigDecimal inRealizedGain)Set the realizedGain value.voidsetUnrealizedGain(BigDecimal inUnrealizedGain)Set the unrealizedGain value.voidsetWeightedAverageCost(BigDecimal inWeightedAverageCost)Set the weightedAverageCost value.-
Methods inherited from interface org.marketcetera.trade.HasInstrument
getInstrument, setInstrument
-
-
-
-
Method Detail
-
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
-
getWeightedAverageCost
BigDecimal getWeightedAverageCost()
Get the weightedAverageCost value.- Returns:
- a
java.math.BigDecimalvalue
-
setWeightedAverageCost
void setWeightedAverageCost(BigDecimal inWeightedAverageCost)
Set the weightedAverageCost value.- Parameters:
inWeightedAverageCost- ajava.math.BigDecimalvalue
-
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
-
-