Package adams.flow.execution.debug
Class PathBreakpoint
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.core.option.AbstractOptionHandler
-
- adams.flow.execution.debug.AbstractBreakpoint
-
- adams.flow.execution.debug.PathBreakpoint
-
- All Implemented Interfaces:
Destroyable,GlobalInfoSupporter,LoggingLevelHandler,LoggingSupporter,OptionHandler,SizeOfHandler,BooleanConditionSupporter,Serializable
public class PathBreakpoint extends AbstractBreakpoint implements BooleanConditionSupporter
Triggers when the specified actor path (full path) is encountered during listening.
-logging-level <OFF|SEVERE|WARNING|INFO|CONFIG|FINE|FINER|FINEST> (property: loggingLevel) The logging level for outputting errors and debugging output. default: WARNING
-disabled <boolean> (property: disabled) If set to true, the breakpoint is completely disabled. default: false
-on-pre-input <boolean> (property: onPreInput) If set to true, the breakpoint gets evaluated at pre-input (of token) time; token available. default: false
-on-post-input <boolean> (property: onPostInput) If set to true, the breakpoint gets evaluated at post-input (of token) time. default: false
-on-pre-execute <boolean> (property: onPreExecute) If set to true, the breakpoint gets evaluated at pre-execute time. default: false
-on-post-execute <boolean> (property: onPostExecute) If set to true, the breakpoint gets evaluated at post-execute time. default: false
-on-pre-output <boolean> (property: onPreOutput) If set to true, the breakpoint gets evaluated at pre-output (of token) time; token available. default: false
-on-post-output <boolean> (property: onPostOutput) If set to true, the breakpoint gets evaluated at post-output (of token) time. default: false
-watch <adams.core.base.BaseString> [-watch ...] (property: watches) The expression to display initially in the watch dialog; the type of the watch needs to be specified as well. default:
-watch-type <VARIABLE|BOOLEAN|NUMERIC|STRING> [-watch-type ...] (property: watchTypes) The types of the watch expressions; determines how the expressions get evaluated and displayed. default:
-view <SOURCE|EXPRESSIONS|VARIABLES|STORAGE|INSPECT_TOKEN|BREAKPOINTS> [-view ...] (property: views) The views to display automatically when the breakpoint is reached. default:
-path <java.lang.String> (property: path) The full actor path to listen for. default:
-condition <adams.flow.condition.bool.BooleanCondition> (property: condition) The condition to evaluate; if the condition evaluates to 'true', the execution of the flow is interrupted and the control panel can be used. default: adams.flow.condition.bool.Expression
- Version:
- $Revision$
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected BooleanConditionm_Conditionthe condition to evaluate.protected ActorPathm_Paththe path to listen for.-
Fields inherited from class adams.flow.execution.debug.AbstractBreakpoint
m_BringToFront, m_Disabled, m_OneOff, m_OnPostExecute, m_OnPostInput, m_OnPostOutput, m_OnPreExecute, m_OnPreInput, m_OnPreOutput, m_TriggerCount, m_Views, m_Watches, m_WatchTypes
-
Fields inherited from class adams.core.option.AbstractOptionHandler
m_OptionManager
-
Fields inherited from class adams.core.logging.LoggingObject
m_Logger, m_LoggingIsEnabled, m_LoggingLevel
-
-
Constructor Summary
Constructors Constructor Description PathBreakpoint()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringconditionTipText()Returns the tip text for this property.voiddefineOptions()Adds options to the internal list of options.protected booleanevaluatePostExecute(Actor actor)Evaluates the breakpoint at post-execute.protected booleanevaluatePostInput(Actor actor)Evaluates the breakpoint at post-input.protected booleanevaluatePostOutput(Actor actor, Token token)Evaluates the breakpoint at post-output.protected booleanevaluatePreExecute(Actor actor)Evaluates the breakpoint at pre-execute.protected booleanevaluatePreInput(Actor actor, Token token)Evaluates the breakpoint at pre-input.protected booleanevaluatePreOutput(Actor actor)Evaluates the breakpoint at pre-output.BooleanConditiongetCondition()Returns the break condition to evaluate.ActorPathgetPath()Returns the full actor path to listen for.StringglobalInfo()Returns a string describing the object.StringpathTipText()Returns the tip text for this property.voidsetCondition(BooleanCondition value)Sets the break condition to evaluate.voidsetPath(ActorPath value)Sets the full actor path to listen for.-
Methods inherited from class adams.flow.execution.debug.AbstractBreakpoint
bringToFrontTipText, disabledTipText, getBringToFront, getDisabled, getOneOff, getOnPostExecute, getOnPostInput, getOnPostOutput, getOnPreExecute, getOnPreInput, getOnPreOutput, getTriggerCount, getViews, getWatches, getWatchTypes, oneOffTipText, onPostExecuteTipText, onPostInputTipText, onPostOutputTipText, onPreExecuteTipText, onPreInputTipText, onPreOutputTipText, reset, setBringToFront, setDisabled, setOneOff, setOnPostExecute, setOnPostInput, setOnPostOutput, setOnPreExecute, setOnPreInput, setOnPreOutput, setViews, setWatches, setWatchTypes, triggered, triggersPostExecute, triggersPostInput, triggersPostOutput, triggersPreExecute, triggersPreInput, triggersPreOutput, viewsTipText, watchesTipText, watchTypesTipText
-
Methods inherited from class adams.core.option.AbstractOptionHandler
cleanUpOptions, destroy, finishInit, getDefaultLoggingLevel, getOptionManager, initialize, loggingLevelTipText, newOptionManager, setLoggingLevel, toCommandLine, toString
-
Methods inherited from class adams.core.logging.LoggingObject
configureLogger, getLogger, getLoggingLevel, initializeLogging, isLoggingEnabled, sizeOf
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface adams.core.logging.LoggingLevelHandler
getLoggingLevel
-
-
-
-
Field Detail
-
m_Path
protected ActorPath m_Path
the path to listen for.
-
m_Condition
protected BooleanCondition m_Condition
the condition to evaluate.
-
-
Method Detail
-
globalInfo
public String globalInfo()
Returns a string describing the object.- Specified by:
globalInfoin interfaceGlobalInfoSupporter- Specified by:
globalInfoin classAbstractOptionHandler- Returns:
- a description suitable for displaying in the gui
-
defineOptions
public void defineOptions()
Adds options to the internal list of options.- Specified by:
defineOptionsin interfaceOptionHandler- Overrides:
defineOptionsin classAbstractBreakpoint
-
setPath
public void setPath(ActorPath value)
Sets the full actor path to listen for.- Parameters:
value- the path
-
getPath
public ActorPath getPath()
Returns the full actor path to listen for.- Returns:
- the path
-
pathTipText
public String pathTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
setCondition
public void setCondition(BooleanCondition value)
Sets the break condition to evaluate.- Specified by:
setConditionin interfaceBooleanConditionSupporter- Parameters:
value- the expression
-
getCondition
public BooleanCondition getCondition()
Returns the break condition to evaluate.- Specified by:
getConditionin interfaceBooleanConditionSupporter- Returns:
- the expression
-
conditionTipText
public String conditionTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
evaluatePreInput
protected boolean evaluatePreInput(Actor actor, Token token)
Evaluates the breakpoint at pre-input.- Specified by:
evaluatePreInputin classAbstractBreakpoint- Parameters:
actor- the current actortoken- the token available for input- Returns:
- true if breakpoint triggers
-
evaluatePostInput
protected boolean evaluatePostInput(Actor actor)
Evaluates the breakpoint at post-input.- Specified by:
evaluatePostInputin classAbstractBreakpoint- Parameters:
actor- the current actor- Returns:
- true if breakpoint triggers
-
evaluatePreExecute
protected boolean evaluatePreExecute(Actor actor)
Evaluates the breakpoint at pre-execute.- Specified by:
evaluatePreExecutein classAbstractBreakpoint- Parameters:
actor- the current actor- Returns:
- true if breakpoint triggers
-
evaluatePostExecute
protected boolean evaluatePostExecute(Actor actor)
Evaluates the breakpoint at post-execute.- Specified by:
evaluatePostExecutein classAbstractBreakpoint- Parameters:
actor- the current actor- Returns:
- true if breakpoint triggers
-
evaluatePreOutput
protected boolean evaluatePreOutput(Actor actor)
Evaluates the breakpoint at pre-output.- Specified by:
evaluatePreOutputin classAbstractBreakpoint- Parameters:
actor- the current actor- Returns:
- true if breakpoint triggers
-
evaluatePostOutput
protected boolean evaluatePostOutput(Actor actor, Token token)
Evaluates the breakpoint at post-output.- Specified by:
evaluatePostOutputin classAbstractBreakpoint- Parameters:
actor- the current actortoken- the token available for output- Returns:
- true if breakpoint triggers
-
-