
org.monte.media.StateModel Maven / Gradle / Ivy
/*
* @(#)StateModel.java 1.0 1999-10-19
*
* Copyright (c) 1999 Werner Randelshofer, Goldau, Switzerland.
* All rights reserved.
*
* You may not use, copy or modify this file, except in compliance with the
* license agreement you entered into with Werner Randelshofer.
* For details see accompanying license terms.
*/
package org.monte.media;
/**
* Generic interface for Objects with state.
*
* @author Werner Randelshofer, Hausmatt 10, CH-6405 Goldau, Switzerland
* @version 1.0 1999-10-19
*/
public interface StateModel {
/**
* Adds a listener that wants to be notified about
* state changes of the model.
*/
public void addStateListener(StateListener listener);
/**
* Removes a listener.
*/
public void removeStateListener(StateListener listener);
/**
* Returns the current state of the model.
*/
public int getState();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy