Class Strategy
- java.lang.Object
-
- com.caplin.motif.fx.trading.orders.details.Strategy
-
@Deprecated public class Strategy extends Object
Deprecated.This class represents a Strategy which will consist of one or more orders. Instances of this class should be created by callingStrategyBuilder.build()
rather than instantiated directly.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
equals(Object o)
Deprecated.Account
getAccount()
Deprecated.ActivationDate
getActivationDate()
Deprecated.Set<AlertType>
getAlertTypes()
Deprecated.String
getCurrencyPair()
Deprecated.ExpirationDate
getExpirationDate()
Deprecated.String
getField(String field)
Deprecated.Returns the value of the given field.Map<String,String>
getFields()
Deprecated.Returns the fields directly related to this strategy.String
getMemo()
Deprecated.Order
getOrderByLegID(int legID)
Deprecated.Returns the order associated with this strategy that has the provided leg ID.List<Order>
getOrders()
Deprecated.Returns the set of orders associated with this strategy.Strategy
getPreviousStrategy()
Deprecated.String
getRemarks()
Deprecated.String
getRequestID()
Deprecated.String
getTOBOUser()
Deprecated.StrategyType
getType()
Deprecated.String
getUsername()
Deprecated.boolean
hasAccountChanged()
Deprecated.boolean
hasActivationDateChanged()
Deprecated.boolean
hasAlertTypesChanged()
Deprecated.boolean
hasCurrencyPairChanged()
Deprecated.boolean
hasExpirationDateChanged()
Deprecated.boolean
hasFieldChanged(String fieldName)
Deprecated.int
hashCode()
Deprecated.boolean
hasMemoChanged()
Deprecated.boolean
hasRemarksChanged()
Deprecated.boolean
hasRequestIDChanged()
Deprecated.boolean
hasStrategyChanged()
Deprecated.boolean
hasStrategyEditableFieldsChanged()
Deprecated.boolean
hasTypeChanged()
Deprecated.boolean
hasUsernameChanged()
Deprecated.String
toString()
Deprecated.
-
-
-
Method Detail
-
getField
public String getField(String field)
Deprecated.Returns the value of the given field.- Parameters:
field
- The name of the field to retrieve the value for.- Returns:
- the value of the given field.
-
getFields
public Map<String,String> getFields()
Deprecated.Returns the fields directly related to this strategy.- Returns:
- the fields directly related to this strategy.
-
getOrders
public List<Order> getOrders()
Deprecated.Returns the set of orders associated with this strategy.- Returns:
- A map of orders associated with this strategy.
- See Also:
Order
-
getOrderByLegID
public Order getOrderByLegID(int legID)
Deprecated.Returns the order associated with this strategy that has the provided leg ID.- Parameters:
legID
- The leg ID to use for finding the order.- Returns:
- The order with the provided leg ID, or null if no such order can be found.
- See Also:
Order
-
getRequestID
public String getRequestID()
Deprecated.
-
hasRequestIDChanged
public boolean hasRequestIDChanged()
Deprecated.
-
getUsername
public String getUsername()
Deprecated.
-
hasUsernameChanged
public boolean hasUsernameChanged()
Deprecated.
-
getTOBOUser
public String getTOBOUser()
Deprecated.
-
getAccount
public Account getAccount()
Deprecated.
-
hasAccountChanged
public boolean hasAccountChanged()
Deprecated.
-
getCurrencyPair
public String getCurrencyPair()
Deprecated.
-
hasCurrencyPairChanged
public boolean hasCurrencyPairChanged()
Deprecated.
-
getActivationDate
public ActivationDate getActivationDate()
Deprecated.
-
hasActivationDateChanged
public boolean hasActivationDateChanged()
Deprecated.
-
getExpirationDate
public ExpirationDate getExpirationDate()
Deprecated.
-
hasExpirationDateChanged
public boolean hasExpirationDateChanged()
Deprecated.
-
getType
public StrategyType getType()
Deprecated.
-
hasTypeChanged
public boolean hasTypeChanged()
Deprecated.
-
hasAlertTypesChanged
public boolean hasAlertTypesChanged()
Deprecated.
-
getRemarks
public String getRemarks()
Deprecated.
-
hasRemarksChanged
public boolean hasRemarksChanged()
Deprecated.
-
getMemo
public String getMemo()
Deprecated.
-
hasMemoChanged
public boolean hasMemoChanged()
Deprecated.
-
hasStrategyChanged
public boolean hasStrategyChanged()
Deprecated.
-
hasStrategyEditableFieldsChanged
public boolean hasStrategyEditableFieldsChanged()
Deprecated.
-
getPreviousStrategy
public Strategy getPreviousStrategy()
Deprecated.
-
hasFieldChanged
public boolean hasFieldChanged(String fieldName)
Deprecated.
-
-