Interface StateManager

All Known Implementing Classes:
StateManagerImpl

public interface StateManager
A StateManager is able to manage the state of a TransportOrder.
Author:
Heiko Scherrer
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    validate(TransportOrderState newState, TransportOrder transportOrder)
    Validates if the requested state transition to newState is valid or not.
  • Method Details

    • validate

      void validate(TransportOrderState newState, TransportOrder transportOrder)
      Validates if the requested state transition to newState is valid or not. Does not change the state of the given transportOrder.
      Parameters:
      newState - The new state
      transportOrder - The TransportOrder to check the state transition for
      Throws:
      StateChangeException - in case of errors