public class PythonCombinationService
extends java.lang.Object
CombinationService
from PythonStrategyService
.
Methods mirror delegated methods with small changes (no Optional, only VOs are used, not entities). Some are left out.Constructor and Description |
---|
PythonCombinationService(CombinationService combinationService) |
Modifier and Type | Method and Description |
---|---|
CombinationVO |
addComponentQuantity(long combinationId,
long securityId,
java.math.BigDecimal quantity)
Adds the specified
quantity to the Component defined by securityId of the
Combination defined by {code combinationId}. |
CombinationVO |
createCombination(CombinationType type,
long securityFamilyId)
Creates a Combination of the specified
CombinationType and assigns it to the
specified SecurityFamily |
CombinationVO |
createCombination(CombinationType type,
long securityFamilyId,
long underlyingId)
Creates a Combination of the specified
CombinationType , assigns it to the specified
SecurityFamily and assigns an underlying
Security defined by the underlyingId . |
void |
deleteCombination(long combinationId)
Deletes the specified Combination.
|
CombinationVO |
removeComponent(long combinationId,
long securityId)
Removes the specified Component defined by
securityId from the Combination defined by
{code combinationId}. |
void |
resetComponentWindow()
Updates the Component Window.
|
CombinationVO |
setComponentQuantity(long combinationId,
long securityId,
java.math.BigDecimal quantity)
Sets the
quantity of the Component defined by securityId of the Combination
defined by {code combinationId}. |
public PythonCombinationService(CombinationService combinationService)
public CombinationVO createCombination(CombinationType type, long securityFamilyId)
CombinationType
and assigns it to the
specified SecurityFamily
public CombinationVO createCombination(CombinationType type, long securityFamilyId, long underlyingId)
CombinationType
, assigns it to the specified
SecurityFamily
and assigns an underlying
Security defined by the underlyingId
.public void deleteCombination(long combinationId)
public CombinationVO addComponentQuantity(long combinationId, long securityId, java.math.BigDecimal quantity)
quantity
to the Component defined by securityId
of the
Combination defined by {code combinationId}. If the Component does not exist yet, it will be
created.public CombinationVO setComponentQuantity(long combinationId, long securityId, java.math.BigDecimal quantity)
quantity
of the Component defined by securityId
of the Combination
defined by {code combinationId}. the existing quantity
will be ignored. If the
Component does not exist yet, it will be created.public CombinationVO removeComponent(long combinationId, long securityId)
securityId
from the Combination defined by
{code combinationId}.public void resetComponentWindow()