org.drools.examples.broker.model
Class StockTick

java.lang.Object
  extended by org.drools.examples.broker.model.StockTick

public class StockTick
extends Object

A stock tick event informing of a state change due to some operation;


Constructor Summary
StockTick(String symbol, double price, long timestamp)
           
 
Method Summary
 double getDelta()
           
 double getPrice()
           
 String getSymbol()
           
 long getTimestamp()
           
 void setDelta(double delta)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StockTick

public StockTick(String symbol,
                 double price,
                 long timestamp)
Method Detail

getSymbol

public String getSymbol()

getPrice

public double getPrice()

getTimestamp

public long getTimestamp()

toString

public String toString()
Overrides:
toString in class Object

getDelta

public double getDelta()

setDelta

public void setDelta(double delta)


Copyright © 2001-2012 JBoss by Red Hat. All Rights Reserved.