Class PostTradeAllocationList
- java.lang.Object
-
- com.caplin.motif.UserTrade
-
- com.caplin.motif.fx.trading.allocation.PostTradeAllocationList
-
public class PostTradeAllocationList extends UserTrade
Represents a list of allocations that were received in the allocation request for the trade represented bygetTradeID()
.
-
-
Constructor Summary
Constructors Constructor Description PostTradeAllocationList(com.caplin.trading.Trade trade, java.util.concurrent.ScheduledExecutorService executorService, java.lang.String tradeId, BuySell buySell, java.util.List<PostTradeAllocation> allocations)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<PostTradeAllocation>
getAllocations()
Returns the list ofPostTradeAllocation
s that were recieved with this request.BuySell
getBuySell()
Returns whether or not the original trade was a BUY or SELL.ClientCloseSentResponder
getClientCloseSentResponder()
Returns the responder that should be used to respond from within the ClientCloseSent state.PendingAllocationResponder
getPendingAllocationResponder()
Returns the responder that should be used to respond from within the PendingAllocation state.QueuedResponder
getQueuedResponder()
Returns the responder that should be used to respond from within the Queued state.SubmittedResponder
getSubmittedResponder()
Returns the responder that should be used to respond from within the Submitted state.java.lang.String
getTradeID()
Returns the trade id of the original trade that should be allocated as per this list.-
Methods inherited from class com.caplin.motif.UserTrade
getBackingTrade, getExecutorService, getRequestID, getUsername, toString
-
-
-
-
Constructor Detail
-
PostTradeAllocationList
public PostTradeAllocationList(com.caplin.trading.Trade trade, java.util.concurrent.ScheduledExecutorService executorService, java.lang.String tradeId, BuySell buySell, java.util.List<PostTradeAllocation> allocations)
-
-
Method Detail
-
getTradeID
public java.lang.String getTradeID()
Returns the trade id of the original trade that should be allocated as per this list.- Returns:
- the trade id.
-
getBuySell
public BuySell getBuySell()
Returns whether or not the original trade was a BUY or SELL.- Returns:
- Either buy or sell.
-
getAllocations
public java.util.List<PostTradeAllocation> getAllocations()
Returns the list ofPostTradeAllocation
s that were recieved with this request.- Returns:
- The list of allocations.
-
getSubmittedResponder
public SubmittedResponder getSubmittedResponder()
Returns the responder that should be used to respond from within the Submitted state.- Returns:
- The responder for the Submitted state
-
getClientCloseSentResponder
public ClientCloseSentResponder getClientCloseSentResponder()
Returns the responder that should be used to respond from within the ClientCloseSent state.- Returns:
- The responder for the ClientCloseSent state
-
getQueuedResponder
public QueuedResponder getQueuedResponder()
Returns the responder that should be used to respond from within the Queued state.- Returns:
- The responder for the Queued state
-
getPendingAllocationResponder
public PendingAllocationResponder getPendingAllocationResponder()
Returns the responder that should be used to respond from within the PendingAllocation state.- Returns:
- The responder for the PendingAllocation state
-
-