public abstract class Reporter
extends java.lang.Object
Reportable
class.Reportable
Constructor and Description |
---|
Reporter(Reportable informationSource)
Creates a reporter for the given reportable information source.
|
Reporter(Schedulable source)
Creates a reporter for the given Schedulable information source.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String[] |
getColumnTitles()
Returns an array of Strings each containing the title for the
corresponding entry in array
entries[] . |
java.lang.String |
getDescription()
Get an optional description of this Reporter's Reportable to be
included in the report.
|
abstract java.lang.String[] |
getEntries()
Returns an array of strings each containing the data for the
corresponding column in array
columns[] . |
int |
getGroupID()
Returns the ID of the group this reporter belongs to.
|
java.lang.String |
getHeading()
Returns the heading for the group this reporter belongs to.
|
Model |
getModel()
Returns the Model that the Reportable belongs to that this reporter
produces a report about.
|
int |
getNumOfSlaveQueues() |
Reportable |
getReportable()
Returns the reportable object that this reporter contains informations
about.
|
boolean |
isContinuingReporter() |
static boolean |
isEqual(Reporter a,
Reporter b)
Compares the ID's of the two given reporters and returns
true if both have the same ID, false if
their ID's are different. |
static boolean |
isLarger(Reporter a,
Reporter b)
Compares the ID's of the two given reporters and returns
true if reporter 'a' has a higher ID than reporter 'b',
false if not. |
static boolean |
isOtherGroup(Reporter a,
Reporter b)
Compares the ID's of the two given reporters and returns
true if reporter 'a' belongs to a different group of ID's
than reporter 'b', false if not. |
static boolean |
isSameGroup(Reporter a,
Reporter b)
Compares the ID's of the two given reporters and returns
true if reporter 'a' belongs to the same group of ID's as
reporter 'b', false if not. |
boolean |
isTwoRowReporter() |
boolean |
makeAdditionalColorEntryIfHTMLColorChartIsGenerated() |
int |
numColumns()
Returns the number of columns or data this reporter is containing.
|
public Reporter(Reportable informationSource)
informationSource
- desmoj.core.simulator.Reportable : The source of information to report
aboutpublic Reporter(Schedulable source)
setCorrespondingReportable(Reportable)
.Schedulable
- desmoj.core.simulator.Schedulable : The Schedulable to report aboutpublic java.lang.String[] getColumnTitles()
entries[]
.public abstract java.lang.String[] getEntries()
columns[]
. Implement this
method the an array of the same length as the columntitles 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 getGroupID()
public java.lang.String getHeading()
public Model getModel()
public Reportable getReportable()
public static boolean isEqual(Reporter a, Reporter b)
true
if both have the same ID, false
if
their ID's are different.a
- desmoj.report.Reporter : comparand ab
- desmoj.report.Reporter : comparand btrue
if both reporter's ID's are the
same, false
if notpublic static boolean isLarger(Reporter a, Reporter b)
true
if reporter 'a' has a higher ID than reporter 'b',
false
if not.a
- desmoj.report.Reporter : comparand ab
- desmoj.report.Reporter : comparand btrue
if reporter 'a' has a higher ID
than reporter 'b', false
if notpublic static boolean isOtherGroup(Reporter a, Reporter b)
true
if reporter 'a' belongs to a different group of ID's
than reporter 'b', false
if not.a
- desmoj.report.Reporter : comparand ab
- desmoj.report.Reporter : comparand btrue
if reporter 'a' has an ID
belonging to a different group than reporter 'b',
false
if notpublic static boolean isSameGroup(Reporter a, Reporter b)
true
if reporter 'a' belongs to the same group of ID's as
reporter 'b', false
if not.a
- desmoj.report.Reporter : comparand ab
- desmoj.report.Reporter : comparand btrue
if reporter 'a' has an ID
belonging to the same group as reporter 'b', false
if notpublic int numColumns()
public java.lang.String getDescription()
public boolean isContinuingReporter()
public boolean isTwoRowReporter()
public int getNumOfSlaveQueues()
public boolean makeAdditionalColorEntryIfHTMLColorChartIsGenerated()