|
Venice 0.751beta | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnz.org.venice.parser.AnalyserGuard
This class keeps track of the running time of expressions which can forever The check is done per date
| Field Summary | |
static int |
maxRunTime
|
static int |
maxStackDepth
|
| Method Summary | |
boolean |
evaluationTimeElapsed(Expression expression,
org.safehaus.uuid.UUID expressionID,
Symbol symbol,
int day)
Return true if the given expression evaluation exceeds the limit. |
void |
finishFunction(Expression expression,
org.safehaus.uuid.UUID expressionID,
Symbol symbol,
int day)
Record that a function call has completed. |
void |
finishLoop(Expression expression,
org.safehaus.uuid.UUID expressionID,
Symbol symbol,
int day)
Record that a loop has completed. |
static AnalyserGuard |
getInstance()
|
protected void |
setMaxStackDepth(int depth)
|
protected void |
setRuntimeLimit(int secs)
|
boolean |
stackDepthLimitExceeded(Expression expression,
org.safehaus.uuid.UUID expressionID,
Symbol symbol,
int day)
Return true if the function call depth exceeds the limit. . |
void |
startFunction(Expression expression,
org.safehaus.uuid.UUID expressionID,
Symbol symbol,
int day)
Record that a function is being called. |
void |
startLoop(Expression expression,
org.safehaus.uuid.UUID expressionID,
Symbol symbol,
int day)
Record that a loop has begun evaluation. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static int maxRunTime
public static int maxStackDepth
| Method Detail |
public static AnalyserGuard getInstance()
public boolean evaluationTimeElapsed(Expression expression,
org.safehaus.uuid.UUID expressionID,
Symbol symbol,
int day)
expression - The expression being evaluatedexpressionID - Identifier for the expressionsymbol - The symbol on which the rule is being evaluatedday - Integer offset of the quote bundle. Included so the limit
exceeded doesn't trigger if some progress is being made.
public boolean stackDepthLimitExceeded(Expression expression,
org.safehaus.uuid.UUID expressionID,
Symbol symbol,
int day)
expression - The expression being evaluatedexpressionID - Identifier for the expressionsymbol - The symbol on which the rule is being evaluatedday - Integer offset of the quote bundle. Included so the limit
exceeded doesn't trigger if some progress is being made.
public void startLoop(Expression expression,
org.safehaus.uuid.UUID expressionID,
Symbol symbol,
int day)
expression - The expression being evaluatedexpressionID - Identifier for the expressionsymbol - The symbol on which the rule is being evaluatedday - Integer offset of the quote bundle. Included so the limit
exceeded doesn't trigger if some progress is being made.
public void finishLoop(Expression expression,
org.safehaus.uuid.UUID expressionID,
Symbol symbol,
int day)
expression - The expression being evaluatedexpressionID - Identifier for the expressionsymbol - The symbol on which the rule is being evaluatedday - Integer offset of the quote bundle. Included so the limit
exceeded doesn't trigger if some progress is being made.
public void startFunction(Expression expression,
org.safehaus.uuid.UUID expressionID,
Symbol symbol,
int day)
expression - The expression being evaluatedexpressionID - Identifier for the expressionsymbol - The symbol on which the rule is being evaluatedday - Integer offset of the quote bundle. Included so the limit
exceeded doesn't trigger if some progress is being made.
public void finishFunction(Expression expression,
org.safehaus.uuid.UUID expressionID,
Symbol symbol,
int day)
expression - The expression being evaluatedexpressionID - Identifier for the expressionsymbol - The symbol on which the rule is being evaluatedday - Integer offset of the quote bundle. Included so the limit
exceeded doesn't trigger if some progress is being made.protected void setRuntimeLimit(int secs)
protected void setMaxStackDepth(int depth)
|
Venice 0.751beta | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||