public class ChangeActiveState extends MotifTrade
An instance of this object represents a request from the client to change the state of an existing order.
trade
Constructor and Description |
---|
ChangeActiveState(com.caplin.trading.Trade trade,
String parentOrderID,
String orderID,
ActiveState newState)
Constructs the ChangeActiveState with a trade object from the underlying
trading datasource that contains the fields and the state model representing the
clients request to change the state of an already existing order.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
OrderChangeStateSentResponder |
getChangeStateSentResponder()
Returns the responder that can trigger events from the ChangeStateSent state.
|
OrderChangingStateResponder |
getChangingStateResponder()
Returns the responder that can trigger events from the ChangingState state.
|
ActiveState |
getNewState()
Returns an instance of ActiveState which represents the new state
that the client wants the order to change to.
|
String |
getOrderID()
The id of the order that client wants to change the state of
|
String |
getParentOrderID()
ParentOrderID is optional and might be not defined
|
int |
hashCode() |
createEvent, getCurrentState, getField, getRequestID, getTradeChannelSubject, getUsername, sendEvent, toString
public ChangeActiveState(com.caplin.trading.Trade trade, String parentOrderID, String orderID, ActiveState newState)
Constructs the ChangeActiveState with a trade object from the underlying trading 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
trade
- The underlying trade from the trading 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.public OrderChangeStateSentResponder getChangeStateSentResponder()
public OrderChangingStateResponder getChangingStateResponder()
public String getParentOrderID()
public String getOrderID()
public ActiveState getNewState()
Copyright © 2015 Caplin Systems.