org.mule.example.cep
Class StockTick

java.lang.Object
  extended by org.mule.example.cep.StockTick

public class StockTick
extends Object

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

Author:
etirelli

Constructor Summary
StockTick(String symbol, double price, long timestamp)
           
 
Method Summary
 double getDelta()
           
 double getPrice()
           
 String getSymbol()
           
 long getTimestamp()
           
static String percent(double number)
           
 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)

percent

public static String percent(double number)


Copyright © 2003-2012 MuleSoft, Inc.. All Rights Reserved.