Package org.openwms.tms
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 TypeMethodDescriptionvoidvalidate(TransportOrderState newState, TransportOrder transportOrder) Validates if the requested state transition tonewStateis valid or not.
-
Method Details
-
validate
Validates if the requested state transition tonewStateis valid or not. Does not change the state of the giventransportOrder.- Parameters:
newState- The new statetransportOrder- The TransportOrder to check the state transition for- Throws:
StateChangeException- in case of errors
-