com.dxfeed.event.market
Class MarketEvent

java.lang.Object
  extended by com.dxfeed.event.market.MarketEvent
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
Greeks, Order, Profile, Quote, Summary, TheoPrice, TimeAndSale, Trade

@EventType
public abstract class MarketEvent
extends Object
implements Serializable

Abstract base class for all market events. All market events are plain java objects that extend this class. Market event classes are simple beans with setter and getter methods for their properties and minimal business logic. All market events have eventSymbol property that is defined by this class.

Market events are Quote, Trade, TimeAndSale, Summary, Profile, and Order. Event symbol for a market event is a market symbol String. See MarketEventSymbols class for a description of market event symbology.

See Also:
Serialized Form

Constructor Summary
protected MarketEvent()
          Protected constructor for concrete implementation classes.
protected MarketEvent(String eventSymbol)
          Protected constructor for concrete implementation classes that initializes eventSymbol property.
 
Method Summary
 String getEventSymbol()
          Returns symbol for this event.
 void setEventSymbol(String eventSymbol)
          Changes symbol for this event.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MarketEvent

protected MarketEvent()
Protected constructor for concrete implementation classes.


MarketEvent

protected MarketEvent(String eventSymbol)
Protected constructor for concrete implementation classes that initializes eventSymbol property.

Parameters:
eventSymbol - the event symbol.
Method Detail

getEventSymbol

public String getEventSymbol()
Returns symbol for this event.


setEventSymbol

public void setEventSymbol(String eventSymbol)
Changes symbol for this event.



Copyright © 2013 Devexperts. All Rights Reserved.