singrdk/base/Contracts/PingPong.Contracts/PongContract.sg

26 lines
668 B
Plaintext
Raw Permalink Normal View History

2008-03-05 09:52:00 -05:00
///////////////////////////////////////////////////////////////////////////////
//
// Microsoft Research Singularity
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// Note: Contract definition for the ChildPong process
//
using System;
using Microsoft.Singularity.Extending;
namespace Microsoft.Singularity.PingPong.Contracts
{
public contract PongContract : ExtensionContract
{
in message Ping(int data);
out message Pong(int data);
out message PongReady();
override state Start : PongReady! -> ReadyState;
state ReadyState : Ping? -> Pong! -> ReadyState;
}
}