Back to project page security-cam.
The source code is released under:
MIT License
If you think the Android project security-cam listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package berlin.reiche.securitas.model; /*from w w w.ja v a 2 s .c o m*/ /** * Representation of a generic model class as used in a MVC like architecture. * * @author Konrad Reiche * * @param <T> * {@link Enum} type of the model state. */ public abstract class Model<T extends Enum<T>> { /** * Current state of the model. */ protected Enum<T> state; /** * @return current state of the model. */ public synchronized Enum<T> getState() { return state; } /** * @param state * new state the model should transition to. */ public synchronized void setState(Enum<T> state) { this.state = state; } }