All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.opentcs.common.KernelClientApplication Maven / Gradle / Ivy

The newest version!
// SPDX-FileCopyrightText: The openTCS Authors
// SPDX-License-Identifier: MIT
package org.opentcs.common;

import org.opentcs.components.Lifecycle;

/**
 * Provides methods used in a kernel client application's context.
 */
public interface KernelClientApplication
    extends
      Lifecycle {

  /**
   * Tells the application to switch its state to online.
   *
   * @param autoConnect Whether to connect automatically to the kernel or to show a connect dialog
   * when going online.
   */
  void online(boolean autoConnect);

  /**
   * Tells the application to switch its state to offline.
   */
  void offline();

  /**
   * Checks whether the application's state is online.
   *
   * @return Whether the application's state is online.
   */
  boolean isOnline();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy