Class IncreasedAckTradeEvent
- java.lang.Object
-
- com.caplin.generated.motif.mm.trading.mmcapitalincrease.events.server.IncreasedAckTradeEvent
-
- All Implemented Interfaces:
MMCapitalIncreasedSummaryServerFieldSet
,Message
public class IncreasedAckTradeEvent extends java.lang.Object implements MMCapitalIncreasedSummaryServerFieldSet, Message
A single event acting on a MMCapitalIncreaseTrade.
The event may be client generated and received through the respective RFSTradeListener interface or it may be generated by custom code to be sent to the client.
A MMCapitalIncreaseTradeEvent is created using the
MMCapitalIncreaseTrade
it relates to.A MMCapitalIncreaseTradeEvent represents a message sent by the server.
-
-
Constructor Summary
Constructors Constructor Description IncreasedAckTradeEvent(MMCapitalIncreaseTrade trade)
IncreasedAckTradeEvent(MMCapitalIncreaseTrade trade, Message msg)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addField(java.lang.String fieldName, java.lang.Object value)
Adds a field to this Event.void
addFields(java.util.Map<java.lang.String,?> fields)
Adds a map of fields and their values to this eventcom.caplin.trading.TradeEvent
getBackingEvent()
java.util.Map<java.lang.String,java.lang.String>
getFields()
void
setInitialTimestamp(java.util.Date date)
Sets LTY_INIT_TS field to this TradeEvent.java.lang.String
toString()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.caplin.generated.motif.mm.trading.fieldsets.MMCapitalIncreasedSummaryServerFieldSet
setCurrency, setIncreasedAmount, setMaturityDate, setOriginalAmount, setPrincipalAmount, setStartDate, setTradeID, setTradingType
-
-
-
-
Constructor Detail
-
IncreasedAckTradeEvent
public IncreasedAckTradeEvent(MMCapitalIncreaseTrade trade)
-
IncreasedAckTradeEvent
public IncreasedAckTradeEvent(MMCapitalIncreaseTrade trade, Message msg)
-
-
Method Detail
-
getFields
public java.util.Map<java.lang.String,java.lang.String> getFields()
-
addField
public void addField(java.lang.String fieldName, java.lang.Object value)
Adds a field to this Event.- Specified by:
addField
in interfaceMMCapitalIncreasedSummaryServerFieldSet
- Parameters:
fieldName
- The name of the field to add.value
- The value of the field to add. If the value is a BigDecimal then it will be converted to aString
usingBigDecimal.toPlainString()
-
addFields
public void addFields(java.util.Map<java.lang.String,?> fields)
Adds a map of fields and their values to this event- Parameters:
fields
- A map of field names to values to be added to the event. If the value is a BigDecimal then it will be converted to aString
usingBigDecimal.toPlainString()
-
setInitialTimestamp
public void setInitialTimestamp(java.util.Date date)
Sets LTY_INIT_TS field to this TradeEvent.- Parameters:
date
- The time the LTY_INIT_TS field will be set to.
-
getBackingEvent
public com.caplin.trading.TradeEvent getBackingEvent()
- Returns:
- Get the
TradeEvent
backing this event
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-