net.commerce.zocalo.ajax.events
Class MakerTrade

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.MakerTrade
All Implemented Interfaces:
java.io.Serializable

public class MakerTrade
extends Trade

Action representing the fact that a user traded with the Market Maker.

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
MakerTrade()
          Deprecated.  
 
Method Summary
protected  java.lang.String actionString()
           
 org.jfree.data.time.TimePeriodValue closeValue()
           
 Price getClosingPrice()
          Deprecated.  
 Price getOpeningPrice()
          Deprecated.  
 boolean isBuy()
           
static MakerTrade newMakerTrade(java.lang.String trader, Price price, Quantity quant, Position pos, Price open, Price close)
           
 org.jfree.data.time.TimePeriodValue openValue()
           
 void setClosingPrice(Price closingPrice)
          Deprecated.  
 void setOpeningPrice(Price openingPrice)
          Deprecated.  
 org.jfree.data.time.TimePeriodValue timeAndPrice()
           
 org.jfree.data.time.TimePeriodValue timeAndPriceInverted()
           
 java.lang.String toLogString()
           
 
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, timeAndVolume
 
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

MakerTrade

public MakerTrade()
Deprecated. 

Method Detail

timeAndPrice

public org.jfree.data.time.TimePeriodValue timeAndPrice()
Overrides:
timeAndPrice in class PriceAction

timeAndPriceInverted

public org.jfree.data.time.TimePeriodValue timeAndPriceInverted()
Overrides:
timeAndPriceInverted in class PriceAction

newMakerTrade

public static MakerTrade newMakerTrade(java.lang.String trader,
                                       Price price,
                                       Quantity quant,
                                       Position pos,
                                       Price open,
                                       Price close)

openValue

public org.jfree.data.time.TimePeriodValue openValue()

closeValue

public org.jfree.data.time.TimePeriodValue closeValue()

toLogString

public java.lang.String toLogString()
Overrides:
toLogString in class PriceAction

actionString

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

isBuy

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

getClosingPrice

public Price getClosingPrice()
Deprecated. 


setClosingPrice

public void setClosingPrice(Price closingPrice)
Deprecated. 


getOpeningPrice

public Price getOpeningPrice()
Deprecated. 


setOpeningPrice

public void setOpeningPrice(Price openingPrice)
Deprecated.