Java Code Examples for com.sun.corba.se.spi.orbutil.fsm.FSM#getState()

The following examples show how to use com.sun.corba.se.spi.orbutil.fsm.FSM#getState() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: FSMTest.java    From TencentKona-8 with GNU General Public License v2.0 6 votes vote down vote up
public void doIt( FSM fsm, Input in )
{
    System.out.println( "TestAction2:" ) ;
    System.out.println( "\toldState = " + oldState ) ;
    System.out.println( "\tnewState = " + newState ) ;
    System.out.println( "\tinput    = " + in ) ;
    if (oldState != fsm.getState())
        throw new Error( "Unexpected old State " + fsm.getState() ) ;
}
 
Example 2
Source File: StateEngineImpl.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
public StateEngineImpl()
{
    initializing = true ;
    defaultAction = new ActionBase("Invalid Transition")
        {
            public void doIt( FSM fsm, Input in )
            {
                throw new INTERNAL(
                    "Invalid transition attempted from " +
                        fsm.getState() + " under " + in ) ;
            }
        } ;
}
 
Example 3
Source File: FSMTest.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
public void doIt( FSM fsm, Input in )
{
    System.out.println( "TestAction2:" ) ;
    System.out.println( "\toldState = " + oldState ) ;
    System.out.println( "\tnewState = " + newState ) ;
    System.out.println( "\tinput    = " + in ) ;
    if (oldState != fsm.getState())
        throw new Error( "Unexpected old State " + fsm.getState() ) ;
}
 
Example 4
Source File: FSMTest.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
public void doIt( FSM fsm, Input in )
{
    System.out.println( "TestAction1:" ) ;
    System.out.println( "\tlabel    = " + label ) ;
    System.out.println( "\toldState = " + oldState ) ;
    System.out.println( "\tnewState = " + newState ) ;
    if (label != in)
        throw new Error( "Unexcepted Input " + in ) ;
    if (oldState != fsm.getState())
        throw new Error( "Unexpected old State " + fsm.getState() ) ;
}
 
Example 5
Source File: StateEngineImpl.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
public StateEngineImpl()
{
    initializing = true ;
    defaultAction = new ActionBase("Invalid Transition")
        {
            public void doIt( FSM fsm, Input in )
            {
                throw new INTERNAL(
                    "Invalid transition attempted from " +
                        fsm.getState() + " under " + in ) ;
            }
        } ;
}
 
Example 6
Source File: FSMTest.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
public void doIt( FSM fsm, Input in )
{
    System.out.println( "TestAction2:" ) ;
    System.out.println( "\toldState = " + oldState ) ;
    System.out.println( "\tnewState = " + newState ) ;
    System.out.println( "\tinput    = " + in ) ;
    if (oldState != fsm.getState())
        throw new Error( "Unexpected old State " + fsm.getState() ) ;
}
 
Example 7
Source File: FSMTest.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
public void doIt( FSM fsm, Input in )
{
    System.out.println( "TestAction1:" ) ;
    System.out.println( "\tlabel    = " + label ) ;
    System.out.println( "\toldState = " + oldState ) ;
    System.out.println( "\tnewState = " + newState ) ;
    if (label != in)
        throw new Error( "Unexcepted Input " + in ) ;
    if (oldState != fsm.getState())
        throw new Error( "Unexpected old State " + fsm.getState() ) ;
}
 
Example 8
Source File: StateEngineImpl.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
public StateEngineImpl()
{
    initializing = true ;
    defaultAction = new ActionBase("Invalid Transition")
        {
            public void doIt( FSM fsm, Input in )
            {
                throw new INTERNAL(
                    "Invalid transition attempted from " +
                        fsm.getState() + " under " + in ) ;
            }
        } ;
}
 
Example 9
Source File: FSMTest.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
public void doIt( FSM fsm, Input in )
{
    System.out.println( "TestAction2:" ) ;
    System.out.println( "\toldState = " + oldState ) ;
    System.out.println( "\tnewState = " + newState ) ;
    System.out.println( "\tinput    = " + in ) ;
    if (oldState != fsm.getState())
        throw new Error( "Unexpected old State " + fsm.getState() ) ;
}
 
Example 10
Source File: FSMTest.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
public void doIt( FSM fsm, Input in )
{
    System.out.println( "TestAction1:" ) ;
    System.out.println( "\tlabel    = " + label ) ;
    System.out.println( "\toldState = " + oldState ) ;
    System.out.println( "\tnewState = " + newState ) ;
    if (label != in)
        throw new Error( "Unexcepted Input " + in ) ;
    if (oldState != fsm.getState())
        throw new Error( "Unexpected old State " + fsm.getState() ) ;
}
 
Example 11
Source File: StateEngineImpl.java    From JDKSourceCode1.8 with MIT License 5 votes vote down vote up
public StateEngineImpl()
{
    initializing = true ;
    defaultAction = new ActionBase("Invalid Transition")
        {
            public void doIt( FSM fsm, Input in )
            {
                throw new INTERNAL(
                    "Invalid transition attempted from " +
                        fsm.getState() + " under " + in ) ;
            }
        } ;
}
 
Example 12
Source File: FSMTest.java    From jdk1.8-source-analysis with Apache License 2.0 5 votes vote down vote up
public void doIt( FSM fsm, Input in )
{
    System.out.println( "TestAction1:" ) ;
    System.out.println( "\tlabel    = " + label ) ;
    System.out.println( "\toldState = " + oldState ) ;
    System.out.println( "\tnewState = " + newState ) ;
    if (label != in)
        throw new Error( "Unexcepted Input " + in ) ;
    if (oldState != fsm.getState())
        throw new Error( "Unexpected old State " + fsm.getState() ) ;
}
 
Example 13
Source File: FSMTest.java    From JDKSourceCode1.8 with MIT License 5 votes vote down vote up
public void doIt( FSM fsm, Input in )
{
    System.out.println( "TestAction1:" ) ;
    System.out.println( "\tlabel    = " + label ) ;
    System.out.println( "\toldState = " + oldState ) ;
    System.out.println( "\tnewState = " + newState ) ;
    if (label != in)
        throw new Error( "Unexcepted Input " + in ) ;
    if (oldState != fsm.getState())
        throw new Error( "Unexpected old State " + fsm.getState() ) ;
}
 
Example 14
Source File: StateEngineImpl.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
public StateEngineImpl()
{
    initializing = true ;
    defaultAction = new ActionBase("Invalid Transition")
        {
            public void doIt( FSM fsm, Input in )
            {
                throw new INTERNAL(
                    "Invalid transition attempted from " +
                        fsm.getState() + " under " + in ) ;
            }
        } ;
}
 
Example 15
Source File: FSMTest.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
public void doIt( FSM fsm, Input in )
{
    System.out.println( "TestAction2:" ) ;
    System.out.println( "\toldState = " + oldState ) ;
    System.out.println( "\tnewState = " + newState ) ;
    System.out.println( "\tinput    = " + in ) ;
    if (oldState != fsm.getState())
        throw new Error( "Unexpected old State " + fsm.getState() ) ;
}
 
Example 16
Source File: FSMTest.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
public void doIt( FSM fsm, Input in )
{
    System.out.println( "TestAction1:" ) ;
    System.out.println( "\tlabel    = " + label ) ;
    System.out.println( "\toldState = " + oldState ) ;
    System.out.println( "\tnewState = " + newState ) ;
    if (label != in)
        throw new Error( "Unexcepted Input " + in ) ;
    if (oldState != fsm.getState())
        throw new Error( "Unexpected old State " + fsm.getState() ) ;
}
 
Example 17
Source File: StateEngineImpl.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
public StateEngineImpl()
{
    initializing = true ;
    defaultAction = new ActionBase("Invalid Transition")
        {
            public void doIt( FSM fsm, Input in )
            {
                throw new INTERNAL(
                    "Invalid transition attempted from " +
                        fsm.getState() + " under " + in ) ;
            }
        } ;
}
 
Example 18
Source File: FSMTest.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
public void doIt( FSM fsm, Input in )
{
    System.out.println( "TestAction1:" ) ;
    System.out.println( "\tlabel    = " + label ) ;
    System.out.println( "\toldState = " + oldState ) ;
    System.out.println( "\tnewState = " + newState ) ;
    if (label != in)
        throw new Error( "Unexcepted Input " + in ) ;
    if (oldState != fsm.getState())
        throw new Error( "Unexpected old State " + fsm.getState() ) ;
}
 
Example 19
Source File: StateEngineImpl.java    From jdk1.8-source-analysis with Apache License 2.0 5 votes vote down vote up
public StateEngineImpl()
{
    initializing = true ;
    defaultAction = new ActionBase("Invalid Transition")
        {
            public void doIt( FSM fsm, Input in )
            {
                throw new INTERNAL(
                    "Invalid transition attempted from " +
                        fsm.getState() + " under " + in ) ;
            }
        } ;
}
 
Example 20
Source File: FSMTest.java    From jdk1.8-source-analysis with Apache License 2.0 5 votes vote down vote up
public void doIt( FSM fsm, Input in )
{
    System.out.println( "TestAction2:" ) ;
    System.out.println( "\toldState = " + oldState ) ;
    System.out.println( "\tnewState = " + newState ) ;
    System.out.println( "\tinput    = " + in ) ;
    if (oldState != fsm.getState())
        throw new Error( "Unexpected old State " + fsm.getState() ) ;
}