|
| TickerFeed (int num_companies, int num_days) |
|
Processor | duplicate (boolean with_state) |
|
|
static final String | upper = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" |
|
|
String | randomString (int length) |
| Generates a random string of given length. More...
|
|
boolean | compute (Object[] inputs, Queue< Object[]> outputs) |
|
|
String [] | m_symbolNames |
|
float [] | m_lastValues |
|
Random | m_random |
|
int | m_computeCount |
|
int | m_maxDays = 0 |
|
|
static final String [] | m_realNames = {"MSFT", "GOGL", "APPL", "AMZN", "RHT", "IBM", "DVMT"} |
|
Definition at line 8 of file TickerFeed.java.
◆ randomString()
String stockticker.TickerFeed.randomString |
( |
int |
length | ) |
|
|
protected |
Generates a random string of given length.
- Parameters
-
length | The length of the string |
- Returns
- The string
Definition at line 56 of file TickerFeed.java.
58 StringBuilder sb =
new StringBuilder();
59 for (
int i = 0; i < length; i++)
61 sb.append(upper.charAt(m_random.nextInt(25)));
The documentation for this class was generated from the following file: