
com.googlecode.jinahya.fsm.XletState Maven / Gradle / Ivy
The newest version!
/*
* Copyright 2011 Jin Kwon.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.googlecode.jinahya.fsm;
/**
* Xlet States.
*
* @author Jin Kwon
*/
public final class XletState extends AbstractState {
/** GENERATED. */
private static final long serialVersionUID = -8985695749665467906L;
/**
* LOADED state. This state is virtual.
*/
public static final State LOADED = new XletState(0, "LOADED");
/**
* PAUSED state. This state can be reached when initXlet
* invoked from {@link #LOADED} or pauseXlet
invoked from
* {@link #ACTIVE}.
*/
public static final State PAUSED = new XletState(1, "PAUSED");
/**
* ACTIVE(STARTED) state. {@link XletMachine} can be reached to this state
* when pauseXlet
invoked from {@link #PAUSED}.
*/
public static final State ACTIVE = new XletState(2, "ACTIVE");
/**
* DESTROYED state.
*/
public static final State DESTROYED = new XletState(3, "DESTROYED");
/**
* Creates a new instance.
*
* @param code state code
* @param name state name
*/
private XletState(final int code, final String name) {
super(code, name);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy