Class AbstractDebuggerMaleSocket

    • Method Detail

      • getBeforeInfo

        public abstract java.lang.String getBeforeInfo()
        Get information about this action/expression before it is executed or evaluated.
        Returns:
        an information string
      • getAfterInfo

        public abstract java.lang.String getAfterInfo()
        Get information about this action/expression after it is executed or evaluated.
        Returns:
        an information string
      • before

        protected void before()
      • after

        protected void after()
      • setStepInto

        public void setStepInto​(boolean value)
      • setLogBefore

        public void setLogBefore​(boolean value)
      • setLogAfter

        public void setLogAfter​(boolean value)
      • setEnabled

        public final void setEnabled​(boolean enable)
        Description copied from interface: MaleSocket
        Set 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

        public void setEnabledFlag​(boolean enable)
        Description copied from interface: MaleSocket
        Set 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

        public final boolean isEnabled()
        Description copied from interface: MaleSocket
        Determines whether this male socket is enabled.
        Returns:
        true if the male socket is enabled, false otherwise
      • setDebugConfig

        public final void setDebugConfig​(Debugable.DebugConfig config)
        Description copied from interface: Debugable
        Set 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

        public final Debugable.DebugConfig getDebugConfig()
        Description copied from interface: Debugable
        Get the debug configuration for this male socket.
        Returns:
        the configuration or null if debugging is turned off for this male socket
      • getComment

        public final java.lang.String getComment()
        Description copied from interface: Base
        Get associated comment text. A LogixNG comment can have multiple lines, separated with \n.
        Specified by:
        getComment in interface Base
        Overrides:
        getComment in class AbstractMaleSocket
        Returns:
        the comment or null
      • setComment

        public final void setComment​(java.lang.String comment)
        Description copied from interface: Base
        Set associated comment text.

        Comments can be any valid text.

        Specified by:
        setComment in interface Base
        Overrides:
        setComment in class AbstractMaleSocket
        Parameters:
        comment - the comment or null to remove an existing comment
      • setParent

        public void setParent​(Base parent)
        Description copied from interface: Base
        Set 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:
        setParent in interface Base
        Overrides:
        setParent in class AbstractMaleSocket
        Parameters:
        parent - the new parent of this object