net.commerce.zocalo.ajax.events
Class LimitTrade

java.lang.Object
  extended by org.apache.log4j.spi.LoggingEvent
      extended by net.commerce.zocalo.ajax.events.Action
          extended by net.commerce.zocalo.ajax.events.PriceAction
              extended by net.commerce.zocalo.ajax.events.Trade
                  extended by net.commerce.zocalo.ajax.events.LimitTrade
All Implemented Interfaces:
java.io.Serializable

public class LimitTrade
extends Trade

Action representing the fact that a user traded with the order book.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class net.commerce.zocalo.ajax.events.PriceAction
PriceAction.TimeComparator
 
Field Summary
 
Fields inherited from class org.apache.log4j.spi.LoggingEvent
categoryName, fqnOfCategoryClass, level, timeStamp
 
Constructor Summary
LimitTrade()
          Deprecated.  
LimitTrade(java.lang.String trader, Price price, Quantity quantity, Position pos, org.apache.log4j.Logger logger)
          Deprecated. TEST ONLY
 
Method Summary
protected  java.lang.String actionString()
           
 boolean isBuy()
           
static LimitTrade newLimitTrade(java.lang.String trader, Price price, Quantity quantity, Position pos)
           
 
Methods inherited from class net.commerce.zocalo.ajax.events.Trade
callBackPublish
 
Methods inherited from class net.commerce.zocalo.ajax.events.PriceAction
getActionLogger, getGID, getNaturalPrice, getOwner, getPos, getPosition, getPrice, getQuantity, getTime, setPos, setTime, timeAndPrice, timeAndPriceInverted, timeAndVolume, toLogString
 
Methods inherited from class net.commerce.zocalo.ajax.events.Action
getRenderedMessage, toString
 
Methods inherited from class org.apache.log4j.spi.LoggingEvent
getFQNOfLoggerClass, getLevel, getLocationInformation, getLogger, getLoggerName, getMDC, getMDCCopy, getMessage, getNDC, getProperties, getProperty, getPropertyKeySet, getStartTime, getThreadName, getThrowableInformation, getThrowableStrRep, getTimeStamp, locationInformationExists, setProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LimitTrade

public LimitTrade(java.lang.String trader,
                  Price price,
                  Quantity quantity,
                  Position pos,
                  org.apache.log4j.Logger logger)
Deprecated. TEST ONLY


LimitTrade

public LimitTrade()
Deprecated. 

Method Detail

newLimitTrade

public static LimitTrade newLimitTrade(java.lang.String trader,
                                       Price price,
                                       Quantity quantity,
                                       Position pos)

actionString

protected java.lang.String actionString()
Overrides:
actionString in class Trade

isBuy

public boolean isBuy()
Specified by:
isBuy in class Trade