Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.mandarax.eca.example
Class StockQuote  view StockQuote download StockQuote.java

java.lang.Object
  extended byorg.mandarax.eca.example.StockQuote

public class StockQuote
extends java.lang.Object

Class providing stock quotes for our investments. Currently a dummy, but could be replaced by an implementation that issues HTTP requests (peraps SOAP queries) to an online service.


Field Summary
(package private) static java.util.Random random
           
 
Constructor Summary
StockQuote()
           
 
Method Summary
static double getQuote(Investment inv)
          Get the recent (absolute) change.
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

random

static java.util.Random random
Constructor Detail

StockQuote

public StockQuote()
Method Detail

getQuote

public static double getQuote(Investment inv)
Get the recent (absolute) change.


main

public static void main(java.lang.String[] args)