net.commerce.zocalo.ajax.events
Class PriceAction

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
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
Ask, BestAsk, BestBid, Bid, OrderRemoval, Redemption, SelfDealing, Trade

public abstract class PriceAction
extends Action

base class of actions that represent price changes. This class hierarchy makes use of log4j. Leaf descendents (other than those provided solely for Hibernate) MUST call log() at end of construction.

See Also:
Serialized Form

Nested Class Summary
static class PriceAction.TimeComparator
           
 
Field Summary
 
Fields inherited from class org.apache.log4j.spi.LoggingEvent
categoryName, fqnOfCategoryClass, level, timeStamp
 
Constructor Summary
protected PriceAction(org.apache.log4j.Logger logger)
           
protected PriceAction(java.lang.String owner, Price price, Quantity quantity, Position pos, org.apache.log4j.Logger logger)
           
 
Method Summary
protected abstract  java.lang.String actionString()
           
static org.apache.log4j.Logger getActionLogger()
           
protected  java.lang.String getGID()
           
 Price getNaturalPrice()
           
 java.lang.String getOwner()
           
 Position getPos()
           
protected  java.lang.String getPosition(Position position)
           
 Price getPrice()
           
 Quantity getQuantity()
           
 java.util.Date getTime()
           
 void setPos(Position pos)
          Deprecated.  
 void setTime(java.util.Date time)
          Deprecated.  
 org.jfree.data.time.TimePeriodValue timeAndPrice()
           
 org.jfree.data.time.TimePeriodValue timeAndPriceInverted()
           
 org.jfree.data.time.TimePeriodValue timeAndVolume()
           
 java.lang.String toLogString()
           
 
Methods inherited from class net.commerce.zocalo.ajax.events.Action
callBackPublish, 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

PriceAction

protected PriceAction(org.apache.log4j.Logger logger)

PriceAction

protected PriceAction(java.lang.String owner,
                      Price price,
                      Quantity quantity,
                      Position pos,
                      org.apache.log4j.Logger logger)
Method Detail

getActionLogger

public static org.apache.log4j.Logger getActionLogger()

toLogString

public java.lang.String toLogString()
Specified by:
toLogString in class Action

getGID

protected java.lang.String getGID()

getPosition

protected java.lang.String getPosition(Position position)

actionString

protected abstract java.lang.String actionString()

timeAndPrice

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

timeAndPriceInverted

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

timeAndVolume

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

getNaturalPrice

public Price getNaturalPrice()

getPos

public Position getPos()

getOwner

public java.lang.String getOwner()

getPrice

public Price getPrice()

getQuantity

public Quantity getQuantity()

getTime

public java.util.Date getTime()

setTime

public void setTime(java.util.Date time)
Deprecated. 


setPos

public void setPos(Position pos)
Deprecated.