C# Class Wombat.MamdaAuctionListener

MamdaAuctionListener is a class that specializes in handling Auction updates. Developers provide their own implementation of the MamdaAuctionHandler interface and will be delivered notifications for Auctions and Auction closing prices. An obvious application for this MAMDA class is any kind of Auction tick capture application.
Note: The MamdaAuctionListener class caches Auction-related field values. Among other reasons, caching of these fields makes it possible to provide complete Auction-related callbacks, even when the publisher (e.g., feed handler) is only publishing deltas containing modified fields.
Inheritance: MamdaMsgListener, MamdaAuctionRecap, MamdaAuctionUpdate
ファイルを表示 Open project: OpenMAMA/OpenMAMA Class Usage Examples

Public Methods

Method Description
MamdaAuctionListener ( ) : System

Create a specialized Auction listener. This listener handles Auction updates, quote recaps, and Auction gap notifications.

addHandler ( MamdaAuctionHandler handler ) : void

Add a specialized Auction handler. Currently, only one handler can (and must) be registered.

getActivityTime ( ) : System.DateTime
getActivityTimeFieldState ( ) : MamdaFieldState
getEventSeqNum ( ) : long
getEventSeqNumFieldState ( ) : MamdaFieldState
getEventTime ( ) : System.DateTime
getEventTimeFieldState ( ) : MamdaFieldState
getFieldAsString ( Wombat.MamaMsgField field ) : string
getLineTime ( ) : System.DateTime
getLineTimeFieldState ( ) : MamdaFieldState
getPartId ( ) : string
getPartIdFieldState ( ) : MamdaFieldState
getSendTime ( ) : System.DateTime
getSendTimeFieldState ( ) : MamdaFieldState
getSrcTime ( ) : System.DateTime
getSrcTimeFieldState ( ) : MamdaFieldState
getSymbol ( ) : string
getSymbolFieldState ( ) : MamdaFieldState
getUncrossPrice ( ) : Wombat.MamaPrice
getUncrossPriceFieldState ( ) : MamdaFieldState
getUncrossPriceInd ( ) : long
getUncrossPriceIndFieldState ( ) : MamdaFieldState
getUncrossVolume ( ) : double
getUncrossVolumeFieldState ( ) : MamdaFieldState
onMsg ( MamdaSubscription subscription, MamaMsg msg, mamaMsgType msgType ) : void

Private Methods

Method Description
addToUpdatersList ( AuctionUpdate updaters, Wombat.MamaFieldDescriptor fieldDesc, AuctionUpdate updater ) : void
clearCache ( MamdaAuctionCache cache ) : void
createUpdaters ( ) : AuctionUpdate[]
handleAuctionMessage ( MamdaSubscription subscription, MamaMsg msg, mamaMsgType msgType ) : void
handleRecap ( MamdaSubscription subscription, MamaMsg msg ) : void
handleUpdate ( MamdaSubscription subscription, MamaMsg msg ) : void
updateFieldStates ( ) : void

Method Details

MamdaAuctionListener() public method

Create a specialized Auction listener. This listener handles Auction updates, quote recaps, and Auction gap notifications.
public MamdaAuctionListener ( ) : System
return System

addHandler() public method

Add a specialized Auction handler. Currently, only one handler can (and must) be registered.
public addHandler ( MamdaAuctionHandler handler ) : void
handler MamdaAuctionHandler
return void

getActivityTime() public method

public getActivityTime ( ) : System.DateTime
return System.DateTime

getActivityTimeFieldState() public method

public getActivityTimeFieldState ( ) : MamdaFieldState
return MamdaFieldState

getEventSeqNum() public method

public getEventSeqNum ( ) : long
return long

getEventSeqNumFieldState() public method

public getEventSeqNumFieldState ( ) : MamdaFieldState
return MamdaFieldState

getEventTime() public method

public getEventTime ( ) : System.DateTime
return System.DateTime

getEventTimeFieldState() public method

public getEventTimeFieldState ( ) : MamdaFieldState
return MamdaFieldState

getFieldAsString() public method

public getFieldAsString ( Wombat.MamaMsgField field ) : string
field Wombat.MamaMsgField
return string

getLineTime() public method

public getLineTime ( ) : System.DateTime
return System.DateTime

getLineTimeFieldState() public method

public getLineTimeFieldState ( ) : MamdaFieldState
return MamdaFieldState

getPartId() public method

public getPartId ( ) : string
return string

getPartIdFieldState() public method

public getPartIdFieldState ( ) : MamdaFieldState
return MamdaFieldState

getSendTime() public method

public getSendTime ( ) : System.DateTime
return System.DateTime

getSendTimeFieldState() public method

public getSendTimeFieldState ( ) : MamdaFieldState
return MamdaFieldState

getSrcTime() public method

public getSrcTime ( ) : System.DateTime
return System.DateTime

getSrcTimeFieldState() public method

public getSrcTimeFieldState ( ) : MamdaFieldState
return MamdaFieldState

getSymbol() public method

public getSymbol ( ) : string
return string

getSymbolFieldState() public method

public getSymbolFieldState ( ) : MamdaFieldState
return MamdaFieldState

getUncrossPrice() public method

public getUncrossPrice ( ) : Wombat.MamaPrice
return Wombat.MamaPrice

getUncrossPriceFieldState() public method

public getUncrossPriceFieldState ( ) : MamdaFieldState
return MamdaFieldState

getUncrossPriceInd() public method

public getUncrossPriceInd ( ) : long
return long

getUncrossPriceIndFieldState() public method

public getUncrossPriceIndFieldState ( ) : MamdaFieldState
return MamdaFieldState

getUncrossVolume() public method

public getUncrossVolume ( ) : double
return double

getUncrossVolumeFieldState() public method

public getUncrossVolumeFieldState ( ) : MamdaFieldState
return MamdaFieldState

onMsg() public method

public onMsg ( MamdaSubscription subscription, MamaMsg msg, mamaMsgType msgType ) : void
subscription MamdaSubscription
msg MamaMsg
msgType mamaMsgType
return void