|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.metaqtl.algo.MetaAlgorithm
public abstract class MetaAlgorithm
Field Summary | |
---|---|
protected java.io.PrintStream |
logger
The logger. |
protected boolean |
loggerUp
The logger status. |
protected int |
workAmount
The amount of work to do. |
protected int |
workProgress
The amount of work done. |
Constructor Summary | |
---|---|
MetaAlgorithm()
|
Method Summary | |
---|---|
void |
disableLogger()
|
protected java.io.PrintStream |
getLogger()
Returns the logger for this algorithm as a PrintStream . |
int |
getWorkAmount()
Returns the amount of the work to do. |
int |
getWorkProgress()
Returns the amount of work which have already been done. |
boolean |
isLoggerEnable()
|
void |
setLogger(java.io.OutputStream stream)
Give a OutputStream to the algorithm
in order to write out the log info. |
void |
setLogger(java.io.Writer writer)
Give a Writer to the algorithm
in order to write out the log info. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.metaqtl.IMetaAlgorithm |
---|
run |
Field Detail |
---|
protected int workAmount
protected int workProgress
protected java.io.PrintStream logger
protected boolean loggerUp
Constructor Detail |
---|
public MetaAlgorithm()
Method Detail |
---|
public int getWorkAmount()
IMetaAlgorithm
getWorkAmount
in interface IMetaAlgorithm
public int getWorkProgress()
IMetaAlgorithm
getWorkProgress
in interface IMetaAlgorithm
public void setLogger(java.io.Writer writer)
IMetaAlgorithm
Writer
to the algorithm
in order to write out the log info. The user
is responsible for closing the stream.
setLogger
in interface IMetaAlgorithm
public void setLogger(java.io.OutputStream stream)
IMetaAlgorithm
OutputStream
to the algorithm
in order to write out the log info. The user
is responsible for closing the stream.
setLogger
in interface IMetaAlgorithm
protected java.io.PrintStream getLogger()
PrintStream
. If any logger has
been previously defined then the method returns
the default logger, i.e System.err
public void disableLogger()
public boolean isLoggerEnable()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |