com.sun.corba.se.spi.orbutil.fsm.FSM Java Examples

The following examples show how to use com.sun.corba.se.spi.orbutil.fsm.FSM. 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: StateEngineImpl.java    From openjdk-jdk8u with GNU General Public License v2.0 6 votes vote down vote up
public void doIt( FSM fsm, Input in, boolean debug )
{
    // This method is present only for debugging.
    // innerDoIt does the actual transition.

    if (debug)
        ORBUtility.dprint( this, "doIt enter: currentState = " +
            fsm.getState() + " in = " + in ) ;

    try {
        innerDoIt( fsm, in, debug ) ;
    } finally {
        if (debug)
            ORBUtility.dprint( this, "doIt exit" ) ;
    }
}
 
Example #2
Source File: StateEngineImpl.java    From openjdk-jdk9 with GNU General Public License v2.0 6 votes vote down vote up
public void doIt( FSM fsm, Input in, boolean debug )
{
    // This method is present only for debugging.
    // innerDoIt does the actual transition.

    if (debug)
        ORBUtility.dprint( this, "doIt enter: currentState = " +
            fsm.getState() + " in = " + in ) ;

    try {
        innerDoIt( fsm, in, debug ) ;
    } finally {
        if (debug)
            ORBUtility.dprint( this, "doIt exit" ) ;
    }
}
 
Example #3
Source File: StateEngineImpl.java    From jdk1.8-source-analysis with Apache License 2.0 6 votes vote down vote up
public void doIt( FSM fsm, Input in, boolean debug )
{
    // This method is present only for debugging.
    // innerDoIt does the actual transition.

    if (debug)
        ORBUtility.dprint( this, "doIt enter: currentState = " +
            fsm.getState() + " in = " + in ) ;

    try {
        innerDoIt( fsm, in, debug ) ;
    } finally {
        if (debug)
            ORBUtility.dprint( this, "doIt exit" ) ;
    }
}
 
Example #4
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 #5
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 #6
Source File: AOMEntry.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
public void doIt( FSM fsm, Input in ) {
    AOMEntry entry = (AOMEntry)fsm ;
    if (entry.counter[0] > 0)
        entry.counter[0]-- ;
    else
        throw entry.poa.lifecycleWrapper().aomEntryDecZero() ;
}
 
Example #7
Source File: AOMEntry.java    From jdk1.8-source-analysis with Apache License 2.0 5 votes vote down vote up
public Guard.Result evaluate( FSM fsm, Input in ) {
    AOMEntry entry = (AOMEntry)fsm ;
    try {
        entry.wait.await() ;
    } catch (InterruptedException exc) {
        // XXX Log this
        // NO-OP
    }

    return Guard.Result.DEFERED ;
}
 
Example #8
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 #9
Source File: AOMEntry.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
public Guard.Result evaluate( FSM fsm, Input in ) {
    AOMEntry entry = (AOMEntry)fsm ;
    try {
        entry.wait.await() ;
    } catch (InterruptedException exc) {
        // XXX Log this
        // NO-OP
    }

    return Guard.Result.DEFERED ;
}
 
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: 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 #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 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() ) ;
}
 
Example #14
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 #15
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 #16
Source File: AOMEntry.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
public Guard.Result evaluate( FSM fsm, Input in ) {
    AOMEntry entry = (AOMEntry)fsm ;
    try {
        entry.wait.await() ;
    } catch (InterruptedException exc) {
        // XXX Log this
        // NO-OP
    }

    return Guard.Result.DEFERED ;
}
 
Example #17
Source File: AOMEntry.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
public void doIt( FSM fsm, Input in ) {
    AOMEntry entry = (AOMEntry)fsm ;
    if (entry.counter[0] > 0)
        entry.counter[0]-- ;
    else
        throw entry.poa.lifecycleWrapper().aomEntryDecZero() ;
}
 
Example #18
Source File: AOMEntry.java    From JDKSourceCode1.8 with MIT License 5 votes vote down vote up
public void doIt( FSM fsm, Input in ) {
    AOMEntry entry = (AOMEntry)fsm ;
    if (entry.counter[0] > 0)
        entry.counter[0]-- ;
    else
        throw entry.poa.lifecycleWrapper().aomEntryDecZero() ;
}
 
Example #19
Source File: AOMEntry.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
public Guard.Result evaluate( FSM fsm, Input in ) {
    AOMEntry entry = (AOMEntry)fsm ;
    try {
        entry.wait.await() ;
    } catch (InterruptedException exc) {
        // XXX Log this
        // NO-OP
    }

    return Guard.Result.DEFERED ;
}
 
Example #20
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 #21
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 #22
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 ) ;
    if (label != in)
        throw new Error( "Unexcepted Input " + in ) ;
}
 
Example #23
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 #24
Source File: AOMEntry.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
public Guard.Result evaluate( FSM fsm, Input in ) {
    AOMEntry entry = (AOMEntry)fsm ;
    try {
        entry.wait.await() ;
    } catch (InterruptedException exc) {
        // XXX Log this
        // NO-OP
    }

    return Guard.Result.DEFERED ;
}
 
Example #25
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 #26
Source File: AOMEntry.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
public Guard.Result evaluate( FSM fsm, Input in ) {
    AOMEntry entry = (AOMEntry)fsm ;
    try {
        entry.wait.await() ;
    } catch (InterruptedException exc) {
        // XXX Log this
        // NO-OP
    }

    return Guard.Result.DEFERED ;
}
 
Example #27
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( "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 #28
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 #29
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 #30
Source File: AOMEntry.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
public void preAction( FSM fsm ) {
    AOMEntry entry = (AOMEntry)fsm ;
    Thread etherealizer = entry.etherealizer[0] ;
    if (etherealizer != null)
        etherealizer.start() ;
}