public class StockReporter extends Reporter
Stock
. That means
from the producer and the consumer queue.Constructor and Description |
---|
StockReporter(Reportable informationSource)
Constructor for a new StockReporter.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String[] |
getEntries()
Returns an array of Strings each containing the data for the
corresponding column in array
columns[] . |
java.lang.String[] |
getStockColumnTitles()
Returns the titles of the wait queues part of this StockReporter as an
array of Strings.
|
java.lang.String[] |
getStockEntries()
Returns an array of Strings each containing the data for the
corresponding column in array
stockColumns[] . |
int |
getStockNumColumns()
Returns the number of columns of the wait queues part of this
StockReporter.
|
boolean |
isContinuingReporter() |
getColumnTitles, getDescription, getGroupID, getHeading, getModel, getNumOfSlaveQueues, getReportable, isEqual, isLarger, isOtherGroup, isSameGroup, isTwoRowReporter, makeAdditionalColorEntryIfHTMLColorChartIsGenerated, numColumns
public StockReporter(Reportable informationSource)
informationSource
- desmoj.core.simulator.Reportable : The Stock to report aboutpublic java.lang.String[] getEntries()
columns[]
. This method is
fetching the data from the master Stock. Implement this method in a way,
that an array of the same length as the column titles is produced
containing the data at the point of time this method is called by someone
else to produce up-to-date information.getEntries
in class Reporter
public java.lang.String[] getStockColumnTitles()
public java.lang.String[] getStockEntries()
stockColumns[]
. This method
is fetching the data from the master Stock. Implement this method in a
way, that an array of the same length as the stockColumns titles is
produced containing the data at the point of time this method is called
by someone else to produce up-to-date information.public int getStockNumColumns()
public boolean isContinuingReporter()
isContinuingReporter
in class Reporter