Package org.marketcetera.trade.pnl
Interface Position
-
- All Superinterfaces:
HasInstrument,HasUser
public interface Position extends HasInstrument, HasUser
Describes position of a given instrument owned by a given user at a given point in time.- Since:
- $Release$
- Version:
- $Id$
- Author:
- Colin DuPlantis
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DategetEffectiveDate()Get the effectiveDate value.BigDecimalgetPosition()Get the position value.BigDecimalgetRealizedGain()Get the realizedGain value.BigDecimalgetUnrealizedGain()Get the unrealizedGain value.BigDecimalgetWeightedAverageCost()Get the weightedAverageCost value.voidsetEffectiveDate(Date inEffectiveDate)Set the effectiveDate 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
-
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
-
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
-
-