|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Objecteos.io.printer.Printer
public abstract class Printer
Parent class of all printers
Field Summary | |
---|---|
protected int |
end
ending time step |
protected int |
period
interval (in steps) between two printing |
protected int |
start
starting time step |
Constructor Summary | |
---|---|
Printer(int period)
Create a new printer that prints every period steps from the first step till the last step |
|
Printer(int period,
int start)
Create a new printer that prints every period steps from the start step till the last step |
|
Printer(int period,
int start,
int end)
Create a new printer that prints every period steps from the start step till the end step. |
Method Summary | |
---|---|
abstract void |
cleanup()
Clean up the printer |
int |
getEnd()
Return the ending step of this Printer |
abstract String |
getFileName()
Return the name of the output file. |
int |
getPeriod()
Return the period of this Printer |
int |
getStart()
Return the starting step of this Printer |
abstract void |
print()
Print data, called by Economy at each time step |
abstract void |
printTitles()
Print column titles |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final int period
protected final int start
protected final int end
Constructor Detail |
---|
public Printer(int period, int start, int end)
period
- number of steps between two printsstart
- starting time stepend
- ending time steppublic Printer(int period, int start)
period
- number of steps between two printsstart
- starting time steppublic Printer(int period)
period
- number of steps between two printingMethod Detail |
---|
public int getPeriod()
public int getStart()
public int getEnd()
public abstract void printTitles()
public abstract void print()
public abstract void cleanup()
public abstract String getFileName()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |