Package org.opentcs.access
Interface Kernel
- All Known Subinterfaces:
LocalKernel
public interface Kernel
Declares the methods an openTCS kernel implements.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumThe various states a kernel instance may be running in. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe default name used for the empty model created on startup. -
Method Summary
Modifier and TypeMethodDescriptiongetState()Returns the current state of the kernel.voidsetState(Kernel.State newState) Sets the current state of the kernel.
-
Field Details
-
DEFAULT_MODEL_NAME
The default name used for the empty model created on startup.- See Also:
-
-
Method Details
-
getState
Returns the current state of the kernel.- Returns:
- The current state of the kernel.
- Throws:
CredentialsException- If the calling client is not allowed to execute this method.
-
setState
Sets the current state of the kernel.Note: This method should only be used internally by the Kernel application.
- Parameters:
newState- The state the kernel is to be set to.- Throws:
IllegalArgumentException- If setting the new state is not possible, e.g. because a transition from the current to the new state is not allowed.CredentialsException- If the calling client is not allowed to execute this method.
-