Class ChangeActiveState

java.lang.Object
com.caplin.motif.UserTrade
com.caplin.motif.fx.trading.orders.activestatechange.ChangeActiveState

@Deprecated public class ChangeActiveState extends UserTrade
Deprecated.

An instance of this object represents a request from the client to change the state of an existing order.

  • Constructor Details

    • ChangeActiveState

      public ChangeActiveState(com.caplin.trading.Trade trade, ScheduledExecutorService executorService, String parentOrderID, String orderID, ActiveState newState)
      Deprecated.

      Constructs the ChangeActiveState with a trade object from the underlying trading com.caplin.motif.datasource that contains the fields and the state model representing the clients request to change the state of an already existing order.

      Note: As a user of the FXIntegrationAPI one is not expected to create this object, but to be passed these in listeners. See OrderChangeActiveStateListener

      Parameters:
      trade - The underlying trade from the trading com.caplin.motif.datasource library.
      parentOrderID - The ID of the parent order if the order to be changed is part of a multi-leg order.
      orderID - The ID of the order that client wants to change the state of.
      newState - The new state that the client wants to change the order to.
  • Method Details

    • getChangeStateSentResponder

      public OrderChangeStateSentResponder getChangeStateSentResponder()
      Deprecated.
      Returns the responder that can trigger events from the ChangeStateSent state.
      Returns:
      the responder that can trigger events from the ChangeStateSent state.
    • getChangingStateResponder

      public OrderChangingStateResponder getChangingStateResponder()
      Deprecated.
      Returns the responder that can trigger events from the ChangingState state.
      Returns:
      the responder that can trigger events from the ChangingState state.
    • getParentOrderID

      public String getParentOrderID()
      Deprecated.
      ParentOrderID is optional and might be not defined
      Returns:
      parentOrderId or null (if parentOrderId is not defined)
    • getOrderID

      public String getOrderID()
      Deprecated.
      The id of the order that client wants to change the state of
      Returns:
      the id of the order that the client wants to change the state of
    • getNewState

      public ActiveState getNewState()
      Deprecated.
      Returns an instance of ActiveState which represents the new state that the client wants the order to change to.
      Returns:
      the new state that the order should change to.
    • hashCode

      public int hashCode()
      Deprecated.
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Deprecated.
      Overrides:
      equals in class Object