Java Code Examples for com.sun.corba.se.spi.orbutil.fsm.Input

The following are top voted examples for showing how to use com.sun.corba.se.spi.orbutil.fsm.Input. These examples are extracted from open source projects. You can vote up the examples you like and your votes will be used in our system to generate more good examples.
Example 1
Project: OpenJSharp   File: AOMEntry.java   Source Code and License 6 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 2
Project: OpenJSharp   File: StateEngineImpl.java   Source Code and License 6 votes vote down vote up
public StateEngine add( State oldState, Input input, Guard guard, Action action,
    State newState ) throws IllegalArgumentException,
    IllegalStateException
{
    mustBeInitializing() ;

    StateImpl oldStateImpl = (StateImpl)oldState ;
    GuardedAction ga = new GuardedAction( guard, action, newState ) ;
    oldStateImpl.addGuardedAction( input, ga ) ;

    return this ;
}
 
Example 3
Project: OpenJSharp   File: StateEngineImpl.java   Source Code and License 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
Project: OpenJSharp   File: NameBase.java   Source Code and License 6 votes vote down vote up
private String getPreferredClassName()
{
    if (this instanceof Action)
        return "Action" ;
    if (this instanceof State)
        return "State" ;
    if (this instanceof Guard)
        return "Guard" ;
    if (this instanceof Input)
        return "Input" ;
    return getClassName() ;
}
 
Example 5
Project: openjdk-jdk10   File: StateEngineImpl.java   Source Code and License 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 6
Project: openjdk9   File: StateEngineImpl.java   Source Code and License 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 7
Project: lookaside_java-1.8.0-openjdk   File: StateEngineImpl.java   Source Code and License 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 8
Project: jdk8u_corba   File: StateEngineImpl.java   Source Code and License 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 9
Project: infobip-open-jdk-8   File: StateEngineImpl.java   Source Code and License 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 10
Project: openjdk-source-code-learn   File: StateEngineImpl.java   Source Code and License 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 11
Project: OLD-OpenJDK8   File: StateEngineImpl.java   Source Code and License 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 12
Project: openjdk-orb   File: StateEngineImpl.java   Source Code and License 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 13
Project: openjdk-icedtea7   File: StateEngineImpl.java   Source Code and License 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 14
Project: OpenJSharp   File: FSMTest.java   Source Code and 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 15
Project: OpenJSharp   File: FSMTest.java   Source Code and 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 16
Project: OpenJSharp   File: FSMTest.java   Source Code and 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 ) ;
    if (label != in)
        throw new Error( "Unexcepted Input " + in ) ;
}
 
Example 17
Project: OpenJSharp   File: AOMEntry.java   Source Code and 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 18
Project: OpenJSharp   File: StateEngineImpl.java   Source Code and 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 19
Project: OpenJSharp   File: StateEngineImpl.java   Source Code and License 5 votes vote down vote up
public StateEngine add( State oldState, Input input, Action action,
    State newState ) throws IllegalArgumentException,
    IllegalStateException
{
    mustBeInitializing() ;

    StateImpl oldStateImpl = (StateImpl)oldState ;
    GuardedAction ta = new GuardedAction( action, newState ) ;
    oldStateImpl.addGuardedAction( input, ta ) ;

    return this ;
}
 
Example 20
Project: openjdk-jdk10   File: FSMTest.java   Source Code and 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 21
Project: openjdk-jdk10   File: FSMTest.java   Source Code and 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 22
Project: openjdk-jdk10   File: FSMTest.java   Source Code and 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 ) ;
    if (label != in)
        throw new Error( "Unexcepted Input " + in ) ;
}
 
Example 23
Project: openjdk-jdk10   File: AOMEntry.java   Source Code and 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 24
Project: openjdk-jdk10   File: AOMEntry.java   Source Code and License 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
Project: openjdk-jdk10   File: StateEngineImpl.java   Source Code and 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 26
Project: openjdk-jdk10   File: StateEngineImpl.java   Source Code and License 5 votes vote down vote up
public StateEngine add( State oldState, Input input, Guard guard, Action action,
    State newState ) throws IllegalArgumentException,
    IllegalStateException
{
    mustBeInitializing() ;

    StateImpl oldStateImpl = (StateImpl)oldState ;
    GuardedAction ga = new GuardedAction( guard, action, newState ) ;
    oldStateImpl.addGuardedAction( input, ga ) ;

    return this ;
}
 
Example 27
Project: openjdk-jdk10   File: StateEngineImpl.java   Source Code and License 5 votes vote down vote up
public StateEngine add( State oldState, Input input, Action action,
    State newState ) throws IllegalArgumentException,
    IllegalStateException
{
    mustBeInitializing() ;

    StateImpl oldStateImpl = (StateImpl)oldState ;
    GuardedAction ta = new GuardedAction( action, newState ) ;
    oldStateImpl.addGuardedAction( input, ta ) ;

    return this ;
}
 
Example 28
Project: openjdk-jdk10   File: NameBase.java   Source Code and License 5 votes vote down vote up
private String getPreferredClassName()
{
    if (this instanceof Action)
        return "Action" ;
    if (this instanceof State)
        return "State" ;
    if (this instanceof Guard)
        return "Guard" ;
    if (this instanceof Input)
        return "Input" ;
    return getClassName() ;
}
 
Example 29
Project: openjdk9   File: FSMTest.java   Source Code and 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 30
Project: openjdk9   File: FSMTest.java   Source Code and 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 31
Project: openjdk9   File: FSMTest.java   Source Code and 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 ) ;
    if (label != in)
        throw new Error( "Unexcepted Input " + in ) ;
}
 
Example 32
Project: openjdk9   File: AOMEntry.java   Source Code and 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 33
Project: openjdk9   File: AOMEntry.java   Source Code and License 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 34
Project: openjdk9   File: StateEngineImpl.java   Source Code and 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 35
Project: openjdk9   File: StateEngineImpl.java   Source Code and License 5 votes vote down vote up
public StateEngine add( State oldState, Input input, Guard guard, Action action,
    State newState ) throws IllegalArgumentException,
    IllegalStateException
{
    mustBeInitializing() ;

    StateImpl oldStateImpl = (StateImpl)oldState ;
    GuardedAction ga = new GuardedAction( guard, action, newState ) ;
    oldStateImpl.addGuardedAction( input, ga ) ;

    return this ;
}
 
Example 36
Project: openjdk9   File: StateEngineImpl.java   Source Code and License 5 votes vote down vote up
public StateEngine add( State oldState, Input input, Action action,
    State newState ) throws IllegalArgumentException,
    IllegalStateException
{
    mustBeInitializing() ;

    StateImpl oldStateImpl = (StateImpl)oldState ;
    GuardedAction ta = new GuardedAction( action, newState ) ;
    oldStateImpl.addGuardedAction( input, ta ) ;

    return this ;
}
 
Example 37
Project: openjdk9   File: NameBase.java   Source Code and License 5 votes vote down vote up
private String getPreferredClassName()
{
    if (this instanceof Action)
        return "Action" ;
    if (this instanceof State)
        return "State" ;
    if (this instanceof Guard)
        return "Guard" ;
    if (this instanceof Input)
        return "Input" ;
    return getClassName() ;
}
 
Example 38
Project: lookaside_java-1.8.0-openjdk   File: FSMTest.java   Source Code and 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 39
Project: lookaside_java-1.8.0-openjdk   File: FSMTest.java   Source Code and 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 40
Project: lookaside_java-1.8.0-openjdk   File: FSMTest.java   Source Code and 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 ) ;
    if (label != in)
        throw new Error( "Unexcepted Input " + in ) ;
}