blob: e842153f49690d81400c02fb705e393b20e1a00a [file] [log] [blame]
/*******************************************************************************
* Copyright (C) 2021 the Eclipse BaSyx Authors
*
* This program and the accompanying materials are made
* available under the terms of the Eclipse Public License 2.0
* which is available at https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
******************************************************************************/
package org.eclipse.basyx.models.controlcomponent;
/**
* Receive change events from control components
*
* @author kuhn
*
*/
public interface ControlComponentChangeListener {
/**
* Indicate change of a variable
*/
public void onVariableChange(String varName, Object newValue);
/**
* Indicate new occupier
*/
public void onNewOccupier(String occupierId);
/**
* Indicate new occupation state
*/
public void onNewOccupationState(OccupationState state);
/**
* Indicate an execution mode change
*/
public void onChangedExecutionMode(ExecutionMode newExecutionMode);
/**
* Indicate an execution state change
*/
public void onChangedExecutionState(ExecutionState newExecutionState);
/**
* Indicate an operation mode change
*/
public void onChangedOperationMode(String newOperationMode);
/**
* Indicate an work state change
*/
public void onChangedWorkState(String newWorkState);
/**
* Indicate an error state change
*/
public void onChangedErrorState(String newWorkState);
}