Class Strategy
- java.lang.Object
-
- com.caplin.motif.fx.trading.orders.details.Strategy
-
@Deprecated public class Strategy extends java.lang.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(java.lang.Object o)
Deprecated.Account
getAccount()
Deprecated.ActivationDate
getActivationDate()
Deprecated.java.util.Set<AlertType>
getAlertTypes()
Deprecated.java.lang.String
getCurrencyPair()
Deprecated.ExpirationDate
getExpirationDate()
Deprecated.java.lang.String
getField(java.lang.String field)
Deprecated.Returns the value of the given field.java.util.Map<java.lang.String,java.lang.String>
getFields()
Deprecated.Returns the fields directly related to this strategy.java.lang.String
getMemo()
Deprecated.Order
getOrderByLegID(int legID)
Deprecated.Returns the order associated with this strategy that has the provided leg ID.java.util.List<Order>
getOrders()
Deprecated.Returns the set of orders associated with this strategy.Strategy
getPreviousStrategy()
Deprecated.java.lang.String
getRemarks()
Deprecated.java.lang.String
getRequestID()
Deprecated.java.lang.String
getTOBOUser()
Deprecated.StrategyType
getType()
Deprecated.java.lang.String
getUsername()
Deprecated.boolean
hasAccountChanged()
Deprecated.boolean
hasActivationDateChanged()
Deprecated.boolean
hasAlertTypesChanged()
Deprecated.boolean
hasCurrencyPairChanged()
Deprecated.boolean
hasExpirationDateChanged()
Deprecated.boolean
hasFieldChanged(java.lang.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.java.lang.String
toString()
Deprecated.
-
-
-
Method Detail
-
getField
public java.lang.String getField(java.lang.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 java.util.Map<java.lang.String,java.lang.String> getFields()
Deprecated.Returns the fields directly related to this strategy.- Returns:
- the fields directly related to this strategy.
-
getOrders
public java.util.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 java.lang.String getRequestID()
Deprecated.
-
hasRequestIDChanged
public boolean hasRequestIDChanged()
Deprecated.
-
getUsername
public java.lang.String getUsername()
Deprecated.
-
hasUsernameChanged
public boolean hasUsernameChanged()
Deprecated.
-
getTOBOUser
public java.lang.String getTOBOUser()
Deprecated.
-
getAccount
public Account getAccount()
Deprecated.
-
hasAccountChanged
public boolean hasAccountChanged()
Deprecated.
-
getCurrencyPair
public java.lang.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.
-
getAlertTypes
public java.util.Set<AlertType> getAlertTypes()
Deprecated.
-
hasAlertTypesChanged
public boolean hasAlertTypesChanged()
Deprecated.
-
getRemarks
public java.lang.String getRemarks()
Deprecated.
-
hasRemarksChanged
public boolean hasRemarksChanged()
Deprecated.
-
getMemo
public java.lang.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(java.lang.String fieldName)
Deprecated.
-
equals
public boolean equals(java.lang.Object o)
Deprecated.- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
Deprecated.- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
Deprecated.- Overrides:
toString
in classjava.lang.Object
-
-