예제 #1
0
파일: Test.cs 프로젝트: p-org/nekara-csharp
        public static void Run()
        {
            var configuration = Configuration.Create().WithVerbosityEnabled();
            var runtime       = PSharpTestRuntime.Create(configuration);

            runtime.CreateMachine(typeof(NetworkEnvironment));
        }
예제 #2
0
파일: Test.cs 프로젝트: p-org/nekara-csharp
        public static void Run()
        {
            var runtime = PSharpTestRuntime.Create();

            runtime.RegisterMonitor(typeof(SafetyMonitor));
            runtime.CreateMachine(typeof(ClusterManager));
        }
예제 #3
0
파일: Test.cs 프로젝트: p-org/nekara-csharp
        public static void Run()
        {
            var runtime = PSharpTestRuntime.Create();

            runtime.RegisterMonitor(typeof(ValidityCheck));
            runtime.CreateMachine(typeof(GodMachine));
        }
예제 #4
0
        public static void Run()
        {
            var configuration = Configuration.Create().WithVerbosityEnabled();
            var runtime       = PSharpTestRuntime.Create(configuration);

            runtime.RegisterMonitor(typeof(LivenessMonitor));
            runtime.CreateMachine(typeof(Environment));
        }
예제 #5
0
파일: Test.cs 프로젝트: p-org/nekara-csharp
        public static void Run()
        {
            var configuration = Configuration.Create().WithVerbosityEnabled();
            var runtime       = PSharpTestRuntime.Create(configuration);

            // Monitors must be registered before the first P# machine
            // gets created (which will kickstart the runtime).
            runtime.RegisterMonitor(typeof(Safety));
            runtime.RegisterMonitor(typeof(Liveness));
            runtime.CreateMachine(typeof(Driver), new Driver.Config(2));
        }