Class DeviceAutomatonImpl

    • Field Detail

      • _connectionComponent

        protected LinkComponent _connectionComponent
    • Method Detail

      • open

        public void open​()
                  throws OpenException
        Open the component's connection(s).
        Specified by:
        open in interface Openable
        Throws:
        OpenException - Thrown in case opening or accessing an open line (connection, junction, link) caused problems.
      • isOpened

        public boolean isOpened​()
        Retrieves the is-opened property from the opened property. Determines whether the component's connection is opened. A component's connection is opened after being opened as of Openable.open() or ConnectionOpenable.open(Object).
        Specified by:
        isOpened in interface OpenedAccessor
        Returns:
        True in case of being opened (returns the is-opened property stored by the opened property).
      • isClosed

        public boolean isClosed​()
        Retrieves the is-closed status. Determines whether the component's connection is closed. A component's connection is closed after being closed as of Closable.close().
        Specified by:
        isClosed in interface ClosedAccessor
        Returns:
        True in case of being closed.
      • close

        public void close​()
        Closes the component's connection(s). Throws a CloseException as upon close we may have to do things like flushing buffers which can fail (and would otherwise fail unhandled or even worse unnoticed).
        Specified by:
        close in interface Closable