|
Algernon Software | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.algernon.aam.Tracer
Tracer provides methods for tracing execution in the AAM.
Processor
Field Summary | |
static int |
ALWAYS
A trace level that always prints. |
static LispValue |
ALWAYS_STRING
|
static int |
DEBUG
A trace level for debugging. |
static LispValue |
DEBUG_STRING
|
static int |
DETAIL
Trace level that prints detailed information. |
static LispValue |
DETAIL_STRING
|
private Jatha |
f_lisp
|
private boolean |
f_stepMode
|
protected Processor |
m_processor
|
protected Set |
m_rulesTraced
|
static int |
NORMAL
Normal trace level. |
static LispValue |
NORMAL_STRING
|
static int |
SILENT
A trace level that is very quiet. |
static LispValue |
SILENT_STRING
|
static int |
VERBOSE
A little more detail than normal. |
static LispValue |
VERBOSE_STRING
|
Constructor Summary | |
Tracer(Processor processor)
Creates a new Tracer object. |
Method Summary | |
boolean |
getStepMode()
Returns true if the tracer is in Step mode. |
boolean |
isRuleTraced(Rule rule)
Returns true if the given rule is currently traced. |
void |
setStepMode(boolean newState)
Turns Step mode on or off. |
static int |
toInt(LispValue traceLevelString)
Returns the given trace level as an int. |
static LispValue |
toString(int traceLevel)
Returns the given trace level as a LISP symbol. |
protected void |
trace(String message,
boolean newline)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int ALWAYS
public static LispValue ALWAYS_STRING
public static final int SILENT
public static LispValue SILENT_STRING
public static final int NORMAL
public static LispValue NORMAL_STRING
public static final int VERBOSE
public static LispValue VERBOSE_STRING
public static final int DETAIL
public static LispValue DETAIL_STRING
public static final int DEBUG
public static LispValue DEBUG_STRING
protected Set m_rulesTraced
protected Processor m_processor
private Jatha f_lisp
private boolean f_stepMode
Constructor Detail |
public Tracer(Processor processor)
Method Detail |
protected void trace(String message, boolean newline)
public boolean isRuleTraced(Rule rule)
public static LispValue toString(int traceLevel)
public static int toInt(LispValue traceLevelString)
public boolean getStepMode()
(:TRACE :STEP) turns step mode on. (:TRACE :RUN) turns it off.
public void setStepMode(boolean newState)
(:TRACE :STEP) turns step mode on. (:TRACE :RUN) turns it off.
|
Algernon Software | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |