Package org.squirrelframework.foundation.fsm

Examples of org.squirrelframework.foundation.fsm.StateMachinePerformanceModel


            if(stateMachine.isStarted()) {
                performanceMonitor.onStateMachineStart(stateMachine);
            }
            return "Performance Monitor Start";
        } else {
            StateMachinePerformanceModel perfModel = performanceMonitor.getPerfModel();
            this.totalTransitionInvokedTimes = perfModel.getTotalTransitionInvokedTimes();
            this.totalTransitionDeclinedTimes = perfModel.getTotalTransitionDeclinedTimes();
            this.totalTransitionFailedTimes = perfModel.getTotalTransitionFailedTimes();
            this.averageTranstionConsumedTime = perfModel.getAverageTranstionConsumedTime();
           
            perfStatDetails = perfModel.toString();
            stateMachine.removeDeclarativeListener(performanceMonitor);
            performanceMonitor = null;
            return "Performance Monitor End";
        }
    }
View Full Code Here

TOP

Related Classes of org.squirrelframework.foundation.fsm.StateMachinePerformanceModel

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.