public class Cancel extends Order
Cancel is performed in terms of Order's agentId and orderId.
When a cancel request is accepted, any orders having the agentId and orderId will be cancelled.
To be cancelleable, the orderId must be > 0 (which is 0 by default).
One (Agent) should assign a unique orderId for each order if needed.
The cancel behavior when using the same orderId more than once is undefined.
KIND_BUY_LIMIT_ORDER, KIND_BUY_MARKET_ORDER, KIND_SELL_LIMIT_ORDER, KIND_SELL_MARKET_ORDER, NO_PRICE, agentId, kind, marketId, orderId, price, timeLength, timePlaced, volumegetKindName, getPrice, getVolume, isBuyOrder, isCancel, isExpired, isExpired, isLimitOrder, isMarketOrder, isSellOrder, setPrice, setVolume, toString, updateVolumepublic Cancel(Order order)