Class ChangeActiveState
java.lang.Object
com.caplin.motif.UserTrade
com.caplin.motif.fx.trading.orders.activestatechange.ChangeActiveState
Deprecated.
An instance of this object represents a request from the client to change the state of an existing order.
-
Constructor Summary
ConstructorDescriptionChangeActiveState
(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. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Deprecated.Deprecated.Returns the responder that can trigger events from the ChangeStateSent state.Deprecated.Returns the responder that can trigger events from the ChangingState state.Deprecated.Returns an instance of ActiveState which represents the new state that the client wants the order to change to.Deprecated.The id of the order that client wants to change the state ofDeprecated.ParentOrderID is optional and might be not definedint
hashCode()
Deprecated.Methods inherited from class com.caplin.motif.UserTrade
getBackingTrade, getExecutorService, getRequestID, getUsername, toString
-
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
Deprecated.Returns the responder that can trigger events from the ChangeStateSent state.- Returns:
- the responder that can trigger events from the ChangeStateSent state.
-
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
Deprecated.ParentOrderID is optional and might be not defined- Returns:
- parentOrderId or null (if parentOrderId is not defined)
-
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
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. -
equals
Deprecated.
-