org.jbehave.web.examples.trader.scenarios
Class Stock

java.lang.Object
  extended by org.jbehave.web.examples.trader.scenarios.Stock

public class Stock
extends java.lang.Object


Nested Class Summary
static class Stock.AlertStatus
           
 
Constructor Summary
Stock(java.util.List<java.lang.Double> prices, double alertPrice)
           
 
Method Summary
 java.util.List<java.lang.Double> getPrices()
           
 Stock.AlertStatus getStatus()
           
 void resetAlert()
           
 void tradeAt(double price)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Stock

public Stock(java.util.List<java.lang.Double> prices,
             double alertPrice)
Method Detail

getPrices

public java.util.List<java.lang.Double> getPrices()

tradeAt

public void tradeAt(double price)

resetAlert

public void resetAlert()

getStatus

public Stock.AlertStatus getStatus()


Copyright © 2009. All Rights Reserved.