- All Known Subinterfaces:
ColorCyclePlayer,Player
- All Known Implementing Classes:
AbstractPlayer
public interface StateModel
Generic interface for Objects with state.
- Author:
- Werner Randelshofer, Hausmatt 10, CH-6405 Goldau, Switzerland
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddStateListener(StateListener listener) Adds a listener that wants to be notified about state changes of the model.intgetState()Returns the current state of the model.voidremoveStateListener(StateListener listener) Removes a listener.
-
Method Details
-
addStateListener
Adds a listener that wants to be notified about state changes of the model. -
removeStateListener
Removes a listener. -
getState
int getState()Returns the current state of the model.
-