Class AbstractDebuggerMaleSocket
java.lang.Object
jmri.jmrit.logixng.implementation.AbstractMaleSocket
jmri.jmrit.logixng.tools.debugger.AbstractDebuggerMaleSocket
- All Implemented Interfaces:
PropertyChangeProvider,Base,Debugable,MaleSocket
- Direct Known Subclasses:
DebuggerMaleAnalogActionSocket,DebuggerMaleAnalogExpressionSocket,DebuggerMaleDigitalActionSocket,DebuggerMaleDigitalBooleanActionSocket,DebuggerMaleDigitalExpressionSocket,DebuggerMaleStringActionSocket,DebuggerMaleStringExpressionSocket
Abstract debugger male socket
-
Nested Class Summary
Nested classes/interfaces inherited from interface jmri.jmrit.logixng.Base
Base.PrintTreeSettings, Base.RunnableWithBase, Base.RunnableWithBaseThrowExceptionNested classes/interfaces inherited from interface jmri.jmrit.logixng.Debugable
Debugable.DebugConfigNested classes/interfaces inherited from interface jmri.jmrit.logixng.MaleSocket
MaleSocket.ErrorHandlingType -
Field Summary
Fields inherited from class jmri.jmrit.logixng.implementation.AbstractMaleSocket
_localVariablesFields inherited from interface jmri.jmrit.logixng.Base
PRINT_LINE_NUMBERS_FORMAT, PROPERTY_CHILD_COUNT, PROPERTY_CHILD_REORDER, PROPERTY_LAST_RESULT_CHANGED, PROPERTY_SOCKET_CONNECTED, PROPERTY_SOCKET_DISCONNECTED, SEPARATOR, SOCKET_CONNECTED, SOCKET_DISCONNECTED -
Constructor Summary
ConstructorsConstructorDescriptionAbstractDebuggerMaleSocket(BaseManager<? extends MaleSocket> manager, MaleSocket maleSocket) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidafter()protected voidbefore()final Debugable.DebugConfigCreate a debug configuration for this male socket.protected final voidDisposes this object.abstract StringGet information about this action/expression after it is executed or evaluated.abstract StringGet information about this action/expression before it is executed or evaluated.booleanbooleanfinal StringGet associated comment text.final Debugable.DebugConfigGet the debug configuration for this male socket.booleanbooleanprotected booleanfinal booleanDetermines whether this male socket is enabled.protected booleanprotected booleanprotected final voidRegister listeners if this object needs that.voidsetBreakpointAfter(boolean value) voidsetBreakpointBefore(boolean value) final voidsetComment(String comment) Set associated comment text.final voidsetDebugConfig(Debugable.DebugConfig config) Set the debug configuration for this male socket.final voidsetEnabled(boolean enable) Set whenether this male socket is enabled or disabled.voidsetEnabledFlag(boolean enable) Set whenether this male socket is enabled or disabled, without activating the male socket.voidsetLogAfter(boolean value) voidsetLogBefore(boolean value) voidSet the parent.voidsetStepInto(boolean value) protected final voidUnregister listeners if this object needs that.Methods inherited from class jmri.jmrit.logixng.implementation.AbstractMaleSocket
addLocalVariable, addLocalVariable, addPropertyChangeListener, addPropertyChangeListener, addPropertyChangeListener, addPropertyChangeListener, clearLocalVariables, deepCopyChildren, dispose, executeErrorHandlingModule, getCatchAbortExecution, getCategory, getChild, getChildCount, getConditionalNG, getDeepCopy, getErrorHandlingModuleSocket, getErrorHandlingType, getListen, getListenerRef, getListenerRefs, getListenerRefsIncludingChildren, getLocalVariables, getLogixNG, getLongDescription, getManager, getNumPropertyChangeListeners, getObject, getParent, getPropertyChangeListeners, getPropertyChangeListeners, getPropertyChangeListenersByReference, getRoot, getShortDescription, getSystemName, getUsageDetail, getUsageTree, getUserName, handleError, handleError, handleError, hasChild, isActive, isErrorHandlingModuleEnabled, isLocked, isSystem, printLocalVariable, printTree, printTree, printTree, printTreeRow, registerListeners, removePropertyChangeListener, removePropertyChangeListener, setCatchAbortExecution, setErrorHandlingType, setListen, setLocked, setParentForAllChildren, setSystem, setUserName, toString, unregisterListeners, updateListenerRef, vetoableChangeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface jmri.jmrit.logixng.Base
doSocketOperation, existsInTree, forEntireTree, forEntireTreeWithException, getLongDescription, getModule, getShortDescription, isSocketOperationAllowed, printTree, printTreeMethods inherited from interface jmri.jmrit.logixng.MaleSocket
find, isSupportingLocalVariables, setup
-
Constructor Details
-
AbstractDebuggerMaleSocket
-
-
Method Details
-
getBeforeInfo
Get information about this action/expression before it is executed or evaluated.- Returns:
- an information string
-
getAfterInfo
Get information about this action/expression after it is executed or evaluated.- Returns:
- an information string
-
isLogAllBefore
-
isLogAllAfter
-
isDebuggerActive
-
before
-
after
-
setStepInto
-
setBreakpointBefore
-
getBreakpointBefore
-
setBreakpointAfter
-
getBreakpointAfter
-
setLogBefore
-
getLogBefore
-
setLogAfter
-
getLogAfter
-
registerListenersForThisClass
Description copied from class:AbstractMaleSocketRegister listeners if this object needs that.Important: This method may be called more than once. Methods overriding this method must ensure that listeners are not registered more than once.
- Specified by:
registerListenersForThisClassin classAbstractMaleSocket
-
unregisterListenersForThisClass
Description copied from class:AbstractMaleSocketUnregister listeners if this object needs that.Important: This method may be called more than once. Methods overriding this method must ensure that listeners are not unregistered more than once.
- Specified by:
unregisterListenersForThisClassin classAbstractMaleSocket
-
disposeMe
Description copied from class:AbstractMaleSocketDisposes this object. This must remove _all_ connections!- Specified by:
disposeMein classAbstractMaleSocket
-
setEnabled
Description copied from interface:MaleSocketSet whenether this male socket is enabled or disabled.This method must call registerListeners() / unregisterListeners().
- Parameters:
enable- true if this male socket should be enabled, false otherwise
-
setEnabledFlag
Description copied from interface:MaleSocketSet whenether this male socket is enabled or disabled, without activating the male socket. This is used when loading the xml file and when copying an item.This method must call registerListeners() / unregisterListeners().
- Parameters:
enable- true if this male socket should be enabled, false otherwise
-
isEnabled
Description copied from interface:MaleSocketDetermines whether this male socket is enabled.- Returns:
- true if the male socket is enabled, false otherwise
-
setDebugConfig
Description copied from interface:DebugableSet the debug configuration for this male socket.Each implementation of MaleSocket has their own implementation of DebugConfig. Use reflection to get the proper class <package-name>.debug.<ClassName>Debug that returns a JPanel that can configure debugging for this male socket.
- Parameters:
config- the new configuration or null to turn off debugging
-
getDebugConfig
Description copied from interface:DebugableGet the debug configuration for this male socket.- Returns:
- the configuration or null if debugging is turned off for this male socket
-
createDebugConfig
Description copied from interface:DebugableCreate a debug configuration for this male socket.- Returns:
- the new configuration
-
getComment
Description copied from interface:BaseGet associated comment text. A LogixNG comment can have multiple lines, separated with \n.- Specified by:
getCommentin interfaceBase- Overrides:
getCommentin classAbstractMaleSocket- Returns:
- the comment or null
-
setComment
Description copied from interface:BaseSet associated comment text.Comments can be any valid text.
- Specified by:
setCommentin interfaceBase- Overrides:
setCommentin classAbstractMaleSocket- Parameters:
comment- the comment or null to remove an existing comment
-
setParent
Description copied from interface:BaseSet the parent.The following rules apply
- ExecutionGroups has no parent. The method throws an UnsupportedOperationException if called.
- LogixNGs has the execution group as its parent.
- Expressions and actions has the male socket that they are connected to as their parent.
- Male sockets has the female socket that they are connected to as their parent.
- The parent of a female sockets is the LogixNG, expression or action that has this female socket.
- The parent of a male sockets is the same parent as the expression or action that it contains.
- Specified by:
setParentin interfaceBase- Overrides:
setParentin classAbstractMaleSocket- Parameters:
parent- the new parent of this object
-