Package adams.flow.execution.debug
Class AnyActorBreakpoint
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.core.option.AbstractOptionHandler
-
- adams.flow.execution.debug.AbstractBreakpoint
-
- adams.flow.execution.debug.AnyActorBreakpoint
-
- All Implemented Interfaces:
Destroyable
,GlobalInfoSupporter
,LoggingLevelHandler
,LoggingSupporter
,OptionHandler
,SizeOfHandler
,Serializable
public class AnyActorBreakpoint extends AbstractBreakpoint
Triggers with any actor 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:
- Version:
- $Revision$
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class adams.flow.execution.debug.AbstractBreakpoint
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 AnyActorBreakpoint()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
evaluatePostExecute(Actor actor)
Evaluates the breakpoint at post-execute.protected boolean
evaluatePostInput(Actor actor)
Evaluates the breakpoint at post-input.protected boolean
evaluatePostOutput(Actor actor, Token token)
Evaluates the breakpoint at post-output.protected boolean
evaluatePreExecute(Actor actor)
Evaluates the breakpoint at pre-execute.protected boolean
evaluatePreInput(Actor actor, Token token)
Evaluates the breakpoint at pre-input.protected boolean
evaluatePreOutput(Actor actor)
Evaluates the breakpoint at pre-output.String
globalInfo()
Returns a string describing the object.-
Methods inherited from class adams.flow.execution.debug.AbstractBreakpoint
defineOptions, disabledTipText, getDisabled, getOneOff, getOnPostExecute, getOnPostInput, getOnPostOutput, getOnPreExecute, getOnPreInput, getOnPreOutput, getTriggerCount, getViews, getWatches, getWatchTypes, oneOffTipText, onPostExecuteTipText, onPostInputTipText, onPostOutputTipText, onPreExecuteTipText, onPreInputTipText, onPreOutputTipText, reset, 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
-
-
-
-
Method Detail
-
globalInfo
public String globalInfo()
Returns a string describing the object.- Specified by:
globalInfo
in interfaceGlobalInfoSupporter
- Specified by:
globalInfo
in classAbstractOptionHandler
- Returns:
- a description suitable for displaying in the gui
-
evaluatePreInput
protected boolean evaluatePreInput(Actor actor, Token token)
Evaluates the breakpoint at pre-input.- Specified by:
evaluatePreInput
in 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:
evaluatePostInput
in 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:
evaluatePreExecute
in 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:
evaluatePostExecute
in 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:
evaluatePreOutput
in 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:
evaluatePostOutput
in classAbstractBreakpoint
- Parameters:
actor
- the current actortoken
- the token available for output- Returns:
- true if breakpoint triggers
-
-